Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (1:15)",
6 "SyntaxError: Unexpected reserved word 'package'. (1:16)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}},
17 "expression": {
18 "type": "Identifier",
19 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"a"},
20 "name": "a"
21 }
22 },
23 {
24 "type": "ExpressionStatement",
25 "start":16,"end":23,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":23,"index":23}},
26 "expression": {
27 "type": "Identifier",
28 "start":16,"end":23,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":23,"index":23},"identifierName":"package"},
29 "name": "package"
30 }
31 }
32 ],
33 "directives": [
34 {
35 "type": "Directive",
36 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
37 "value": {
38 "type": "DirectiveLiteral",
39 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
40 "extra": {
41 "rawValue": "use strict",
42 "raw": "'use strict'",
43 "expressionValue": "use strict"
44 },
45 "value": "use strict"
46 }
47 }
48 ]
49 }
50 }