kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/code/structtype.go (about)

     1  // Package structtype tests code facts for a named struct type.
     2  package structtype
     3  
     4  // - @T defines/binding Type
     5  // - Type code TCode
     6  // - TCode child.1 TName
     7  // -
     8  // - TName child.0 TContext
     9  // - TName child.1 TIdent
    10  // -
    11  // - TContext.kind "CONTEXT"
    12  // - TContext child.0 TPkg
    13  // - TPkg.pre_text "structtype"
    14  // - TIdent.kind "IDENTIFIER"
    15  // - TIdent.pre_text "T"
    16  type T struct {
    17  	//- @F defines/binding Field
    18  	//- Field code FieldCode
    19  	//-
    20  	//- FieldCode.kind "BOX"
    21  	//- FieldCode.post_child_text " "
    22  	//- FieldCode child.0 FName
    23  	//- FieldCode child.1 FType
    24  	//-
    25  	//- FName child.0 FContext
    26  	//- FName child.1 FIdent
    27  	//-
    28  	//- FType.kind "LOOKUP_BY_TYPED"
    29  	//-
    30  	//- FContext.kind "CONTEXT"
    31  	//- FContext child.0 FPkg
    32  	//- FContext child.1 FOwner
    33  	//- FPkg.pre_text "structtype"
    34  	//- FOwner.pre_text "T"
    35  	//- FIdent.kind "IDENTIFIER"
    36  	//- FIdent.pre_text "F"
    37  	F byte
    38  }