Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / internal / lsp / testdata / anon / anon.go.in
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/anon/anon.go.in b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/anon/anon.go.in
new file mode 100644 (file)
index 0000000..36611b2
--- /dev/null
@@ -0,0 +1,23 @@
+package anon
+
+func _() {
+       for _, _ := range []struct {
+               i, j int //@item(anonI, "i", "int", "field"),item(anonJ, "j", "int", "field")
+       }{
+               {
+                       i: 1,
+                       //@complete("", anonJ)
+               },
+               {
+                       //@complete("", anonI, anonJ)
+               },
+       } {
+               continue
+       }
+
+       s := struct{ f int }{  } //@item(anonF, "f", "int", "field"),item(structS, "s", "struct{...}", "var"),complete("  }", anonF)
+
+       _ = map[struct{ x int }]int{ //@item(anonX, "x", "int", "field")
+               struct{ x int }{  }: 1, //@complete("  }", anonX, structS)
+       }
+}