Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0278/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'static'. (1:17)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":30,"index":30}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":9,"end":28,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":28,"index":28}},
29 "static": true,
30 "computed": true,
31 "key": {
32 "type": "Identifier",
33 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23},"identifierName":"static"},
34 "name": "static"
35 },
36 "kind": "method",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":26,"end":28,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":28,"index":28}},
44 "body": [],
45 "directives": []
46 }
47 }
48 ]
49 }
50 }
51 ],
52 "directives": []
53 }
54 }