golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/rename/testy.txt (about) 1 2 -- flags -- 3 -ignore_extra_diags 4 5 -- testy.go -- 6 package testy 7 8 type tt int //@rename("tt", "testyType", ttTotestyType) 9 10 func a() { 11 foo := 42 //@rename("foo", "bar", fooTobar) 12 } 13 -- testy_test.go -- 14 package testy 15 16 import "testing" 17 18 func TestSomething(t *testing.T) { 19 var x int //@rename("x", "testyX", xTotestyX) 20 a() //@rename("a", "b", aTob) 21 } 22 -- @aTob/testy.go -- 23 @@ -5 +5 @@ 24 -func a() { 25 +func b() { 26 -- @aTob/testy_test.go -- 27 @@ -7 +7 @@ 28 - a() //@rename("a", "b", aTob) 29 + b() //@rename("a", "b", aTob) 30 -- @fooTobar/testy.go -- 31 @@ -6 +6 @@ 32 - foo := 42 //@rename("foo", "bar", fooTobar) 33 + bar := 42 //@rename("foo", "bar", fooTobar) 34 -- @ttTotestyType/testy.go -- 35 @@ -3 +3 @@ 36 -type tt int //@rename("tt", "testyType", ttTotestyType) 37 +type testyType int //@rename("tt", "testyType", ttTotestyType) 38 -- @xTotestyX/testy_test.go -- 39 @@ -6 +6 @@ 40 - var x int //@rename("x", "testyX", xTotestyX) 41 + var testyX int //@rename("x", "testyX", xTotestyX)