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

122 lines
2.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 20,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 20,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BinaryExpression",
"span": {
"start": 3,
"end": 8,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Identifier",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "g",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "A",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "BinaryExpression",
"span": {
"start": 10,
"end": 18,
"ctxt": 0
},
"operator": ">",
"left": {
"type": "Identifier",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": "B",
"optional": false
},
"right": {
"type": "UnaryExpression",
"span": {
"start": 14,
"end": 18,
"ctxt": 0
},
"operator": "+",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 15,
"end": 18,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": 7.0,
"raw": "7"
}
}
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}