| 1 |
{ |
| 2 |
"type": "ConditionalExpression", |
| 3 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 4 |
"test": { |
| 5 |
"type": "LogicalExpression", |
| 6 |
"start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}}, |
| 7 |
"left": { |
| 8 |
"type": "Identifier", |
| 9 |
"start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"}, |
| 10 |
"name": "x" |
| 11 |
}, |
| 12 |
"operator": "&&", |
| 13 |
"right": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"y"}, |
| 16 |
"name": "y" |
| 17 |
} |
| 18 |
}, |
| 19 |
"consequent": { |
| 20 |
"type": "NumericLiteral", |
| 21 |
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}}, |
| 22 |
"extra": { |
| 23 |
"rawValue": 1, |
| 24 |
"raw": "1" |
| 25 |
}, |
| 26 |
"value": 1 |
| 27 |
}, |
| 28 |
"alternate": { |
| 29 |
"type": "NumericLiteral", |
| 30 |
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}}, |
| 31 |
"extra": { |
| 32 |
"rawValue": 2, |
| 33 |
"raw": "2" |
| 34 |
}, |
| 35 |
"value": 2 |
| 36 |
} |
| 37 |
} |