swc/crates/swc_ecma_parser/tests/tsc/propertyAccessNumericLiterals.json
2023-04-24 14:59:19 +00:00

610 lines
13 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 244,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 23,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 20,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 1,
"end": 11,
"ctxt": 0
},
"value": 4294967295.0,
"raw": "0xffffffff"
},
"property": {
"type": "Identifier",
"span": {
"start": 12,
"end": 20,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 24,
"end": 43,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 24,
"end": 42,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 24,
"end": 40,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 24,
"end": 31,
"ctxt": 0
},
"value": 668.0,
"raw": "0o01234"
},
"property": {
"type": "Identifier",
"span": {
"start": 32,
"end": 40,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 44,
"end": 66,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 44,
"end": 65,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 44,
"end": 63,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 44,
"end": 54,
"ctxt": 0
},
"value": 109.0,
"raw": "0b01101101"
},
"property": {
"type": "Identifier",
"span": {
"start": 55,
"end": 63,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 67,
"end": 84,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 67,
"end": 83,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 67,
"end": 81,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 67,
"end": 72,
"ctxt": 0
},
"value": 1234.0,
"raw": "1234."
},
"property": {
"type": "Identifier",
"span": {
"start": 73,
"end": 81,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 85,
"end": 100,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 85,
"end": 99,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 85,
"end": 97,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 85,
"end": 88,
"ctxt": 0
},
"value": 1.0,
"raw": "1e0"
},
"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": 0.0,
"raw": "000"
},
"property": {
"type": "Identifier",
"span": {
"start": 105,
"end": 113,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 117,
"end": 135,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 117,
"end": 134,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 117,
"end": 132,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 117,
"end": 123,
"ctxt": 0
},
"value": 880000.0,
"raw": "08.8e5"
},
"property": {
"type": "Identifier",
"span": {
"start": 124,
"end": 132,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 136,
"end": 155,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 136,
"end": 154,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 136,
"end": 152,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 136,
"end": 143,
"ctxt": 0
},
"value": 880000.0,
"raw": "0_8.8e5"
},
"property": {
"type": "Identifier",
"span": {
"start": 144,
"end": 152,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 156,
"end": 173,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 156,
"end": 172,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 156,
"end": 170,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 156,
"end": 161,
"ctxt": 0
},
"value": 880000.0,
"raw": "8.8e5"
},
"property": {
"type": "Identifier",
"span": {
"start": 162,
"end": 170,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 174,
"end": 191,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 174,
"end": 190,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 174,
"end": 188,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 174,
"end": 179,
"ctxt": 0
},
"value": 880000.0,
"raw": "088e4"
},
"property": {
"type": "Identifier",
"span": {
"start": 180,
"end": 188,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 192,
"end": 209,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 192,
"end": 208,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 192,
"end": 206,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 192,
"end": 197,
"ctxt": 0
},
"value": 880000.0,
"raw": "88_e4"
},
"property": {
"type": "Identifier",
"span": {
"start": 198,
"end": 206,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 210,
"end": 226,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 210,
"end": 225,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 210,
"end": 223,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 210,
"end": 214,
"ctxt": 0
},
"value": 880000.0,
"raw": "88e4"
},
"property": {
"type": "Identifier",
"span": {
"start": 215,
"end": 223,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 227,
"end": 244,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 227,
"end": 243,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 227,
"end": 241,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 227,
"end": 232,
"ctxt": 0
},
"value": 880000.0,
"raw": "8_8e4"
},
"property": {
"type": "Identifier",
"span": {
"start": 233,
"end": 241,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}