Debian Codegraph @

tests/fixtures/ecma-version/9/for-await-of/valid-with-async-arrow-function.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 39
11 }
12 },
13 "range": [
14 0,
15 39
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 39
28 }
29 },
30 "range": [
31 0,
32 39
33 ],
34 "expression": {
35 "type": "AssignmentExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 39
44 }
45 },
46 "range": [
47 0,
48 39
49 ],
50 "operator": "=",
51 "left": {
52 "type": "Identifier",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 0
57 },
58 "end": {
59 "line": 1,
60 "column": 1
61 }
62 },
63 "range": [
64 0,
65 1
66 ],
67 "name": "f"
68 },
69 "right": {
70 "type": "ArrowFunctionExpression",
71 "loc": {
72 "start": {
73 "line": 1,
74 "column": 4
75 },
76 "end": {
77 "line": 1,
78 "column": 39
79 }
80 },
81 "range": [
82 4,
83 39
84 ],
85 "id": null,
86 "generator": false,
87 "expression": false,
88 "async": true,
89 "params": [],
90 "body": {
91 "type": "BlockStatement",
92 "loc": {
93 "start": {
94 "line": 1,
95 "column": 15
96 },
97 "end": {
98 "line": 1,
99 "column": 39
100 }
101 },
102 "range": [
103 15,
104 39
105 ],
106 "body": [
107 {
108 "type": "ForOfStatement",
109 "loc": {
110 "start": {
111 "line": 1,
112 "column": 17
113 },
114 "end": {
115 "line": 1,
116 "column": 37
117 }
118 },
119 "range": [
120 17,
121 37
122 ],
123 "await": true,
124 "left": {
125 "type": "Identifier",
126 "loc": {
127 "start": {
128 "line": 1,
129 "column": 28
130 },
131 "end": {
132 "line": 1,
133 "column": 29
134 }
135 },
136 "range": [
137 28,
138 29
139 ],
140 "name": "x"
141 },
142 "right": {
143 "type": "Identifier",
144 "loc": {
145 "start": {
146 "line": 1,
147 "column": 33
148 },
149 "end": {
150 "line": 1,
151 "column": 35
152 }
153 },
154 "range": [
155 33,
156 35
157 ],
158 "name": "xs"
159 },
160 "body": {
161 "type": "EmptyStatement",
162 "loc": {
163 "start": {
164 "line": 1,
165 "column": 36
166 },
167 "end": {
168 "line": 1,
169 "column": 37
170 }
171 },
172 "range": [
173 36,
174 37
175 ]
176 }
177 }
178 ]
179 }
180 }
181 }
182 }
183 ],
184 "sourceType": "script",
185 "tokens": [
186 {
187 "type": "Identifier",
188 "value": "f",
189 "loc": {
190 "start": {
191 "line": 1,
192 "column": 0
193 },
194 "end": {
195 "line": 1,
196 "column": 1
197 }
198 },
199 "range": [
200 0,
201 1
202 ]
203 },
204 {
205 "type": "Punctuator",
206 "value": "=",
207 "loc": {
208 "start": {
209 "line": 1,
210 "column": 2
211 },
212 "end": {
213 "line": 1,
214 "column": 3
215 }
216 },
217 "range": [
218 2,
219 3
220 ]
221 },
222 {
223 "type": "Identifier",
224 "value": "async",
225 "loc": {
226 "start": {
227 "line": 1,
228 "column": 4
229 },
230 "end": {
231 "line": 1,
232 "column": 9
233 }
234 },
235 "range": [
236 4,
237 9
238 ]
239 },
240 {
241 "type": "Punctuator",
242 "value": "(",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 9
247 },
248 "end": {
249 "line": 1,
250 "column": 10
251 }
252 },
253 "range": [
254 9,
255 10
256 ]
257 },
258 {
259 "type": "Punctuator",
260 "value": ")",
261 "loc": {
262 "start": {
263 "line": 1,
264 "column": 10
265 },
266 "end": {
267 "line": 1,
268 "column": 11
269 }
270 },
271 "range": [
272 10,
273 11
274 ]
275 },
276 {
277 "type": "Punctuator",
278 "value": "=>",
279 "loc": {
280 "start": {
281 "line": 1,
282 "column": 12
283 },
284 "end": {
285 "line": 1,
286 "column": 14
287 }
288 },
289 "range": [
290 12,
291 14
292 ]
293 },
294 {
295 "type": "Punctuator",
296 "value": "{",
297 "loc": {
298 "start": {
299 "line": 1,
300 "column": 15
301 },
302 "end": {
303 "line": 1,
304 "column": 16
305 }
306 },
307 "range": [
308 15,
309 16
310 ]
311 },
312 {
313 "type": "Keyword",
314 "value": "for",
315 "loc": {
316 "start": {
317 "line": 1,
318 "column": 17
319 },
320 "end": {
321 "line": 1,
322 "column": 20
323 }
324 },
325 "range": [
326 17,
327 20
328 ]
329 },
330 {
331 "type": "Identifier",
332 "value": "await",
333 "loc": {
334 "start": {
335 "line": 1,
336 "column": 21
337 },
338 "end": {
339 "line": 1,
340 "column": 26
341 }
342 },
343 "range": [
344 21,
345 26
346 ]
347 },
348 {
349 "type": "Punctuator",
350 "value": "(",
351 "loc": {
352 "start": {
353 "line": 1,
354 "column": 27
355 },
356 "end": {
357 "line": 1,
358 "column": 28
359 }
360 },
361 "range": [
362 27,
363 28
364 ]
365 },
366 {
367 "type": "Identifier",
368 "value": "x",
369 "loc": {
370 "start": {
371 "line": 1,
372 "column": 28
373 },
374 "end": {
375 "line": 1,
376 "column": 29
377 }
378 },
379 "range": [
380 28,
381 29
382 ]
383 },
384 {
385 "type": "Identifier",
386 "value": "of",
387 "loc": {
388 "start": {
389 "line": 1,
390 "column": 30
391 },
392 "end": {
393 "line": 1,
394 "column": 32
395 }
396 },
397 "range": [
398 30,
399 32
400 ]
401 },
402 {
403 "type": "Identifier",
404 "value": "xs",
405 "loc": {
406 "start": {
407 "line": 1,
408 "column": 33
409 },
410 "end": {
411 "line": 1,
412 "column": 35
413 }
414 },
415 "range": [
416 33,
417 35
418 ]
419 },
420 {
421 "type": "Punctuator",
422 "value": ")",
423 "loc": {
424 "start": {
425 "line": 1,
426 "column": 35
427 },
428 "end": {
429 "line": 1,
430 "column": 36
431 }
432 },
433 "range": [
434 35,
435 36
436 ]
437 },
438 {
439 "type": "Punctuator",
440 "value": ";",
441 "loc": {
442 "start": {
443 "line": 1,
444 "column": 36
445 },
446 "end": {
447 "line": 1,
448 "column": 37
449 }
450 },
451 "range": [
452 36,
453 37
454 ]
455 },
456 {
457 "type": "Punctuator",
458 "value": "}",
459 "loc": {
460 "start": {
461 "line": 1,
462 "column": 38
463 },
464 "end": {
465 "line": 1,
466 "column": 39
467 }
468 },
469 "range": [
470 38,
471 39
472 ]
473 }
474 ]
475 };