github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/extract/extract_variable/extract_scope.go.golden (about)

     1  -- suggestedfix_extract_scope_11_9 --
     2  package extract
     3  
     4  import "go/ast"
     5  
     6  func _() {
     7  	x0 := 0
     8  	if true {
     9  		y := ast.CompositeLit{} //@suggestedfix("ast.CompositeLit{}", "refactor.extract")
    10  	}
    11  	if true {
    12  		x2 := !false
    13  		x1 := x2 //@suggestedfix("!false", "refactor.extract")
    14  	}
    15  }
    16  
    17  -- suggestedfix_extract_scope_8_8 --
    18  package extract
    19  
    20  import "go/ast"
    21  
    22  func _() {
    23  	x0 := 0
    24  	if true {
    25  		x1 := ast.CompositeLit{}
    26  		y := x1 //@suggestedfix("ast.CompositeLit{}", "refactor.extract")
    27  	}
    28  	if true {
    29  		x1 := !false //@suggestedfix("!false", "refactor.extract")
    30  	}
    31  }
    32