Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/top-level-await-module/inside-class-property/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
4 "errors": [
5 "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExportNamedDeclaration",
15 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
16 "specifiers": [],
17 "source": null,
18 "declaration": {
19 "type": "ClassDeclaration",
20 "start":7,"end":33,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":3,"column":1,"index":33}},
21 "id": {
22 "type": "Identifier",
23 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"C"},
24 "name": "C"
25 },
26 "superClass": null,
27 "body": {
28 "type": "ClassBody",
29 "start":15,"end":33,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":3,"column":1,"index":33}},
30 "body": [
31 {
32 "type": "ClassProperty",
33 "start":19,"end":31,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":14,"index":31}},
34 "static": false,
35 "key": {
36 "type": "Identifier",
37 "start":19,"end":20,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":3,"index":20},"identifierName":"p"},
38 "name": "p"
39 },
40 "computed": false,
41 "value": {
42 "type": "AwaitExpression",
43 "start":23,"end":30,"loc":{"start":{"line":2,"column":6,"index":23},"end":{"line":2,"column":13,"index":30}},
44 "argument": {
45 "type": "NumericLiteral",
46 "start":29,"end":30,"loc":{"start":{"line":2,"column":12,"index":29},"end":{"line":2,"column":13,"index":30}},
47 "extra": {
48 "rawValue": 0,
49 "raw": "0"
50 },
51 "value": 0
52 }
53 }
54 }
55 ]
56 }
57 }
58 }
59 ],
60 "directives": []
61 }
62 }