libgo: update to Go 1.11
[official-gcc.git] / libgo / go / go / doc / testdata / e.2.golden
blobe7b05e80faf203e985f4e7a2239b31984621deed
1 // The package e is a go/doc test for embedded methods. 
2 PACKAGE e
4 IMPORTPATH
5         testdata/e
7 FILENAMES
8         testdata/e.go
10 TYPES
11         // T1 has no embedded (level 1) M method due to conflict. 
12         type T1 struct {
13                 // contains filtered or unexported fields
14         }
16         // T2 has only M as top-level method. 
17         type T2 struct {
18                 // contains filtered or unexported fields
19         }
21         // T2.M should appear as method of T2. 
22         func (T2) M()
24         // T3 has only M as top-level method. 
25         type T3 struct {
26                 // contains filtered or unexported fields
27         }
29         // T3.M should appear as method of T3. 
30         func (T3) M()
32         // 
33         type T4 struct{}
35         // T4.M should appear as method of T5 only if AllMethods is set. 
36         func (*T4) M()
38         // 
39         type T5 struct {
40                 T4
41         }
43         // T4.M should appear as method of T5 only if AllMethods is set. 
44         func (*T5) M()
46         // 
47         type U1 struct {
48                 *U1
49         }
51         // U1.M should appear as method of U1. 
52         func (*U1) M()
54         // 
55         type U2 struct {
56                 *U3
57         }
59         // U2.M should appear as method of U2 and as method of U3 only if ...
60         func (*U2) M()
62         // U3.N should appear as method of U3 and as method of U2 only if ...
63         func (U2) N()
65         // 
66         type U3 struct {
67                 *U2
68         }
70         // U2.M should appear as method of U2 and as method of U3 only if ...
71         func (U3) M()
73         // U3.N should appear as method of U3 and as method of U2 only if ...
74         func (*U3) N()
76         // 
77         type U4 struct {
78                 // contains filtered or unexported fields
79         }
81         // U4.M should appear as method of U4. 
82         func (*U4) M()
84         // 
85         type V1 struct {
86                 *V2
87                 *V5
88         }
90         // V6.M should appear as method of V1 and V5 if AllMethods is set. 
91         func (V1) M()
93         // 
94         type V2 struct {
95                 *V3
96         }
98         // V4.M should appear as method of V2 and V3 if AllMethods is set. 
99         func (V2) M()
101         // 
102         type V3 struct {
103                 *V4
104         }
106         // V4.M should appear as method of V2 and V3 if AllMethods is set. 
107         func (V3) M()
109         // 
110         type V4 struct {
111                 *V5
112         }
114         // V4.M should appear as method of V2 and V3 if AllMethods is set. 
115         func (*V4) M()
117         // 
118         type V5 struct {
119                 *V6
120         }
122         // V6.M should appear as method of V1 and V5 if AllMethods is set. 
123         func (V5) M()
125         // 
126         type V6 struct{}
128         // V6.M should appear as method of V1 and V5 if AllMethods is set. 
129         func (*V6) M()