Debian Codegraph @

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