kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/code/interface.go (about) 1 // Package iface tests code facts for an interface type. 2 // - @iface defines/binding Pkg 3 package iface 4 5 // - @Thinger defines/binding Thinger 6 // - Thinger code TCode 7 // - TCode child.1 TName 8 // - 9 // - TName child.0 TContext 10 // - TContext.kind "CONTEXT" 11 // - 12 // - TName child.1 TIdent 13 // - TIdent.kind "IDENTIFIER" 14 // - TIdent.pre_text "Thinger" 15 // - TIdent link Thinger 16 type Thinger interface { 17 //- @Thing defines/binding Thing 18 //- Thing code MCode 19 //- 20 //- MCode child.0 MFunc 21 //- MCode child.1 MRecv 22 //- MCode child.2 MName 23 //- MCode child.3 MParams 24 //- 25 //- MFunc.kind "MODIFIER" 26 //- MFunc.pre_text "func" 27 //- MFunc.post_text " " 28 //- 29 //- MRecv.kind "PARAMETER" 30 //- MRecv.pre_text "(" 31 //- MRecv.post_text ") " 32 //- MRecv child.0 MLookup 33 //- MLookup.kind "LOOKUP_BY_PARAM" 34 //- 35 //- MName child.0 MContext 36 //- MName child.1 MIdent 37 //- 38 //- MParams.kind "PARAMETER" 39 //- MParams.pre_text "()" 40 //- 41 //- MContext.kind "CONTEXT" 42 //- MContext.post_child_text "." 43 //- MContext child.0 MPkg 44 //- MPkg link Pkg 45 //- MContext child.1 MOwner 46 //- MOwner link Thinger 47 //- MPkg.pre_text "test/iface" 48 //- MOwner.pre_text "Thinger" 49 //- MIdent.pre_text "Thing" 50 //- MIdent link Thing 51 Thing() 52 }