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 / extract / extract_variable / extract_scope.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/extract/extract_variable/extract_scope.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/extract/extract_variable/extract_scope.go.golden
new file mode 100644 (file)
index 0000000..4ded99a
--- /dev/null
@@ -0,0 +1,32 @@
+-- suggestedfix_extract_scope_11_9 --
+package extract
+
+import "go/ast"
+
+func _() {
+       x0 := 0
+       if true {
+               y := ast.CompositeLit{} //@suggestedfix("ast.CompositeLit{}", "refactor.extract")
+       }
+       if true {
+               x2 := !false
+               x1 := x2 //@suggestedfix("!false", "refactor.extract")
+       }
+}
+
+-- suggestedfix_extract_scope_8_8 --
+package extract
+
+import "go/ast"
+
+func _() {
+       x0 := 0
+       if true {
+               x1 := ast.CompositeLit{}
+               y := x1 //@suggestedfix("ast.CompositeLit{}", "refactor.extract")
+       }
+       if true {
+               x1 := !false //@suggestedfix("!false", "refactor.extract")
+       }
+}
+