Debian Codegraph @

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