Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -0,0 +1,21 @@
// +build go1.11
package bad
func stuff() {
x := "heeeeyyyy"
random2(x) //@diag("x", "cannot use x (variable of type string) as int value in argument to random2")
random2(1)
y := 3 //@diag("y", "y declared but not used")
}
type bob struct {
x int
}
func _() {
var q int
_ = &bob{
f: q, //@diag("f", "unknown field f in struct literal")
}
}

View File

@@ -0,0 +1,8 @@
// +build go1.11
package bad
func random2(y int) int {
x := 6 //@diag("x", "x declared but not used")
return y
}

View File

@@ -0,0 +1,7 @@
package bar
import "golang.org/x/tools/internal/lsp/foo"
func Bar() {
foo.Foo()
}

View File

@@ -0,0 +1,7 @@
package baz
import "golang.org/x/tools/internal/lsp/bar"
func Baz() {
bar.Bar()
}

View File

@@ -0,0 +1,23 @@
package foo
type StructFoo struct { //@item(StructFoo, "StructFoo", "struct{...}", "struct")
Value int //@item(Value, "Value", "int", "field")
}
// TODO(rstambler): Create pre-set builtins?
/* Error() */ //@item(Error, "Error()", "string", "method")
func Foo() { //@item(Foo, "Foo()", "", "func")
var err error
err.Error() //@complete("E", Error)
}
func _() {
var sFoo StructFoo //@complete("t", StructFoo)
if x := sFoo; x.Value == 1 { //@complete("V", Value)
return
}
}
//@complete("", Foo, IntFoo, StructFoo)
type IntFoo int //@item(IntFoo, "IntFoo", "int", "type")

View File

@@ -0,0 +1,21 @@
package format //@format("package")
import (
"fmt"
"runtime"
"log"
)
func hello() {
var x int //@diag("x", "x declared but not used")
}
func hi() {
runtime.GOROOT()
fmt.Printf("")
log.Printf("")
}

View File

@@ -0,0 +1,9 @@
package format //@format("package")
import (
"log"
)
func goodbye() {
log.Printf("byeeeee")
}

View File

@@ -0,0 +1,6 @@
package good
func stuff() {
x := 5
random2(x)
}

View File

@@ -0,0 +1,10 @@
package good
func random() int {
y := 6 + 7
return y
}
func random2(y int) int {
return y
}

View File

@@ -0,0 +1,11 @@
package noparse
func bye(x int) {
hi()
}
func stuff() {
x := 5
}
func .() {} //@diag(".", "expected 'IDENT', found '.'")

View File

@@ -0,0 +1,9 @@
// +build go1.11
package noparse_format //@format("package")
func what() {
var b int
if { hi() //@diag("{", "missing condition in if statement")
}
}