Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/statement-if/migrated_0002/output.json

raw symbols SCIP
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 "program": {
5 "type": "Program",
6 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "IfStatement",
12 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
13 "test": {
14 "type": "Identifier",
15 "start":4,"end":11,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":11,"index":11},"identifierName":"morning"},
16 "name": "morning"
17 },
18 "consequent": {
19 "type": "VariableDeclaration",
20 "start":13,"end":23,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":23,"index":23}},
21 "declarations": [
22 {
23 "type": "VariableDeclarator",
24 "start":17,"end":22,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":22,"index":22}},
25 "id": {
26 "type": "Identifier",
27 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"x"},
28 "name": "x"
29 },
30 "init": {
31 "type": "NumericLiteral",
32 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}},
33 "extra": {
34 "rawValue": 0,
35 "raw": "0"
36 },
37 "value": 0
38 }
39 }
40 ],
41 "kind": "var"
42 },
43 "alternate": null
44 }
45 ],
46 "directives": []
47 }
48 }