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

125 lines
3.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 3,
"end": 13,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "g",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": 7.0,
"raw": "7"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4,
"end": 10,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": null
}
]
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}