Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-static-block/invalid-await/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}},
4 "errors": [
5 "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (5:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "generator": false,
22 "async": true,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":21,"end":95,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":8,"column":1,"index":95}},
27 "body": [
28 {
29 "type": "ClassDeclaration",
30 "start":25,"end":93,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":7,"column":3,"index":93}},
31 "id": {
32 "type": "Identifier",
33 "start":31,"end":32,"loc":{"start":{"line":2,"column":8,"index":31},"end":{"line":2,"column":9,"index":32},"identifierName":"C"},
34 "name": "C"
35 },
36 "superClass": null,
37 "body": {
38 "type": "ClassBody",
39 "start":33,"end":93,"loc":{"start":{"line":2,"column":10,"index":33},"end":{"line":7,"column":3,"index":93}},
40 "body": [
41 {
42 "type": "ClassMethod",
43 "start":39,"end":54,"loc":{"start":{"line":3,"column":4,"index":39},"end":{"line":3,"column":19,"index":54}},
44 "static": true,
45 "key": {
46 "type": "Identifier",
47 "start":46,"end":49,"loc":{"start":{"line":3,"column":11,"index":46},"end":{"line":3,"column":14,"index":49},"identifierName":"foo"},
48 "name": "foo"
49 },
50 "computed": false,
51 "kind": "method",
52 "id": null,
53 "generator": false,
54 "async": false,
55 "params": [],
56 "body": {
57 "type": "BlockStatement",
58 "start":52,"end":54,"loc":{"start":{"line":3,"column":17,"index":52},"end":{"line":3,"column":19,"index":54}},
59 "body": [],
60 "directives": []
61 }
62 },
63 {
64 "type": "StaticBlock",
65 "start":59,"end":89,"loc":{"start":{"line":4,"column":4,"index":59},"end":{"line":6,"column":5,"index":89}},
66 "body": [
67 {
68 "type": "ExpressionStatement",
69 "start":74,"end":83,"loc":{"start":{"line":5,"column":6,"index":74},"end":{"line":5,"column":15,"index":83}},
70 "expression": {
71 "type": "AwaitExpression",
72 "start":74,"end":82,"loc":{"start":{"line":5,"column":6,"index":74},"end":{"line":5,"column":14,"index":82}},
73 "argument": {
74 "type": "NumericLiteral",
75 "start":80,"end":82,"loc":{"start":{"line":5,"column":12,"index":80},"end":{"line":5,"column":14,"index":82}},
76 "extra": {
77 "rawValue": 42,
78 "raw": "42"
79 },
80 "value": 42
81 }
82 }
83 }
84 ]
85 }
86 ]
87 }
88 }
89 ],
90 "directives": []
91 }
92 }
93 ],
94 "directives": []
95 }
96 }