Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/expression-conditional/migrated_0001/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
13 "expression": {
14 "type": "ConditionalExpression",
15 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
16 "test": {
17 "type": "LogicalExpression",
18 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}},
19 "left": {
20 "type": "Identifier",
21 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
22 "name": "x"
23 },
24 "operator": "&&",
25 "right": {
26 "type": "Identifier",
27 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"y"},
28 "name": "y"
29 }
30 },
31 "consequent": {
32 "type": "NumericLiteral",
33 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
34 "extra": {
35 "rawValue": 1,
36 "raw": "1"
37 },
38 "value": 1
39 },
40 "alternate": {
41 "type": "NumericLiteral",
42 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
43 "extra": {
44 "rawValue": 2,
45 "raw": "2"
46 },
47 "value": 2
48 }
49 }
50 }
51 ],
52 "directives": []
53 }
54 }