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

84 lines
1.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 42,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 9,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"value": 3.0,
"raw": "0b00_11"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 10,
"end": 15,
"ctxt": 0
},
"value": 1.0,
"raw": "0B0_1"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 17,
"end": 29,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 17,
"end": 28,
"ctxt": 0
},
"value": 195.0,
"raw": "0b1100_0011"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 30,
"end": 42,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 30,
"end": 41,
"ctxt": 0
},
"value": 53.0,
"raw": "0B0_11_0101"
}
}
],
"interpreter": null
}