swc/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentComputed.json
2022-03-22 07:54:08 +00:00

91 lines
1.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 118,
"end": 137,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 118,
"end": 137,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 118,
"end": 137,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 118,
"end": 133,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 118,
"end": 122,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 122,
"end": 133,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 123,
"end": 132,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 123,
"end": 126,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
},
"right": {
"type": "StringLiteral",
"span": {
"start": 129,
"end": 132,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": 0.0
}
}
}
],
"interpreter": null
}