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

67 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2,
"end": 5,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "Identifier",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
}
],
"interpreter": null
}