summaryrefslogtreecommitdiff
path: root/kythe/go/indexer/testdata/code/structtype.go
blob: 8e6b12a57ef47b34adafc62aebd2b642d37ef4fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Package structtype tests code facts for a named struct type.
package structtype

//- @T defines/binding Type
//- Type code TName
//-
//- TName child.0 TContext
//- TName child.1 TIdent
//-
//- TContext.kind "CONTEXT"
//- TContext child.0 TPkg
//- TPkg.pre_text "structtype"
//- TIdent.kind "IDENTIFIER"
//- TIdent.pre_text "T"
type T struct {
	//- @F defines/binding Field
	//- Field code FieldCode
	//-
	//- FieldCode.kind "BOX"
	//- FieldCode.post_child_text " "
	//- FieldCode child.0 FName
	//- FieldCode child.1 FType
	//-
	//- FName child.0 FContext
	//- FName child.1 FIdent
	//-
	//- FType.kind "LOOKUP_BY_TYPED"
	//-
	//- FContext.kind "CONTEXT"
	//- FContext child.0 FPkg
	//- FContext child.1 FOwner
	//- FPkg.pre_text "structtype"
	//- FOwner.pre_text "T"
	//- FIdent.kind "IDENTIFIER"
	//- FIdent.pre_text "F"
	F byte
}