Debian Codegraph @

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