kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/dependent.go (about) 1 package dependent 2 3 import ( 4 "fmt" 5 6 dep "kythe/go/indexer/dep.v2" 7 types "kythe/go/indexer/types_test" 8 ) 9 10 // Repeat the test from types.go to ensure the references work across packages. 11 func f( 12 i types.StringerI, 13 s fmt.Stringer, 14 e types.StringerE, 15 e2 types.StringerE2, 16 a types.StringerA, 17 ) { 18 //- @String ref String 19 i.String() 20 //- @String ref String 21 s.String() 22 //- @String ref String 23 e.String() 24 //- @String ref String 25 e2.String() 26 //- @String ref String 27 a.String() 28 } 29 30 func g() { 31 //- @F ref F 32 dep.F() 33 }