forked from argotorg/fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcall.snap
More file actions
348 lines (348 loc) · 9.39 KB
/
Copy pathcall.snap
File metadata and controls
348 lines (348 loc) · 9.39 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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
---
source: crates/parser/tests/syntax_node.rs
expression: node
input_file: test_files/syntax_node/exprs/call.fe
---
Root@0..324
CallExpr@0..5
PathExpr@0..3
Path@0..3
PathSegment@0..3
Ident@0..3 "foo"
CallArgList@3..5
LParen@3..4 "("
RParen@4..5 ")"
Newline@5..6 "\n"
CallExpr@6..16
PathExpr@6..14
Path@6..14
PathSegment@6..9
Ident@6..9 "foo"
Colon2@9..11 "::"
PathSegment@11..14
Ident@11..14 "Bar"
CallArgList@14..16
LParen@14..15 "("
RParen@15..16 ")"
Newline@16..17 "\n"
CallExpr@17..32
PathExpr@17..20
Path@17..20
PathSegment@17..20
Ident@17..20 "foo"
CallArgList@20..32
LParen@20..21 "("
CallArg@21..25
Ident@21..22 "x"
Colon@22..23 ":"
WhiteSpace@23..24 " "
LitExpr@24..25
Lit@24..25
Int@24..25 "1"
Comma@25..26 ","
WhiteSpace@26..27 " "
CallArg@27..31
Ident@27..28 "z"
Colon@28..29 ":"
WhiteSpace@29..30 " "
LitExpr@30..31
Lit@30..31
Int@30..31 "3"
RParen@31..32 ")"
Newline@32..33 "\n"
CallExpr@33..48
PathExpr@33..36
Path@33..36
PathSegment@33..36
Ident@33..36 "foo"
CallArgList@36..48
LParen@36..37 "("
CallArg@37..41
Ident@37..38 "x"
Colon@38..39 ":"
WhiteSpace@39..40 " "
LitExpr@40..41
Lit@40..41
Int@40..41 "1"
Comma@41..42 ","
WhiteSpace@42..43 " "
CallArg@43..47
Ident@43..44 "z"
Colon@44..45 ":"
WhiteSpace@45..46 " "
LitExpr@46..47
Lit@46..47
Int@46..47 "3"
RParen@47..48 ")"
Newline@48..49 "\n"
CallExpr@49..67
PathExpr@49..52
Path@49..52
PathSegment@49..52
Ident@49..52 "foo"
CallArgList@52..67
LParen@52..53 "("
CallArg@53..57
Ident@53..54 "x"
Colon@54..55 ":"
WhiteSpace@55..56 " "
LitExpr@56..57
Lit@56..57
Int@56..57 "1"
Comma@57..58 ","
WhiteSpace@58..59 " "
CallArg@59..60
LitExpr@59..60
Lit@59..60
Int@59..60 "2"
Comma@60..61 ","
WhiteSpace@61..62 " "
CallArg@62..66
Ident@62..63 "z"
Colon@63..64 ":"
WhiteSpace@64..65 " "
LitExpr@65..66
Lit@65..66
Int@65..66 "3"
RParen@66..67 ")"
Newline@67..68 "\n"
CallExpr@68..86
PathExpr@68..71
Path@68..71
PathSegment@68..71
Ident@68..71 "foo"
CallArgList@71..86
LParen@71..72 "("
CallArg@72..73
LitExpr@72..73
Lit@72..73
Int@72..73 "1"
Comma@73..74 ","
WhiteSpace@74..75 " "
CallArg@75..79
Ident@75..76 "y"
Colon@76..77 ":"
WhiteSpace@77..78 " "
LitExpr@78..79
Lit@78..79
Int@78..79 "2"
Comma@79..80 ","
WhiteSpace@80..81 " "
CallArg@81..85
Ident@81..82 "z"
Colon@82..83 ":"
WhiteSpace@83..84 " "
LitExpr@84..85
Lit@84..85
Int@84..85 "3"
RParen@85..86 ")"
Newline@86..88 "\n\n"
CallExpr@88..134
PathExpr@88..109
Path@88..109
PathSegment@88..109
Ident@88..91 "foo"
GenericArgList@91..109
Lt@91..92 "<"
TypeGenericArg@92..95
PathType@92..95
Path@92..95
PathSegment@92..95
Ident@92..95 "i32"
Comma@95..96 ","
WhiteSpace@96..97 " "
TypeGenericArg@97..108
PathType@97..108
Path@97..108
PathSegment@97..100
Ident@97..100 "foo"
Colon2@100..102 "::"
PathSegment@102..108
Ident@102..108 "MyType"
Gt@108..109 ">"
CallArgList@109..134
LParen@109..110 "("
CallArg@110..117
Ident@110..114 "val1"
Colon@114..115 ":"
WhiteSpace@115..116 " "
LitExpr@116..117
Lit@116..117
Int@116..117 "2"
Comma@117..118 ","
WhiteSpace@118..119 " "
CallArg@119..133
Ident@119..123 "val2"
Colon@123..124 ":"
WhiteSpace@124..125 " "
LitExpr@125..133
Lit@125..133
String@125..133 "\"String\""
RParen@133..134 ")"
Newline@134..135 "\n"
CallExpr@135..169
PathExpr@135..157
Path@135..157
PathSegment@135..157
Ident@135..138 "foo"
GenericArgList@138..157
Lt@138..139 "<"
TypeGenericArg@139..147
ArrayType@139..147
LBracket@139..140 "["
PathType@140..143
Path@140..143
PathSegment@140..143
Ident@140..143 "u32"
SemiColon@143..144 ";"
WhiteSpace@144..145 " "
LitExpr@145..146
Lit@145..146
Int@145..146 "1"
RBracket@146..147 "]"
Comma@147..148 ","
WhiteSpace@148..149 " "
ConstGenericArg@149..156
BlockExpr@149..156
LBrace@149..150 "{"
ExprStmt@150..155
BinExpr@150..155
LitExpr@150..151
Lit@150..151
Int@150..151 "3"
WhiteSpace@151..152 " "
Plus@152..153 "+"
WhiteSpace@153..154 " "
LitExpr@154..155
Lit@154..155
Int@154..155 "4"
RBrace@155..156 "}"
Gt@156..157 ">"
CallArgList@157..169
LParen@157..158 "("
CallArg@158..162
Ident@158..159 "x"
Colon@159..160 ":"
WhiteSpace@160..161 " "
LitExpr@161..162
Lit@161..162
Int@161..162 "1"
Comma@162..163 ","
WhiteSpace@163..164 " "
CallArg@164..168
Ident@164..165 "y"
Colon@165..166 ":"
WhiteSpace@166..167 " "
LitExpr@167..168
Lit@167..168
Int@167..168 "2"
RParen@168..169 ")"
Newline@169..171 "\n\n"
CallExpr@171..188
PathExpr@171..185
Path@171..185
PathSegment@171..174
Ident@171..174 "foo"
Colon2@174..176 "::"
PathSegment@176..185
Ident@176..179 "bar"
GenericArgList@179..185
Lt@179..180 "<"
TypeGenericArg@180..181
PathType@180..181
Path@180..181
PathSegment@180..181
Ident@180..181 "T"
Comma@181..182 ","
WhiteSpace@182..183 " "
TypeGenericArg@183..184
PathType@183..184
Path@183..184
PathSegment@183..184
Ident@183..184 "U"
Gt@184..185 ">"
CallArgList@185..188
LParen@185..186 "("
CallArg@186..187
PathExpr@186..187
Path@186..187
PathSegment@186..187
Ident@186..187 "x"
RParen@187..188 ")"
Newline@188..190 "\n\n"
MacroCallExpr@190..200
PathExpr@190..196
Path@190..196
PathSegment@190..196
Ident@190..196 "assert"
Not@196..197 "!"
CallArgList@197..200
LParen@197..198 "("
CallArg@198..199
PathExpr@198..199
Path@198..199
PathSegment@198..199
Ident@198..199 "x"
RParen@199..200 ")"
Newline@200..201 "\n"
MacroCallExpr@201..222
PathExpr@201..207
Path@201..207
PathSegment@201..207
Ident@201..207 "assert"
Not@207..208 "!"
CallArgList@208..222
LParen@208..209 "("
CallArg@209..210
PathExpr@209..210
Path@209..210
PathSegment@209..210
Ident@209..210 "x"
Comma@210..211 ","
WhiteSpace@211..212 " "
CallArg@212..221
LitExpr@212..221
Lit@212..221
String@212..221 "\"message\""
RParen@221..222 ")"
Newline@222..224 "\n\n"
Comment@224..298 "// Ths should be pars ..."
Newline@298..299 "\n"
ParenExpr@299..323
LParen@299..300 "("
CallExpr@300..322
PathExpr@300..318
Path@300..318
PathSegment@300..318
Ident@300..303 "foo"
WhiteSpace@303..304 " "
GenericArgList@304..318
Lt@304..305 "<"
WhiteSpace@305..306 " "
TypeGenericArg@306..309
PathType@306..309
Path@306..309
PathSegment@306..309
Ident@306..309 "i32"
Comma@309..310 ","
WhiteSpace@310..311 " "
TypeGenericArg@311..316
TupleType@311..316
LParen@311..312 "("
PathType@312..315
Path@312..315
PathSegment@312..315
Ident@312..315 "u32"
RParen@315..316 ")"
WhiteSpace@316..317 " "
Gt@317..318 ">"
WhiteSpace@318..319 " "
CallArgList@319..322
LParen@319..320 "("
CallArg@320..321
LitExpr@320..321
Lit@320..321
Int@320..321 "1"
RParen@321..322 ")"
RParen@322..323 ")"
Newline@323..324 "\n"