43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"type": "AssignmentExpression",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":0,"end":1,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":1},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"start":4,"end":15,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":15}},
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6}},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0",
|
|
"parenthesized": true,
|
|
"parenStart": 4
|
|
},
|
|
"value": 0
|
|
},
|
|
"consequent": {
|
|
"type": "NumericLiteral",
|
|
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
"alternate": {
|
|
"type": "NumericLiteral",
|
|
"start":14,"end":15,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":15}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
} |