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

223 lines
4.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 147,
"end": 208,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 147,
"end": 178,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 147,
"end": 177,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 147,
"end": 156,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 147,
"end": 154,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 155,
"end": 156,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "AssignmentExpression",
"span": {
"start": 159,
"end": 177,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 159,
"end": 168,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 159,
"end": 166,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 167,
"end": 168,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "UnaryExpression",
"span": {
"start": 171,
"end": 177,
"ctxt": 0
},
"operator": "void",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 176,
"end": 177,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 179,
"end": 193,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 179,
"end": 192,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 179,
"end": 188,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 179,
"end": 186,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 187,
"end": 188,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 194,
"end": 208,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 194,
"end": 207,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 194,
"end": 203,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 194,
"end": 201,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 206,
"end": 207,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
}
],
"interpreter": null
}