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 / fillstruct / fill_struct.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/fillstruct/fill_struct.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/internal/lsp/testdata/fillstruct/fill_struct.go
new file mode 100644 (file)
index 0000000..fccec13
--- /dev/null
@@ -0,0 +1,26 @@
+package fillstruct
+
+type StructA struct {
+       unexportedIntField int
+       ExportedIntField   int
+       MapA               map[int]string
+       Array              []int
+       StructB
+}
+
+type StructA2 struct {
+       B *StructB
+}
+
+type StructA3 struct {
+       B StructB
+}
+
+func fill() {
+       a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
+       b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
+       c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       if true {
+               _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       }
+}