swc/crates/swc_ecma_parser/tests/tsc/constructBigint.json
2022-03-22 07:54:08 +00:00

402 lines
8.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 52,
"end": 176,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 52,
"end": 62,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 52,
"end": 61,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": 1.0
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 63,
"end": 74,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 63,
"end": 73,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 63,
"end": 69,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BigIntLiteral",
"span": {
"start": 70,
"end": 72,
"ctxt": 0
},
"value": [
1,
[
1
]
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 75,
"end": 87,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 75,
"end": 86,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 75,
"end": 81,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 82,
"end": 85,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 88,
"end": 102,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 88,
"end": 101,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 88,
"end": 94,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 95,
"end": 100,
"ctxt": 0
},
"value": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 104,
"end": 121,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 104,
"end": 120,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 104,
"end": 110,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 111,
"end": 119,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 111,
"end": 117,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 122,
"end": 144,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 122,
"end": 144,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 122,
"end": 128,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 129,
"end": 143,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 131,
"end": 132,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 134,
"end": 135,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": "m",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 140,
"end": 141,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 145,
"end": 158,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 145,
"end": 157,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 145,
"end": 151,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 152,
"end": 156,
"ctxt": 0
}
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 159,
"end": 176,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 159,
"end": 176,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 159,
"end": 165,
"ctxt": 0
},
"value": "BigInt",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 166,
"end": 175,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}