swc/crates/swc_ecma_parser/tests/tsc/parserConstructorAmbiguity4.json

87 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"expression": {
"type": "ConditionalExpression",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1,
"end": 11,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "NewExpression",
"span": {
"start": 1,
"end": 9,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 5,
"end": 9,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": null,
"typeArguments": null
},
"right": {
"type": "Identifier",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": "A",
"optional": false
}
},
"consequent": {
"type": "Identifier",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "B",
"optional": false
},
"alternate": {
"type": "Identifier",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"value": "C",
"optional": false
}
}
}
],
"interpreter": null
}