kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/code/pkgvar.go (about) 1 // Package pkgvar tests code facts for package-level variables. 2 package pkgvar 3 4 // - @V defines/binding Var 5 // - Var code VarCode 6 // - Var typed VarType 7 // - VarType code VType 8 // - 9 // - VarCode child.0 VName 10 // - VarCode child.1 VTyped 11 // - VTyped.kind "LOOKUP_BY_TYPED" 12 // - VarCode.post_child_text " " 13 // - 14 // - VName child.0 VContext 15 // - VName child.1 VIdent 16 // - 17 // - VType.kind "TYPE" 18 // - VType.pre_text "int" 19 // - 20 // - VContext.kind "CONTEXT" 21 // - VContext child.0 VPkg 22 // - VPkg.pre_text "pkgvar" 23 // - 24 // - VIdent.kind "IDENTIFIER" 25 // - VIdent.pre_text "V" 26 // - VIdent link Var 27 var V int