2018-11-13 09:13:53 -07:00
|
|
|
// +build go1.11
|
|
|
|
|
|
|
|
package bar
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/tools/internal/lsp/foo" //@item(foo, "foo", "\"golang.org/x/tools/internal/lsp/foo\"", "package")
|
|
|
|
)
|
|
|
|
|
2018-11-20 16:18:33 -07:00
|
|
|
func helper(i foo.IntFoo) {} //@item(helper, "helper(i foo.IntFoo)", "", "func")
|
|
|
|
|
2018-11-13 09:13:53 -07:00
|
|
|
func _() {
|
2018-11-20 16:18:33 -07:00
|
|
|
help //@complete("l", helper)
|
2018-11-13 09:13:53 -07:00
|
|
|
_ = foo.StructFoo{} //@complete("S", Foo, IntFoo, StructFoo)
|
|
|
|
}
|
|
|
|
|
|
|
|
func Bar() { //@item(Bar, "Bar()", "", "func")
|
|
|
|
foo.Foo() //@complete("F", Foo, IntFoo, StructFoo)
|
|
|
|
var _ foo.IntFoo //@complete("I", Foo, IntFoo, StructFoo)
|
|
|
|
foo.() //@complete("(", Foo, IntFoo, StructFoo)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var Valentine int //@item(Valentine, "Valentine", "int", "var")
|
|
|
|
|
|
|
|
_ = foo.StructFoo{
|
|
|
|
Val //@complete("l", Value)
|
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
|
|
|
Va //@complete("a", Value)
|
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
|
|
|
Value: 5, //@complete("a", Value)
|
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
|
|
|
//@complete("", Value)
|
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
|
|
|
Value: Valen //@complete("le", Valentine)
|
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
2019-04-23 16:34:23 -06:00
|
|
|
Value: //@complete(" //", Valentine, foo, Bar, helper)
|
2018-11-13 09:13:53 -07:00
|
|
|
}
|
|
|
|
_ = foo.StructFoo{
|
2018-11-20 16:18:33 -07:00
|
|
|
Value: //@complete(" ", Valentine, foo, Bar, helper)
|
2018-11-13 09:13:53 -07:00
|
|
|
}
|
2019-04-23 16:34:23 -06:00
|
|
|
}
|