Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-class-methods/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [],
20 "body": {
21 "type": "ClassExpression",
22 "start":6,"end":40,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":1,"index":40}},
23 "id": null,
24 "superClass": null,
25 "body": {
26 "type": "ClassBody",
27 "start":12,"end":40,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":40}},
28 "body": [
29 {
30 "type": "ClassMethod",
31 "start":16,"end":38,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":24,"index":38}},
32 "static": false,
33 "key": {
34 "type": "Identifier",
35 "start":22,"end":23,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":9,"index":23},"identifierName":"m"},
36 "name": "m"
37 },
38 "computed": false,
39 "kind": "method",
40 "id": null,
41 "generator": false,
42 "async": true,
43 "params": [],
44 "body": {
45 "type": "BlockStatement",
46 "start":26,"end":38,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":24,"index":38}},
47 "body": [
48 {
49 "type": "ExpressionStatement",
50 "start":28,"end":36,"loc":{"start":{"line":2,"column":14,"index":28},"end":{"line":2,"column":22,"index":36}},
51 "expression": {
52 "type": "AwaitExpression",
53 "start":28,"end":36,"loc":{"start":{"line":2,"column":14,"index":28},"end":{"line":2,"column":22,"index":36}},
54 "argument": {
55 "type": "NumericLiteral",
56 "start":34,"end":36,"loc":{"start":{"line":2,"column":20,"index":34},"end":{"line":2,"column":22,"index":36}},
57 "extra": {
58 "rawValue": 42,
59 "raw": "42"
60 },
61 "value": 42
62 }
63 }
64 }
65 ],
66 "directives": []
67 }
68 }
69 ]
70 }
71 }
72 }
73 }
74 ],
75 "directives": []
76 }
77 }