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

125 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 31,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 31,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 7,
"ctxt": 0
},
"value": "tt",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 10,
"end": 30,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Invalid",
"span": {
"start": 14,
"end": 20,
"ctxt": 0
}
}
],
"body": {
"type": "BinaryExpression",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 25,
"end": 28,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
],
"interpreter": null
}