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

99 lines
2.2 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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 129,
"end": 132,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": 0.0
}
}
}
],
"interpreter": null
}