Debian Codegraph @

tests/fixtures/ecma-version/8/modules/async-await-class-method-param.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": 59
11 }
12 },
13 "range": [
14 0,
15 59
16 ],
17 "body": [
18 {
19 "type": "FunctionDeclaration",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 58
28 }
29 },
30 "range": [
31 0,
32 58
33 ],
34 "id": {
35 "type": "Identifier",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 15
40 },
41 "end": {
42 "line": 1,
43 "column": 18
44 }
45 },
46 "range": [
47 15,
48 18
49 ],
50 "name": "foo"
51 },
52 "generator": false,
53 "expression": false,
54 "async": true,
55 "params": [
56 {
57 "type": "AssignmentPattern",
58 "loc": {
59 "start": {
60 "line": 1,
61 "column": 19
62 },
63 "end": {
64 "line": 1,
65 "column": 54
66 }
67 },
68 "range": [
69 19,
70 54
71 ],
72 "left": {
73 "type": "Identifier",
74 "loc": {
75 "start": {
76 "line": 1,
77 "column": 19
78 },
79 "end": {
80 "line": 1,
81 "column": 20
82 }
83 },
84 "range": [
85 19,
86 20
87 ],
88 "name": "a"
89 },
90 "right": {
91 "type": "ClassExpression",
92 "loc": {
93 "start": {
94 "line": 1,
95 "column": 23
96 },
97 "end": {
98 "line": 1,
99 "column": 54
100 }
101 },
102 "range": [
103 23,
104 54
105 ],
106 "id": null,
107 "superClass": null,
108 "body": {
109 "type": "ClassBody",
110 "loc": {
111 "start": {
112 "line": 1,
113 "column": 29
114 },
115 "end": {
116 "line": 1,
117 "column": 54
118 }
119 },
120 "range": [
121 29,
122 54
123 ],
124 "body": [
125 {
126 "type": "MethodDefinition",
127 "loc": {
128 "start": {
129 "line": 1,
130 "column": 30
131 },
132 "end": {
133 "line": 1,
134 "column": 53
135 }
136 },
137 "range": [
138 30,
139 53
140 ],
141 "computed": false,
142 "key": {
143 "type": "Identifier",
144 "loc": {
145 "start": {
146 "line": 1,
147 "column": 36
148 },
149 "end": {
150 "line": 1,
151 "column": 39
152 }
153 },
154 "range": [
155 36,
156 39
157 ],
158 "name": "bar"
159 },
160 "static": false,
161 "kind": "method",
162 "value": {
163 "type": "FunctionExpression",
164 "loc": {
165 "start": {
166 "line": 1,
167 "column": 39
168 },
169 "end": {
170 "line": 1,
171 "column": 53
172 }
173 },
174 "range": [
175 39,
176 53
177 ],
178 "id": null,
179 "generator": false,
180 "expression": false,
181 "async": true,
182 "params": [],
183 "body": {
184 "type": "BlockStatement",
185 "loc": {
186 "start": {
187 "line": 1,
188 "column": 42
189 },
190 "end": {
191 "line": 1,
192 "column": 53
193 }
194 },
195 "range": [
196 42,
197 53
198 ],
199 "body": [
200 {
201 "type": "ExpressionStatement",
202 "loc": {
203 "start": {
204 "line": 1,
205 "column": 44
206 },
207 "end": {
208 "line": 1,
209 "column": 51
210 }
211 },
212 "range": [
213 44,
214 51
215 ],
216 "expression": {
217 "type": "AwaitExpression",
218 "loc": {
219 "start": {
220 "line": 1,
221 "column": 44
222 },
223 "end": {
224 "line": 1,
225 "column": 51
226 }
227 },
228 "range": [
229 44,
230 51
231 ],
232 "argument": {
233 "type": "Identifier",
234 "loc": {
235 "start": {
236 "line": 1,
237 "column": 50
238 },
239 "end": {
240 "line": 1,
241 "column": 51
242 }
243 },
244 "range": [
245 50,
246 51
247 ],
248 "name": "b"
249 }
250 }
251 }
252 ]
253 }
254 }
255 }
256 ]
257 }
258 }
259 }
260 ],
261 "body": {
262 "type": "BlockStatement",
263 "loc": {
264 "start": {
265 "line": 1,
266 "column": 56
267 },
268 "end": {
269 "line": 1,
270 "column": 58
271 }
272 },
273 "range": [
274 56,
275 58
276 ],
277 "body": []
278 }
279 },
280 {
281 "type": "EmptyStatement",
282 "loc": {
283 "start": {
284 "line": 1,
285 "column": 58
286 },
287 "end": {
288 "line": 1,
289 "column": 59
290 }
291 },
292 "range": [
293 58,
294 59
295 ]
296 }
297 ],
298 "sourceType": "module",
299 "tokens": [
300 {
301 "type": "Identifier",
302 "value": "async",
303 "loc": {
304 "start": {
305 "line": 1,
306 "column": 0
307 },
308 "end": {
309 "line": 1,
310 "column": 5
311 }
312 },
313 "range": [
314 0,
315 5
316 ]
317 },
318 {
319 "type": "Keyword",
320 "value": "function",
321 "loc": {
322 "start": {
323 "line": 1,
324 "column": 6
325 },
326 "end": {
327 "line": 1,
328 "column": 14
329 }
330 },
331 "range": [
332 6,
333 14
334 ]
335 },
336 {
337 "type": "Identifier",
338 "value": "foo",
339 "loc": {
340 "start": {
341 "line": 1,
342 "column": 15
343 },
344 "end": {
345 "line": 1,
346 "column": 18
347 }
348 },
349 "range": [
350 15,
351 18
352 ]
353 },
354 {
355 "type": "Punctuator",
356 "value": "(",
357 "loc": {
358 "start": {
359 "line": 1,
360 "column": 18
361 },
362 "end": {
363 "line": 1,
364 "column": 19
365 }
366 },
367 "range": [
368 18,
369 19
370 ]
371 },
372 {
373 "type": "Identifier",
374 "value": "a",
375 "loc": {
376 "start": {
377 "line": 1,
378 "column": 19
379 },
380 "end": {
381 "line": 1,
382 "column": 20
383 }
384 },
385 "range": [
386 19,
387 20
388 ]
389 },
390 {
391 "type": "Punctuator",
392 "value": "=",
393 "loc": {
394 "start": {
395 "line": 1,
396 "column": 21
397 },
398 "end": {
399 "line": 1,
400 "column": 22
401 }
402 },
403 "range": [
404 21,
405 22
406 ]
407 },
408 {
409 "type": "Keyword",
410 "value": "class",
411 "loc": {
412 "start": {
413 "line": 1,
414 "column": 23
415 },
416 "end": {
417 "line": 1,
418 "column": 28
419 }
420 },
421 "range": [
422 23,
423 28
424 ]
425 },
426 {
427 "type": "Punctuator",
428 "value": "{",
429 "loc": {
430 "start": {
431 "line": 1,
432 "column": 29
433 },
434 "end": {
435 "line": 1,
436 "column": 30
437 }
438 },
439 "range": [
440 29,
441 30
442 ]
443 },
444 {
445 "type": "Identifier",
446 "value": "async",
447 "loc": {
448 "start": {
449 "line": 1,
450 "column": 30
451 },
452 "end": {
453 "line": 1,
454 "column": 35
455 }
456 },
457 "range": [
458 30,
459 35
460 ]
461 },
462 {
463 "type": "Identifier",
464 "value": "bar",
465 "loc": {
466 "start": {
467 "line": 1,
468 "column": 36
469 },
470 "end": {
471 "line": 1,
472 "column": 39
473 }
474 },
475 "range": [
476 36,
477 39
478 ]
479 },
480 {
481 "type": "Punctuator",
482 "value": "(",
483 "loc": {
484 "start": {
485 "line": 1,
486 "column": 39
487 },
488 "end": {
489 "line": 1,
490 "column": 40
491 }
492 },
493 "range": [
494 39,
495 40
496 ]
497 },
498 {
499 "type": "Punctuator",
500 "value": ")",
501 "loc": {
502 "start": {
503 "line": 1,
504 "column": 40
505 },
506 "end": {
507 "line": 1,
508 "column": 41
509 }
510 },
511 "range": [
512 40,
513 41
514 ]
515 },
516 {
517 "type": "Punctuator",
518 "value": "{",
519 "loc": {
520 "start": {
521 "line": 1,
522 "column": 42
523 },
524 "end": {
525 "line": 1,
526 "column": 43
527 }
528 },
529 "range": [
530 42,
531 43
532 ]
533 },
534 {
535 "type": "Identifier",
536 "value": "await",
537 "loc": {
538 "start": {
539 "line": 1,
540 "column": 44
541 },
542 "end": {
543 "line": 1,
544 "column": 49
545 }
546 },
547 "range": [
548 44,
549 49
550 ]
551 },
552 {
553 "type": "Identifier",
554 "value": "b",
555 "loc": {
556 "start": {
557 "line": 1,
558 "column": 50
559 },
560 "end": {
561 "line": 1,
562 "column": 51
563 }
564 },
565 "range": [
566 50,
567 51
568 ]
569 },
570 {
571 "type": "Punctuator",
572 "value": "}",
573 "loc": {
574 "start": {
575 "line": 1,
576 "column": 52
577 },
578 "end": {
579 "line": 1,
580 "column": 53
581 }
582 },
583 "range": [
584 52,
585 53
586 ]
587 },
588 {
589 "type": "Punctuator",
590 "value": "}",
591 "loc": {
592 "start": {
593 "line": 1,
594 "column": 53
595 },
596 "end": {
597 "line": 1,
598 "column": 54
599 }
600 },
601 "range": [
602 53,
603 54
604 ]
605 },
606 {
607 "type": "Punctuator",
608 "value": ")",
609 "loc": {
610 "start": {
611 "line": 1,
612 "column": 54
613 },
614 "end": {
615 "line": 1,
616 "column": 55
617 }
618 },
619 "range": [
620 54,
621 55
622 ]
623 },
624 {
625 "type": "Punctuator",
626 "value": "{",
627 "loc": {
628 "start": {
629 "line": 1,
630 "column": 56
631 },
632 "end": {
633 "line": 1,
634 "column": 57
635 }
636 },
637 "range": [
638 56,
639 57
640 ]
641 },
642 {
643 "type": "Punctuator",
644 "value": "}",
645 "loc": {
646 "start": {
647 "line": 1,
648 "column": 57
649 },
650 "end": {
651 "line": 1,
652 "column": 58
653 }
654 },
655 "range": [
656 57,
657 58
658 ]
659 },
660 {
661 "type": "Punctuator",
662 "value": ";",
663 "loc": {
664 "start": {
665 "line": 1,
666 "column": 58
667 },
668 "end": {
669 "line": 1,
670 "column": 59
671 }
672 },
673 "range": [
674 58,
675 59
676 ]
677 }
678 ]
679 }