Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "IfStatement",
12 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
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": "ExpressionStatement",
20 "start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}},
21 "expression": {
22 "type": "CallExpression",
23 "start":13,"end":26,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":26,"index":26}},
24 "callee": {
25 "type": "Identifier",
26 "start":13,"end":24,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":24,"index":24},"identifierName":"goodMorning"},
27 "name": "goodMorning"
28 },
29 "arguments": []
30 }
31 },
32 "alternate": {
33 "type": "ExpressionStatement",
34 "start":33,"end":42,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":42,"index":42}},
35 "expression": {
36 "type": "CallExpression",
37 "start":33,"end":42,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":42,"index":42}},
38 "callee": {
39 "type": "Identifier",
40 "start":33,"end":40,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":40,"index":40},"identifierName":"goodDay"},
41 "name": "goodDay"
42 },
43 "arguments": []
44 }
45 }
46 }
47 ],
48 "directives": []
49 }
50 }