github.com/jhump/golang-x-tools@v0.0.0-20220218190644-4958d6d39439/internal/lsp/testdata/extract/extract_variable/extract_scope.go (about) 1 package extract 2 3 import "go/ast" 4 5 func _() { 6 x0 := 0 7 if true { 8 y := ast.CompositeLit{} //@suggestedfix("ast.CompositeLit{}", "refactor.extract") 9 } 10 if true { 11 x1 := !false //@suggestedfix("!false", "refactor.extract") 12 } 13 }