Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (1:1)",
6 "SyntaxError: Unexpected reserved word 'enum'. (1:2)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1}},
17 "expression": {
18 "type": "Identifier",
19 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"a"},
20 "name": "a"
21 }
22 },
23 {
24 "type": "ExpressionStatement",
25 "start":2,"end":7,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":7,"index":7}},
26 "expression": {
27 "type": "Identifier",
28 "start":2,"end":6,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":6,"index":6},"identifierName":"enum"},
29 "name": "enum"
30 }
31 }
32 ],
33 "directives": []
34 }
35 }