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

128 lines
2.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 0,
"end": 21,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 0,
"end": 9,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "m",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"value": "index",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": 1.0
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 10,
"end": 21,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": "m",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"value": 0.0
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
],
"interpreter": null
}