Debian Codegraph @

v2/parser/testdata/root2/file.go

raw
1 package root2
2
3 import (
4 "k8s.io/gengo/v2/parser/testdata/root2/lib2"
5 "k8s.io/gengo/v2/parser/testdata/rootpeer"
6 )
7
8 // SecondClosest X comment
9
10 // X comment
11 var X = lib2.X + rootpeer.X
12
13 // SecondClosest Y comment
14
15 // Y comment
16 const Y = "Y"
17
18 // SecondClosest Int comment
19
20 // Int comment
21 type Int int
22
23 // SecondClosest String comment
24
25 // String comment
26 type String string
27
28 // SecondClosest EmptyStruct comment
29
30 // EmptyStruct comment
31 type EmptyStruct struct{}
32
33 // SecondClosest Struct comment
34
35 // Struct comment
36 type Struct struct {
37 // SecondClosest I comment
38
39 // I comment
40 I int
41 // PI comment
42 PI *int
43 // S comment
44 S String
45 // PS comment
46 PS *string
47 // II comment
48 II Int
49 // PII comment
50 PII *Int
51 // SS comment
52 SS String
53 // PSS comment
54 PSS *String
55 // ES comment
56 ES EmptyStruct
57 // PES comment
58 PES *EmptyStruct
59 }
60
61 // SecondClosest privateMethod comment
62
63 // privateMethod comment
64 func (Struct) privateMethod() {}
65
66 // SecondClosest PublicMethod comment
67
68 // PublicMethod comment
69 func (Struct) PublicMethod() {}
70
71 // SecondClosest M comment
72
73 // M comment
74 type M map[string]*Struct
75
76 // SecondClosest privateFunc comment
77
78 // privateFunc comment
79 func privateFunc() {}
80
81 // SecondClosest PublicFunc comment
82
83 // PublicFunc comment
84 func PublicFunc() {}