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

169 lines
3.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 75,
"end": 129,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 75,
"end": 87,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 75,
"end": 86,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 75,
"end": 81,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 75,
"end": 79,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 84,
"end": 86,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 88,
"end": 95,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 88,
"end": 94,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 88,
"end": 92,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 96,
"end": 98,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 119,
"end": 126,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 125,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 127,
"end": 129,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 127,
"end": 128,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"interpreter": null
}