aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/extract/extract_variable/extract_func_call.go.golden
blob: d59c0ee99f2fe76375c2ddbc1c6a729e9ce1f1f5 (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
-- 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", "")
}