Debian Codegraph @

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