.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / internal / lsp / testdata / fillstruct / fill_struct_partial.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/fillstruct/fill_struct_partial.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/fillstruct/fill_struct_partial.go.golden
new file mode 100644 (file)
index 0000000..2d063c1
--- /dev/null
@@ -0,0 +1,52 @@
+-- suggestedfix_fill_struct_partial_17_2 --
+package fillstruct
+
+type StructPartialA struct {
+       PrefilledInt int
+       UnfilledInt  int
+       StructPartialB
+}
+
+type StructPartialB struct {
+       PrefilledInt int
+       UnfilledInt  int
+}
+
+func fill() {
+       a := StructPartialA{
+               PrefilledInt:   5,
+               UnfilledInt:    0,
+               StructPartialB: StructPartialB{},
+       } //@suggestedfix("}", "refactor.rewrite")
+       b := StructPartialB{
+               /* this comment should disappear */
+               PrefilledInt: 7, // This comment should be blown away.
+               /* As should
+               this one */
+       } //@suggestedfix("}", "refactor.rewrite")
+}
+
+-- suggestedfix_fill_struct_partial_23_2 --
+package fillstruct
+
+type StructPartialA struct {
+       PrefilledInt int
+       UnfilledInt  int
+       StructPartialB
+}
+
+type StructPartialB struct {
+       PrefilledInt int
+       UnfilledInt  int
+}
+
+func fill() {
+       a := StructPartialA{
+               PrefilledInt: 5,
+       } //@suggestedfix("}", "refactor.rewrite")
+       b := StructPartialB{
+               PrefilledInt: 7,
+               UnfilledInt:  0,
+       } //@suggestedfix("}", "refactor.rewrite")
+}
+