github.com/v2fly/tools@v0.100.0/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  }