aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/testdata/extract/extract_variable/extract_func_call.go.golden
blob: 74df67ee65f5d36c5c4dd6d71c5d21343fa91764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-- suggestedfix_extract_func_call_6_7 --
package extract

import "strconv"

func _() {
	x0 := append([]int{}, 1)
	a := x0 //@suggestedfix("append([]int{}, 1)", "refactor.extract")
	str := "1"
	b, err := strconv.Atoi(str) //@suggestedfix("strconv.Atoi(str)", "refactor.extract")
}

-- suggestedfix_extract_func_call_6_8 --
package extract

import "strconv"

func _() {
	x := append([]int{}, 1)
	x0 := x //@suggestedfix("append([]int{}, 1)", "refactor.extract")
	str := "1"
	b, err := strconv.Atoi(str) //@suggestedfix("strconv.Atoi(str)", "refactor.extract")
}

-- suggestedfix_extract_func_call_8_12 --
package extract

import "strconv"

func _() {
	x0 := append([]int{}, 1) //@suggestedfix("append([]int{}, 1)", "refactor.extract")
	str := "1"
	x, x1 := strconv.Atoi(str)
	b, err := x, x1 //@suggestedfix("strconv.Atoi(str)", "refactor.extract")
}