Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/382/output.json

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