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

92 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 119,
"end": 138,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 119,
"end": 138,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 119,
"end": 138,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 134,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 123,
"end": 134,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 124,
"end": 133,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 124,
"end": 127,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
},
"right": {
"type": "StringLiteral",
"span": {
"start": 130,
"end": 133,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
],
"interpreter": null
}