Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / bar / bar.go.in
1 // +build go1.11
2
3 package bar
4
5 import (
6         "golang.org/x/tools/internal/lsp/foo" //@item(foo, "foo", "\"golang.org/x/tools/internal/lsp/foo\"", "package")
7 )
8
9 func helper(i foo.IntFoo) {} //@item(helper, "helper", "func(i foo.IntFoo)", "func")
10
11 func _() {
12         help //@complete("l", helper)
13         _ = foo.StructFoo{} //@complete("S", IntFoo, StructFoo)
14 }
15
16 // Bar is a function.
17 func Bar() { //@item(Bar, "Bar", "func()", "func", "Bar is a function.")
18         foo.Foo()        //@complete("F", Foo, IntFoo, StructFoo)
19         var _ foo.IntFoo //@complete("I", IntFoo, StructFoo)
20         foo.()           //@complete("(", Foo, IntFoo, StructFoo)
21 }
22
23 func _() {
24         var Valentine int //@item(Valentine, "Valentine", "int", "var")
25
26         _ = foo.StructFoo{
27                 Valu //@complete(" //", Value)
28         }
29         _ = foo.StructFoo{
30                 Va        //@complete("a", Value, Valentine)
31         }
32         _ = foo.StructFoo{
33                 Value: 5, //@complete("a", Value)
34         }
35         _ = foo.StructFoo{
36                 //@complete("", Value, Valentine, foo, helper, Bar)
37         }
38         _ = foo.StructFoo{
39                 Value: Valen //@complete("le", Valentine)
40         }
41         _ = foo.StructFoo{
42                 Value:       //@complete(" //", Valentine, foo, helper, Bar)
43         }
44         _ = foo.StructFoo{
45                 Value:       //@complete(" ", Valentine, foo, helper, Bar)
46         }
47 }