Debian Codegraph @

tests/fixtures/ecma-version/9/async-generator/valid-class-static-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": 51
11 }
12 },
13 "range": [
14 0,
15 51
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": 51
28 }
29 },
30 "range": [
31 0,
32 51
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": 51
63 }
64 },
65 "range": [
66 8,
67 51
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": 49
80 }
81 },
82 "range": [
83 10,
84 49
85 ],
86 "kind": "method",
87 "static": true,
88 "computed": false,
89 "key": {
90 "type": "Identifier",
91 "loc": {
92 "start": {
93 "line": 1,
94 "column": 24
95 },
96 "end": {
97 "line": 1,
98 "column": 25
99 }
100 },
101 "range": [
102 24,
103 25
104 ],
105 "name": "f"
106 },
107 "value": {
108 "type": "FunctionExpression",
109 "loc": {
110 "start": {
111 "line": 1,
112 "column": 25
113 },
114 "end": {
115 "line": 1,
116 "column": 49
117 }
118 },
119 "range": [
120 25,
121 49
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": 28
134 },
135 "end": {
136 "line": 1,
137 "column": 49
138 }
139 },
140 "range": [
141 28,
142 49
143 ],
144 "body": [
145 {
146 "type": "ExpressionStatement",
147 "loc": {
148 "start": {
149 "line": 1,
150 "column": 30
151 },
152 "end": {
153 "line": 1,
154 "column": 38
155 }
156 },
157 "range": [
158 30,
159 38
160 ],
161 "expression": {
162 "type": "AwaitExpression",
163 "loc": {
164 "start": {
165 "line": 1,
166 "column": 30
167 },
168 "end": {
169 "line": 1,
170 "column": 37
171 }
172 },
173 "range": [
174 30,
175 37
176 ],
177 "argument": {
178 "type": "Identifier",
179 "loc": {
180 "start": {
181 "line": 1,
182 "column": 36
183 },
184 "end": {
185 "line": 1,
186 "column": 37
187 }
188 },
189 "range": [
190 36,
191 37
192 ],
193 "name": "a"
194 }
195 }
196 },
197 {
198 "type": "ExpressionStatement",
199 "loc": {
200 "start": {
201 "line": 1,
202 "column": 39
203 },
204 "end": {
205 "line": 1,
206 "column": 47
207 }
208 },
209 "range": [
210 39,
211 47
212 ],
213 "expression": {
214 "type": "YieldExpression",
215 "loc": {
216 "start": {
217 "line": 1,
218 "column": 39
219 },
220 "end": {
221 "line": 1,
222 "column": 46
223 }
224 },
225 "range": [
226 39,
227 46
228 ],
229 "delegate": false,
230 "argument": {
231 "type": "Identifier",
232 "loc": {
233 "start": {
234 "line": 1,
235 "column": 45
236 },
237 "end": {
238 "line": 1,
239 "column": 46
240 }
241 },
242 "range": [
243 45,
244 46
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": "Keyword",
316 "value": "static",
317 "loc": {
318 "start": {
319 "line": 1,
320 "column": 10
321 },
322 "end": {
323 "line": 1,
324 "column": 16
325 }
326 },
327 "range": [
328 10,
329 16
330 ]
331 },
332 {
333 "type": "Identifier",
334 "value": "async",
335 "loc": {
336 "start": {
337 "line": 1,
338 "column": 17
339 },
340 "end": {
341 "line": 1,
342 "column": 22
343 }
344 },
345 "range": [
346 17,
347 22
348 ]
349 },
350 {
351 "type": "Punctuator",
352 "value": "*",
353 "loc": {
354 "start": {
355 "line": 1,
356 "column": 22
357 },
358 "end": {
359 "line": 1,
360 "column": 23
361 }
362 },
363 "range": [
364 22,
365 23
366 ]
367 },
368 {
369 "type": "Identifier",
370 "value": "f",
371 "loc": {
372 "start": {
373 "line": 1,
374 "column": 24
375 },
376 "end": {
377 "line": 1,
378 "column": 25
379 }
380 },
381 "range": [
382 24,
383 25
384 ]
385 },
386 {
387 "type": "Punctuator",
388 "value": "(",
389 "loc": {
390 "start": {
391 "line": 1,
392 "column": 25
393 },
394 "end": {
395 "line": 1,
396 "column": 26
397 }
398 },
399 "range": [
400 25,
401 26
402 ]
403 },
404 {
405 "type": "Punctuator",
406 "value": ")",
407 "loc": {
408 "start": {
409 "line": 1,
410 "column": 26
411 },
412 "end": {
413 "line": 1,
414 "column": 27
415 }
416 },
417 "range": [
418 26,
419 27
420 ]
421 },
422 {
423 "type": "Punctuator",
424 "value": "{",
425 "loc": {
426 "start": {
427 "line": 1,
428 "column": 28
429 },
430 "end": {
431 "line": 1,
432 "column": 29
433 }
434 },
435 "range": [
436 28,
437 29
438 ]
439 },
440 {
441 "type": "Identifier",
442 "value": "await",
443 "loc": {
444 "start": {
445 "line": 1,
446 "column": 30
447 },
448 "end": {
449 "line": 1,
450 "column": 35
451 }
452 },
453 "range": [
454 30,
455 35
456 ]
457 },
458 {
459 "type": "Identifier",
460 "value": "a",
461 "loc": {
462 "start": {
463 "line": 1,
464 "column": 36
465 },
466 "end": {
467 "line": 1,
468 "column": 37
469 }
470 },
471 "range": [
472 36,
473 37
474 ]
475 },
476 {
477 "type": "Punctuator",
478 "value": ";",
479 "loc": {
480 "start": {
481 "line": 1,
482 "column": 37
483 },
484 "end": {
485 "line": 1,
486 "column": 38
487 }
488 },
489 "range": [
490 37,
491 38
492 ]
493 },
494 {
495 "type": "Keyword",
496 "value": "yield",
497 "loc": {
498 "start": {
499 "line": 1,
500 "column": 39
501 },
502 "end": {
503 "line": 1,
504 "column": 44
505 }
506 },
507 "range": [
508 39,
509 44
510 ]
511 },
512 {
513 "type": "Identifier",
514 "value": "b",
515 "loc": {
516 "start": {
517 "line": 1,
518 "column": 45
519 },
520 "end": {
521 "line": 1,
522 "column": 46
523 }
524 },
525 "range": [
526 45,
527 46
528 ]
529 },
530 {
531 "type": "Punctuator",
532 "value": ";",
533 "loc": {
534 "start": {
535 "line": 1,
536 "column": 46
537 },
538 "end": {
539 "line": 1,
540 "column": 47
541 }
542 },
543 "range": [
544 46,
545 47
546 ]
547 },
548 {
549 "type": "Punctuator",
550 "value": "}",
551 "loc": {
552 "start": {
553 "line": 1,
554 "column": 48
555 },
556 "end": {
557 "line": 1,
558 "column": 49
559 }
560 },
561 "range": [
562 48,
563 49
564 ]
565 },
566 {
567 "type": "Punctuator",
568 "value": "}",
569 "loc": {
570 "start": {
571 "line": 1,
572 "column": 50
573 },
574 "end": {
575 "line": 1,
576 "column": 51
577 }
578 },
579 "range": [
580 50,
581 51
582 ]
583 }
584 ]
585 };