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

2107 lines
47 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 911,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"value": "all",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 22,
"end": 32,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 22,
"end": 32,
"ctxt": 0
},
"value": "a",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 24,
"end": 32,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 26,
"end": 32,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 34,
"end": 44,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 34,
"end": 44,
"ctxt": 0
},
"value": "b",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 36,
"end": 44,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1,
"end": 52,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 45,
"end": 51,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 47,
"end": 51,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 70,
"end": 75,
"ctxt": 0
},
"value": "weird",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 76,
"end": 95,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 76,
"end": 95,
"ctxt": 0
},
"value": "a",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 78,
"end": 95,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 80,
"end": 95,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 80,
"end": 86,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 89,
"end": 95,
"ctxt": 0
},
"kind": "string"
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 97,
"end": 116,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 97,
"end": 116,
"ctxt": 0
},
"value": "b",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 99,
"end": 116,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 101,
"end": 116,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 101,
"end": 107,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"kind": "string"
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 53,
"end": 124,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 117,
"end": 123,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 142,
"end": 148,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 149,
"end": 158,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 149,
"end": 158,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 152,
"end": 158,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 160,
"end": 170,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 160,
"end": 170,
"ctxt": 0
},
"value": "a",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 162,
"end": 170,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 164,
"end": 170,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 172,
"end": 182,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 172,
"end": 182,
"ctxt": 0
},
"value": "b",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 174,
"end": 182,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 176,
"end": 182,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 125,
"end": 190,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 183,
"end": 189,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 185,
"end": 189,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 208,
"end": 212,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 213,
"end": 222,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 213,
"end": 222,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 214,
"end": 222,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 216,
"end": 222,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 224,
"end": 234,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 224,
"end": 234,
"ctxt": 0
},
"value": "a",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 226,
"end": 234,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 228,
"end": 234,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 236,
"end": 246,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 236,
"end": 246,
"ctxt": 0
},
"value": "b",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 238,
"end": 246,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 240,
"end": 246,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 249,
"end": 266,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 249,
"end": 266,
"ctxt": 0
},
"rest": {
"start": 249,
"end": 252,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 252,
"end": 256,
"ctxt": 0
},
"value": "rest",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 256,
"end": 266,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 258,
"end": 266,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 258,
"end": 264,
"ctxt": 0
},
"kind": "number"
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 191,
"end": 274,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 267,
"end": 273,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 269,
"end": 273,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 292,
"end": 298,
"ctxt": 0
},
"value": "normal",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 299,
"end": 308,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 299,
"end": 308,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 300,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 302,
"end": 308,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 275,
"end": 316,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 309,
"end": 315,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 311,
"end": 315,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 334,
"end": 339,
"ctxt": 0
},
"value": "thunk",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 317,
"end": 350,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 341,
"end": 349,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 343,
"end": 349,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 368,
"end": 375,
"ctxt": 0
},
"value": "prefix2",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 376,
"end": 385,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 376,
"end": 385,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 377,
"end": 385,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 379,
"end": 385,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 387,
"end": 396,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 387,
"end": 396,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 388,
"end": 396,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 390,
"end": 396,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 398,
"end": 408,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 398,
"end": 408,
"ctxt": 0
},
"value": "a",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 400,
"end": 408,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 402,
"end": 408,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 410,
"end": 420,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 410,
"end": 420,
"ctxt": 0
},
"value": "b",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 412,
"end": 420,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 414,
"end": 420,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 351,
"end": 428,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 421,
"end": 427,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 423,
"end": 427,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 430,
"end": 455,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 442,
"end": 454,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 442,
"end": 444,
"ctxt": 0
},
"value": "ns",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 444,
"end": 454,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 446,
"end": 454,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 446,
"end": 452,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 456,
"end": 495,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 468,
"end": 494,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 468,
"end": 473,
"ctxt": 0
},
"value": "mixed",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 473,
"end": 494,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 475,
"end": 494,
"ctxt": 0
},
"elemType": {
"type": "TsParenthesizedType",
"span": {
"start": 475,
"end": 492,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 476,
"end": 491,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 476,
"end": 482,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 485,
"end": 491,
"ctxt": 0
},
"kind": "string"
}
]
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 496,
"end": 532,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 508,
"end": 531,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 508,
"end": 513,
"ctxt": 0
},
"value": "tuple",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 513,
"end": 531,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 515,
"end": 531,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 516,
"end": 522,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 516,
"end": 522,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 524,
"end": 530,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 524,
"end": 530,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 542,
"end": 552,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 542,
"end": 552,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 542,
"end": 545,
"ctxt": 0
},
"value": "all",
"optional": false
},
"arguments": [
{
"spread": {
"start": 546,
"end": 549,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 549,
"end": 551,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 553,
"end": 565,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 553,
"end": 565,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 553,
"end": 558,
"ctxt": 0
},
"value": "weird",
"optional": false
},
"arguments": [
{
"spread": {
"start": 559,
"end": 562,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 562,
"end": 564,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 566,
"end": 581,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 566,
"end": 581,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 566,
"end": 571,
"ctxt": 0
},
"value": "weird",
"optional": false
},
"arguments": [
{
"spread": {
"start": 572,
"end": 575,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 575,
"end": 580,
"ctxt": 0
},
"value": "mixed",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 582,
"end": 597,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 582,
"end": 597,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 582,
"end": 587,
"ctxt": 0
},
"value": "weird",
"optional": false
},
"arguments": [
{
"spread": {
"start": 588,
"end": 591,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 591,
"end": 596,
"ctxt": 0
},
"value": "tuple",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 598,
"end": 616,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 598,
"end": 616,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 598,
"end": 604,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 605,
"end": 608,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
},
{
"spread": {
"start": 610,
"end": 613,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 613,
"end": 615,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 617,
"end": 633,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 617,
"end": 633,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 617,
"end": 621,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 622,
"end": 625,
"ctxt": 0
},
"value": "d",
"raw": "\"d\""
}
},
{
"spread": {
"start": 627,
"end": 630,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 630,
"end": 632,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 655,
"end": 673,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 655,
"end": 673,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 655,
"end": 661,
"ctxt": 0
},
"value": "normal",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 662,
"end": 665,
"ctxt": 0
},
"value": "g",
"raw": "\"g\""
}
},
{
"spread": {
"start": 667,
"end": 670,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 670,
"end": 672,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 674,
"end": 686,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 674,
"end": 686,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 674,
"end": 679,
"ctxt": 0
},
"value": "thunk",
"optional": false
},
"arguments": [
{
"spread": {
"start": 680,
"end": 683,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 683,
"end": 685,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 695,
"end": 708,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 695,
"end": 708,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 695,
"end": 698,
"ctxt": 0
},
"value": "all",
"optional": false
},
"arguments": [
{
"spread": {
"start": 699,
"end": 702,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 702,
"end": 707,
"ctxt": 0
},
"value": "mixed",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 709,
"end": 722,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 709,
"end": 722,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 709,
"end": 712,
"ctxt": 0
},
"value": "all",
"optional": false
},
"arguments": [
{
"spread": {
"start": 713,
"end": 716,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 716,
"end": 721,
"ctxt": 0
},
"value": "tuple",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 723,
"end": 744,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 723,
"end": 744,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 723,
"end": 729,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 730,
"end": 733,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
},
{
"spread": {
"start": 735,
"end": 738,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 738,
"end": 743,
"ctxt": 0
},
"value": "mixed",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 745,
"end": 766,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 745,
"end": 766,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 745,
"end": 751,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 752,
"end": 755,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
},
{
"spread": {
"start": 757,
"end": 760,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 760,
"end": 765,
"ctxt": 0
},
"value": "tuple",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 767,
"end": 786,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 767,
"end": 786,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 767,
"end": 771,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 772,
"end": 775,
"ctxt": 0
},
"value": "e",
"raw": "\"e\""
}
},
{
"spread": {
"start": 777,
"end": 780,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 780,
"end": 785,
"ctxt": 0
},
"value": "mixed",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 787,
"end": 806,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 787,
"end": 806,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 787,
"end": 791,
"ctxt": 0
},
"value": "rest",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 792,
"end": 795,
"ctxt": 0
},
"value": "f",
"raw": "\"f\""
}
},
{
"spread": {
"start": 797,
"end": 800,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 800,
"end": 805,
"ctxt": 0
},
"value": "tuple",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 807,
"end": 820,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 807,
"end": 820,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 807,
"end": 813,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": {
"start": 814,
"end": 817,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 817,
"end": 819,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 857,
"end": 873,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 857,
"end": 873,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 857,
"end": 863,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": {
"start": 864,
"end": 867,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 867,
"end": 872,
"ctxt": 0
},
"value": "mixed",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 874,
"end": 890,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 874,
"end": 890,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 874,
"end": 880,
"ctxt": 0
},
"value": "prefix",
"optional": false
},
"arguments": [
{
"spread": {
"start": 881,
"end": 884,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 884,
"end": 889,
"ctxt": 0
},
"value": "tuple",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 891,
"end": 911,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 891,
"end": 910,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 891,
"end": 898,
"ctxt": 0
},
"value": "prefix2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 899,
"end": 902,
"ctxt": 0
},
"value": "g",
"raw": "\"g\""
}
},
{
"spread": {
"start": 904,
"end": 907,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 907,
"end": 909,
"ctxt": 0
},
"value": "ns",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}