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 / unimported / unimported_cand_type.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/internal/lsp/testdata/unimported/unimported_cand_type.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/internal/lsp/testdata/unimported/unimported_cand_type.go
new file mode 100644 (file)
index 0000000..531aa2d
--- /dev/null
@@ -0,0 +1,16 @@
+package unimported
+
+import (
+       _ "context"
+
+       "golang.org/x/tools/internal/lsp/baz"
+       _ "golang.org/x/tools/internal/lsp/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\\}")
+}