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

168 lines
3.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 74,
"end": 128,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 74,
"end": 86,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 74,
"end": 85,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 74,
"end": 80,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 74,
"end": 78,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 83,
"end": 85,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 87,
"end": 94,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 87,
"end": 91,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 95,
"end": 97,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 95,
"end": 96,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 118,
"end": 125,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 118,
"end": 122,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 126,
"end": 128,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"interpreter": null
}