swc/crates/swc_ecma_parser/tests/tsc/parser.numericSeparators.hex.json

84 lines
1.5 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 41,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"value": 17.0,
"raw": "0x00_11"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 9,
"end": 15,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 9,
"end": 14,
"ctxt": 0
},
"value": 1.0,
"raw": "0X0_1"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 28,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 16,
"end": 27,
"ctxt": 0
},
"value": 285212689.0,
"raw": "0x1100_0011"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 29,
"end": 41,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 40,
"ctxt": 0
},
"value": 1114369.0,
"raw": "0X0_11_0101"
}
}
],
"interpreter": null
}