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

130 lines
2.8 KiB
JSON
Raw Normal View History

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