Debian Codegraph @

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