Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
4 "errors": [
5 "SyntaxError: Missing initializer in const declaration. (1:7)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
23 "name": "x"
24 },
25 "init": null
26 },
27 {
28 "type": "VariableDeclarator",
29 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}},
30 "id": {
31 "type": "Identifier",
32 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"y"},
33 "name": "y"
34 },
35 "init": {
36 "type": "NumericLiteral",
37 "start":13,"end":15,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":15,"index":15}},
38 "extra": {
39 "rawValue": 12,
40 "raw": "12"
41 },
42 "value": 12
43 }
44 }
45 ],
46 "kind": "const"
47 }
48 ],
49 "directives": []
50 }
51 }