forked from argotorg/fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimpl.snap
More file actions
262 lines (262 loc) · 9.34 KB
/
Copy pathimpl.snap
File metadata and controls
262 lines (262 loc) · 9.34 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
---
source: crates/parser/tests/syntax_node.rs
assertion_line: 15
expression: node
input_file: test_files/syntax_node/items/impl.fe
---
Root@0..272
ItemList@0..272
Item@0..137
Impl@0..137
ImplKw@0..4 "impl"
GenericParamList@4..12
Lt@4..5 "<"
TypeGenericParam@5..11
Ident@5..6 "T"
TypeBoundList@6..11
Colon@6..7 ":"
WhiteSpace@7..8 " "
TypeBound@8..11
TraitRef@8..11
Path@8..11
PathSegment@8..11
Ident@8..11 "Add"
Gt@11..12 ">"
WhiteSpace@12..13 " "
PathType@13..24
Path@13..24
PathSegment@13..16
Ident@13..16 "Foo"
Colon2@16..18 "::"
PathSegment@18..24
Ident@18..21 "Bar"
GenericArgList@21..24
Lt@21..22 "<"
TypeGenericArg@22..23
PathType@22..23
Path@22..23
PathSegment@22..23
Ident@22..23 "T"
Gt@23..24 ">"
WhiteSpace@24..25 " "
ImplItemList@25..137
LBrace@25..26 "{"
Func@26..135
Newline@26..27 "\n"
WhiteSpace@27..31 " "
PubKw@31..34 "pub"
WhiteSpace@34..35 " "
FnKw@35..37 "fn"
WhiteSpace@37..38 " "
FuncSignature@38..66
Ident@38..41 "add"
FuncParamList@41..58
LParen@41..42 "("
FnParam@42..46
SelfKw@42..46 "self"
Comma@46..47 ","
WhiteSpace@47..48 " "
FnParam@48..57
Ident@48..51 "rhs"
Colon@51..52 ":"
WhiteSpace@52..53 " "
PathType@53..57
Path@53..57
PathSegment@53..57
SelfTypeKw@53..57 "Self"
RParen@57..58 ")"
WhiteSpace@58..59 " "
Arrow@59..61 "->"
WhiteSpace@61..62 " "
PathType@62..66
Path@62..66
PathSegment@62..66
SelfTypeKw@62..66 "Self"
WhiteSpace@66..67 " "
BlockExpr@67..135
LBrace@67..68 "{"
Newline@68..69 "\n"
WhiteSpace@69..77 " "
ExprStmt@77..129
RecordInitExpr@77..129
Path@77..81
PathSegment@77..81
SelfTypeKw@77..81 "Self"
WhiteSpace@81..82 " "
RecordFieldList@82..129
LBrace@82..83 "{"
Newline@83..84 "\n"
WhiteSpace@84..96 " "
RecordField@96..119
Ident@96..99 "val"
Colon@99..100 ":"
WhiteSpace@100..101 " "
BinExpr@101..119
FieldExpr@101..109
PathExpr@101..105
Path@101..105
PathSegment@101..105
SelfKw@101..105 "self"
Dot@105..106 "."
Ident@106..109 "val"
WhiteSpace@109..110 " "
Plus@110..111 "+"
WhiteSpace@111..112 " "
FieldExpr@112..119
PathExpr@112..115
Path@112..115
PathSegment@112..115
Ident@112..115 "rhs"
Dot@115..116 "."
Ident@116..119 "val"
Newline@119..120 "\n"
WhiteSpace@120..128 " "
RBrace@128..129 "}"
Newline@129..130 "\n"
WhiteSpace@130..134 " "
RBrace@134..135 "}"
Newline@135..136 "\n"
RBrace@136..137 "}"
Newline@137..139 "\n\n"
Item@139..272
Impl@139..272
ImplKw@139..143 "impl"
GenericParamList@143..146
Lt@143..144 "<"
TypeGenericParam@144..145
Ident@144..145 "T"
Gt@145..146 ">"
WhiteSpace@146..147 " "
PathType@147..153
Path@147..153
PathSegment@147..153
Ident@147..150 "Foo"
GenericArgList@150..153
Lt@150..151 "<"
TypeGenericArg@151..152
PathType@151..152
Path@151..152
PathSegment@151..152
Ident@151..152 "T"
Gt@152..153 ">"
WhiteSpace@153..154 " "
Newline@154..155 "\n"
WhereClause@155..174
WhereKw@155..160 "where"
WhiteSpace@160..161 " "
WherePredicate@161..174
PathType@161..167
Path@161..167
PathSegment@161..167
Ident@161..164 "Foo"
GenericArgList@164..167
Lt@164..165 "<"
TypeGenericArg@165..166
PathType@165..166
Path@165..166
PathSegment@165..166
Ident@165..166 "T"
Gt@166..167 ">"
TypeBoundList@167..174
Colon@167..168 ":"
WhiteSpace@168..169 " "
TypeBound@169..174
TraitRef@169..174
Path@169..174
PathSegment@169..174
Ident@169..174 "Clone"
Newline@174..175 "\n"
ImplItemList@175..272
LBrace@175..176 "{"
Newline@176..177 "\n"
WhiteSpace@177..181 " "
Func@181..270
FnKw@181..183 "fn"
WhiteSpace@183..184 " "
FuncSignature@184..235
Ident@184..187 "add"
GenericParamList@187..198
Lt@187..188 "<"
TypeGenericParam@188..197
Ident@188..189 "U"
TypeBoundList@189..197
Colon@189..190 ":"
WhiteSpace@190..191 " "
TypeBound@191..197
TraitRef@191..197
Path@191..197
PathSegment@191..197
Ident@191..194 "Add"
GenericArgList@194..197
Lt@194..195 "<"
TypeGenericArg@195..196
PathType@195..196
Path@195..196
PathSegment@195..196
Ident@195..196 "T"
Gt@196..197 ">"
Gt@197..198 ">"
FuncParamList@198..212
LParen@198..199 "("
FnParam@199..203
SelfKw@199..203 "self"
Comma@203..204 ","
WhiteSpace@204..205 " "
FnParam@205..211
Ident@205..208 "rhs"
Colon@208..209 ":"
WhiteSpace@209..210 " "
PathType@210..211
Path@210..211
PathSegment@210..211
Ident@210..211 "U"
RParen@211..212 ")"
WhiteSpace@212..213 " "
Newline@213..214 "\n"
WhiteSpace@214..222 " "
WhereClause@222..235
WhereKw@222..227 "where"
WhiteSpace@227..228 " "
WherePredicate@228..235
PathType@228..229
Path@228..229
PathSegment@228..229
Ident@228..229 "T"
TypeBoundList@229..235
Colon@229..230 ":"
WhiteSpace@230..231 " "
TypeBound@231..235
TraitRef@231..235
Path@231..235
PathSegment@231..235
Ident@231..235 "Copy"
Newline@235..236 "\n"
WhiteSpace@236..240 " "
BlockExpr@240..270
LBrace@240..241 "{"
Newline@241..242 "\n"
WhiteSpace@242..250 " "
ExprStmt@250..264
ParenExpr@250..264
LParen@250..251 "("
BinExpr@251..263
PathExpr@251..254
Path@251..254
PathSegment@251..254
Ident@251..254 "rhs"
WhiteSpace@254..255 " "
Minus@255..256 "-"
WhiteSpace@256..257 " "
FieldExpr@257..263
PathExpr@257..261
Path@257..261
PathSegment@257..261
SelfKw@257..261 "self"
Dot@261..262 "."
Ident@262..263 "t"
RParen@263..264 ")"
Newline@264..265 "\n"
WhiteSpace@265..269 " "
RBrace@269..270 "}"
Newline@270..271 "\n"
RBrace@271..272 "}"