Debian Codegraph @

tests/fixtures/ecma-version/8/not-strict/async-await-destructured-default.result.js

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