Debian Codegraph @

tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-1.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": 44
11 }
12 },
13 "range": [
14 0,
15 44
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": 44
28 }
29 },
30 "range": [
31 0,
32 44
33 ],
34 "expression": {
35 "type": "AssignmentExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 44
44 }
45 },
46 "range": [
47 0,
48 44
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": 3
61 }
62 },
63 "range": [
64 0,
65 3
66 ],
67 "name": "obj"
68 },
69 "right": {
70 "type": "ObjectExpression",
71 "loc": {
72 "start": {
73 "line": 1,
74 "column": 6
75 },
76 "end": {
77 "line": 1,
78 "column": 44
79 }
80 },
81 "range": [
82 6,
83 44
84 ],
85 "properties": [
86 {
87 "type": "Property",
88 "loc": {
89 "start": {
90 "line": 1,
91 "column": 8
92 },
93 "end": {
94 "line": 1,
95 "column": 42
96 }
97 },
98 "range": [
99 8,
100 42
101 ],
102 "method": true,
103 "shorthand": false,
104 "computed": false,
105 "key": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 14
111 },
112 "end": {
113 "line": 1,
114 "column": 15
115 }
116 },
117 "range": [
118 14,
119 15
120 ],
121 "name": "f"
122 },
123 "kind": "init",
124 "value": {
125 "type": "FunctionExpression",
126 "loc": {
127 "start": {
128 "line": 1,
129 "column": 15
130 },
131 "end": {
132 "line": 1,
133 "column": 42
134 }
135 },
136 "range": [
137 15,
138 42
139 ],
140 "id": null,
141 "generator": false,
142 "expression": false,
143 "async": true,
144 "params": [],
145 "body": {
146 "type": "BlockStatement",
147 "loc": {
148 "start": {
149 "line": 1,
150 "column": 18
151 },
152 "end": {
153 "line": 1,
154 "column": 42
155 }
156 },
157 "range": [
158 18,
159 42
160 ],
161 "body": [
162 {
163 "type": "ForOfStatement",
164 "loc": {
165 "start": {
166 "line": 1,
167 "column": 20
168 },
169 "end": {
170 "line": 1,
171 "column": 40
172 }
173 },
174 "range": [
175 20,
176 40
177 ],
178 "await": true,
179 "left": {
180 "type": "Identifier",
181 "loc": {
182 "start": {
183 "line": 1,
184 "column": 31
185 },
186 "end": {
187 "line": 1,
188 "column": 32
189 }
190 },
191 "range": [
192 31,
193 32
194 ],
195 "name": "x"
196 },
197 "right": {
198 "type": "Identifier",
199 "loc": {
200 "start": {
201 "line": 1,
202 "column": 36
203 },
204 "end": {
205 "line": 1,
206 "column": 38
207 }
208 },
209 "range": [
210 36,
211 38
212 ],
213 "name": "xs"
214 },
215 "body": {
216 "type": "EmptyStatement",
217 "loc": {
218 "start": {
219 "line": 1,
220 "column": 39
221 },
222 "end": {
223 "line": 1,
224 "column": 40
225 }
226 },
227 "range": [
228 39,
229 40
230 ]
231 }
232 }
233 ]
234 }
235 }
236 }
237 ]
238 }
239 }
240 }
241 ],
242 "sourceType": "script",
243 "tokens": [
244 {
245 "type": "Identifier",
246 "value": "obj",
247 "loc": {
248 "start": {
249 "line": 1,
250 "column": 0
251 },
252 "end": {
253 "line": 1,
254 "column": 3
255 }
256 },
257 "range": [
258 0,
259 3
260 ]
261 },
262 {
263 "type": "Punctuator",
264 "value": "=",
265 "loc": {
266 "start": {
267 "line": 1,
268 "column": 4
269 },
270 "end": {
271 "line": 1,
272 "column": 5
273 }
274 },
275 "range": [
276 4,
277 5
278 ]
279 },
280 {
281 "type": "Punctuator",
282 "value": "{",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 6
287 },
288 "end": {
289 "line": 1,
290 "column": 7
291 }
292 },
293 "range": [
294 6,
295 7
296 ]
297 },
298 {
299 "type": "Identifier",
300 "value": "async",
301 "loc": {
302 "start": {
303 "line": 1,
304 "column": 8
305 },
306 "end": {
307 "line": 1,
308 "column": 13
309 }
310 },
311 "range": [
312 8,
313 13
314 ]
315 },
316 {
317 "type": "Identifier",
318 "value": "f",
319 "loc": {
320 "start": {
321 "line": 1,
322 "column": 14
323 },
324 "end": {
325 "line": 1,
326 "column": 15
327 }
328 },
329 "range": [
330 14,
331 15
332 ]
333 },
334 {
335 "type": "Punctuator",
336 "value": "(",
337 "loc": {
338 "start": {
339 "line": 1,
340 "column": 15
341 },
342 "end": {
343 "line": 1,
344 "column": 16
345 }
346 },
347 "range": [
348 15,
349 16
350 ]
351 },
352 {
353 "type": "Punctuator",
354 "value": ")",
355 "loc": {
356 "start": {
357 "line": 1,
358 "column": 16
359 },
360 "end": {
361 "line": 1,
362 "column": 17
363 }
364 },
365 "range": [
366 16,
367 17
368 ]
369 },
370 {
371 "type": "Punctuator",
372 "value": "{",
373 "loc": {
374 "start": {
375 "line": 1,
376 "column": 18
377 },
378 "end": {
379 "line": 1,
380 "column": 19
381 }
382 },
383 "range": [
384 18,
385 19
386 ]
387 },
388 {
389 "type": "Keyword",
390 "value": "for",
391 "loc": {
392 "start": {
393 "line": 1,
394 "column": 20
395 },
396 "end": {
397 "line": 1,
398 "column": 23
399 }
400 },
401 "range": [
402 20,
403 23
404 ]
405 },
406 {
407 "type": "Identifier",
408 "value": "await",
409 "loc": {
410 "start": {
411 "line": 1,
412 "column": 24
413 },
414 "end": {
415 "line": 1,
416 "column": 29
417 }
418 },
419 "range": [
420 24,
421 29
422 ]
423 },
424 {
425 "type": "Punctuator",
426 "value": "(",
427 "loc": {
428 "start": {
429 "line": 1,
430 "column": 30
431 },
432 "end": {
433 "line": 1,
434 "column": 31
435 }
436 },
437 "range": [
438 30,
439 31
440 ]
441 },
442 {
443 "type": "Identifier",
444 "value": "x",
445 "loc": {
446 "start": {
447 "line": 1,
448 "column": 31
449 },
450 "end": {
451 "line": 1,
452 "column": 32
453 }
454 },
455 "range": [
456 31,
457 32
458 ]
459 },
460 {
461 "type": "Identifier",
462 "value": "of",
463 "loc": {
464 "start": {
465 "line": 1,
466 "column": 33
467 },
468 "end": {
469 "line": 1,
470 "column": 35
471 }
472 },
473 "range": [
474 33,
475 35
476 ]
477 },
478 {
479 "type": "Identifier",
480 "value": "xs",
481 "loc": {
482 "start": {
483 "line": 1,
484 "column": 36
485 },
486 "end": {
487 "line": 1,
488 "column": 38
489 }
490 },
491 "range": [
492 36,
493 38
494 ]
495 },
496 {
497 "type": "Punctuator",
498 "value": ")",
499 "loc": {
500 "start": {
501 "line": 1,
502 "column": 38
503 },
504 "end": {
505 "line": 1,
506 "column": 39
507 }
508 },
509 "range": [
510 38,
511 39
512 ]
513 },
514 {
515 "type": "Punctuator",
516 "value": ";",
517 "loc": {
518 "start": {
519 "line": 1,
520 "column": 39
521 },
522 "end": {
523 "line": 1,
524 "column": 40
525 }
526 },
527 "range": [
528 39,
529 40
530 ]
531 },
532 {
533 "type": "Punctuator",
534 "value": "}",
535 "loc": {
536 "start": {
537 "line": 1,
538 "column": 41
539 },
540 "end": {
541 "line": 1,
542 "column": 42
543 }
544 },
545 "range": [
546 41,
547 42
548 ]
549 },
550 {
551 "type": "Punctuator",
552 "value": "}",
553 "loc": {
554 "start": {
555 "line": 1,
556 "column": 43
557 },
558 "end": {
559 "line": 1,
560 "column": 44
561 }
562 },
563 "range": [
564 43,
565 44
566 ]
567 }
568 ]
569 };