Debian Codegraph @

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