Debian Codegraph @

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