| package unimported | |
| import ( | |
| _ "context" | |
| "golang.org/lsptests/baz" | |
| _ "golang.org/lsptests/signature" // provide type information for unimported completions in the other file | |
| ) | |
| func _() { | |
| foo.StructFoo{} //@item(litFooStructFoo, "foo.StructFoo{}", "struct{...}", "struct") | |
| // We get the literal completion for "foo.StructFoo{}" even though we haven't | |
| // imported "foo" yet. | |
| baz.FooStruct = f //@snippet(" //", litFooStructFoo, "foo.StructFoo{$0\\}", "foo.StructFoo{$0\\}") | |
| } |