Debian Codegraph @

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