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

406 lines
8.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 53,
"end": 177,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 53,
"end": 63,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 53,
"end": 62,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 53,
"end": 59,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 60,
"end": 61,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 64,
"end": 75,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 64,
"end": 74,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 64,
"end": 70,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BigIntLiteral",
"span": {
"start": 71,
"end": 73,
"ctxt": 0
},
"value": [
1,
[
1
]
],
"raw": "1n"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 76,
"end": 88,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 76,
"end": 87,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 76,
"end": 82,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 89,
"end": 103,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 89,
"end": 102,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 89,
"end": 95,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 96,
"end": 101,
"ctxt": 0
},
"value": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 105,
"end": 122,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 105,
"end": 121,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 105,
"end": 111,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 112,
"end": 120,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 112,
"end": 118,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 123,
"end": 145,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 123,
"end": 145,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 123,
"end": 129,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 130,
"end": 144,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 135,
"end": 136,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "m",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 141,
"end": 142,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 146,
"end": 159,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 146,
"end": 158,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 146,
"end": 152,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 153,
"end": 157,
"ctxt": 0
}
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 160,
"end": 177,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 160,
"end": 177,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 160,
"end": 166,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 167,
"end": 176,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}