golang.org/x/tools@v0.21.0/internal/refactor/inline/testdata/line-directives.txtar (about) 1 Test of line directives in caller and caller. 2 Neither should have any effect on inlining. 3 4 -- go.mod -- 5 module testdata 6 go 1.12 7 8 -- a/a.go -- 9 package a 10 11 import "testdata/b" 12 13 func A() { 14 //line b2.go:3:3 15 b.F() //@ inline(re"F", result) 16 } 17 18 -- b/b.go -- 19 package b 20 21 //line b2.go:1:1 22 func F() { println("hi") } 23 24 -- b/b2.go -- 25 package b 26 27 func NotWhatYouWereLookingFor() {} 28 29 -- result -- 30 package a 31 32 func A() { 33 //line b2.go:3:3 34 println("hi") //@ inline(re"F", result) 35 }