Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-computed-class-property/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": true,
19 "params": [],
20 "body": {
21 "type": "ClassExpression",
22 "start":12,"end":40,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":40}},
23 "id": null,
24 "superClass": null,
25 "body": {
26 "type": "ClassBody",
27 "start":18,"end":40,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":3,"column":1,"index":40}},
28 "body": [
29 {
30 "type": "ClassMethod",
31 "start":22,"end":38,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":18,"index":38}},
32 "static": false,
33 "computed": true,
34 "key": {
35 "type": "AwaitExpression",
36 "start":23,"end":31,"loc":{"start":{"line":2,"column":3,"index":23},"end":{"line":2,"column":11,"index":31}},
37 "argument": {
38 "type": "NumericLiteral",
39 "start":29,"end":31,"loc":{"start":{"line":2,"column":9,"index":29},"end":{"line":2,"column":11,"index":31}},
40 "extra": {
41 "rawValue": 42,
42 "raw": "42"
43 },
44 "value": 42
45 }
46 },
47 "kind": "method",
48 "id": null,
49 "generator": false,
50 "async": false,
51 "params": [],
52 "body": {
53 "type": "BlockStatement",
54 "start":35,"end":38,"loc":{"start":{"line":2,"column":15,"index":35},"end":{"line":2,"column":18,"index":38}},
55 "body": [],
56 "directives": []
57 }
58 }
59 ]
60 }
61 }
62 }
63 }
64 ],
65 "directives": []
66 }
67 }