swc/crates/swc_ecma_parser/tests/tsc/propertyAccessNumericLiterals.es6.json

242 lines
5.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 116,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 17,
"end": 39,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 17,
"end": 38,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 17,
"end": 36,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 17,
"end": 27,
"ctxt": 0
},
"value": 4294967295.0,
"raw": "0xffffffff"
},
"property": {
"type": "Identifier",
"span": {
"start": 28,
"end": 36,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 40,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 40,
"end": 58,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 40,
"end": 56,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 40,
"end": 47,
"ctxt": 0
},
"value": 668.0,
"raw": "0o01234"
},
"property": {
"type": "Identifier",
"span": {
"start": 48,
"end": 56,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 60,
"end": 82,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 60,
"end": 81,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 60,
"end": 79,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 60,
"end": 70,
"ctxt": 0
},
"value": 109.0,
"raw": "0b01101101"
},
"property": {
"type": "Identifier",
"span": {
"start": 71,
"end": 79,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 83,
"end": 100,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 83,
"end": 99,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 83,
"end": 97,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 83,
"end": 88,
"ctxt": 0
},
"value": 1234.0,
"raw": "1234."
},
"property": {
"type": "Identifier",
"span": {
"start": 89,
"end": 97,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 101,
"end": 116,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 101,
"end": 115,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 101,
"end": 113,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 101,
"end": 104,
"ctxt": 0
},
"value": 1.0,
"raw": "1e0"
},
"property": {
"type": "Identifier",
"span": {
"start": 105,
"end": 113,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}