golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/rename/shadow.txt (about) 1 2 -- shadow.go -- 3 package shadow 4 5 func _() { 6 a := true 7 b, c, _ := A(), B(), D() //@renameerr("A", "a", re"shadowed"),rename("B", "b", BTob),renameerr("b", "c", re"conflict"),rename("D", "d", DTod) 8 d := false 9 _, _, _, _ = a, b, c, d 10 } 11 12 func A() int { 13 return 0 14 } 15 16 func B() int { 17 return 0 18 } 19 20 func D() int { 21 return 0 22 } 23 -- @BTob/shadow.go -- 24 @@ -5 +5 @@ 25 - b, c, _ := A(), B(), D() //@renameerr("A", "a", re"shadowed"),rename("B", "b", BTob),renameerr("b", "c", re"conflict"),rename("D", "d", DTod) 26 + b, c, _ := A(), b(), D() //@renameerr("A", "a", re"shadowed"),rename("B", "b", BTob),renameerr("b", "c", re"conflict"),rename("D", "d", DTod) 27 @@ -14 +14 @@ 28 -func B() int { 29 +func b() int { 30 -- @DTod/shadow.go -- 31 @@ -5 +5 @@ 32 - b, c, _ := A(), B(), D() //@renameerr("A", "a", re"shadowed"),rename("B", "b", BTob),renameerr("b", "c", re"conflict"),rename("D", "d", DTod) 33 + b, c, _ := A(), B(), d() //@renameerr("A", "a", re"shadowed"),rename("B", "b", BTob),renameerr("b", "c", re"conflict"),rename("D", "d", DTod) 34 @@ -18 +18 @@ 35 -func D() int { 36 +func d() int {