Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/statement/nested/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "IfStatement",
12 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
13 "test": {
14 "type": "NumericLiteral",
15 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}},
16 "extra": {
17 "rawValue": 0,
18 "raw": "0"
19 },
20 "value": 0
21 },
22 "consequent": {
23 "type": "Placeholder",
24 "start":7,"end":15,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":15,"index":15}},
25 "name": {
26 "type": "Identifier",
27 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"FOO"},
28 "name": "FOO"
29 },
30 "expectedNode": "Statement"
31 },
32 "alternate": null
33 }
34 ],
35 "directives": []
36 }
37 }