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

3903 lines
102 KiB
JSON

{
"type": "Script",
"span": {
"start": 115,
"end": 2445,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 115,
"end": 338,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 130,
"end": 338,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 137,
"end": 170,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 138,
"end": 169,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 140,
"end": 169,
"ctxt": 0
},
"params": [
{
"type": "RestElement",
"span": {
"start": 141,
"end": 158,
"ctxt": 0
},
"rest": {
"start": 141,
"end": 144,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 144,
"end": 148,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 148,
"end": 158,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 150,
"end": 156,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 160,
"end": 169,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 163,
"end": 169,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 175,
"end": 217,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 175,
"end": 177,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 177,
"end": 216,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 179,
"end": 216,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 180,
"end": 189,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 181,
"end": 189,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 183,
"end": 189,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 191,
"end": 205,
"ctxt": 0
},
"rest": {
"start": 191,
"end": 194,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 194,
"end": 195,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 195,
"end": 205,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 197,
"end": 205,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 197,
"end": 203,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 207,
"end": 216,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 210,
"end": 216,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 222,
"end": 276,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 222,
"end": 224,
"ctxt": 0
},
"value": "a3",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 224,
"end": 275,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 226,
"end": 275,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 227,
"end": 236,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 228,
"end": 236,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 230,
"end": 236,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 238,
"end": 248,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 240,
"end": 248,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 242,
"end": 248,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "RestElement",
"span": {
"start": 250,
"end": 264,
"ctxt": 0
},
"rest": {
"start": 250,
"end": 253,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 253,
"end": 254,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 254,
"end": 264,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 256,
"end": 264,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 256,
"end": 262,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 266,
"end": 275,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 269,
"end": 275,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 281,
"end": 336,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 281,
"end": 283,
"ctxt": 0
},
"value": "a4",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 283,
"end": 335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 285,
"end": 335,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 286,
"end": 296,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 288,
"end": 296,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 290,
"end": 296,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 298,
"end": 308,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 300,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 302,
"end": 308,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "RestElement",
"span": {
"start": 310,
"end": 324,
"ctxt": 0
},
"rest": {
"start": 310,
"end": 313,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 314,
"end": 324,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 316,
"end": 324,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 316,
"end": 322,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 326,
"end": 335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 329,
"end": 335,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 340,
"end": 377,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 344,
"end": 376,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 344,
"end": 345,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 345,
"end": 376,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 347,
"end": 376,
"ctxt": 0
},
"params": [
{
"type": "RestElement",
"span": {
"start": 348,
"end": 365,
"ctxt": 0
},
"rest": {
"start": 348,
"end": 351,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 351,
"end": 355,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 355,
"end": 365,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 357,
"end": 365,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 357,
"end": 363,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 367,
"end": 376,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 370,
"end": 376,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 420,
"end": 432,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 420,
"end": 431,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 424,
"end": 431,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 430,
"end": 431,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 475,
"end": 504,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 475,
"end": 503,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 475,
"end": 476,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 479,
"end": 503,
"ctxt": 0
},
"params": [
{
"type": "RestElement",
"span": {
"start": 480,
"end": 497,
"ctxt": 0
},
"rest": {
"start": 480,
"end": 483,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 483,
"end": 487,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 487,
"end": 497,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 489,
"end": 497,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 489,
"end": 495,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 502,
"end": 503,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 547,
"end": 576,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 547,
"end": 575,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 551,
"end": 575,
"ctxt": 0
},
"params": [
{
"type": "RestElement",
"span": {
"start": 552,
"end": 569,
"ctxt": 0
},
"rest": {
"start": 552,
"end": 555,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 555,
"end": 559,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 559,
"end": 569,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 561,
"end": 569,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 561,
"end": 567,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 574,
"end": 575,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 605,
"end": 627,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 605,
"end": 626,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 605,
"end": 606,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 609,
"end": 626,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 610,
"end": 620,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 612,
"end": 620,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 614,
"end": 620,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 625,
"end": 626,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 670,
"end": 716,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 670,
"end": 715,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 670,
"end": 671,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 674,
"end": 715,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 675,
"end": 685,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 677,
"end": 685,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 679,
"end": 685,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 687,
"end": 697,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 689,
"end": 697,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 691,
"end": 697,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 699,
"end": 709,
"ctxt": 0
},
"value": "z",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 701,
"end": 709,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 703,
"end": 709,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 714,
"end": 715,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 759,
"end": 780,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 759,
"end": 779,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 759,
"end": 760,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 763,
"end": 779,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 764,
"end": 773,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 765,
"end": 773,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 767,
"end": 773,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 778,
"end": 779,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 844,
"end": 866,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 844,
"end": 865,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 844,
"end": 845,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 848,
"end": 865,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 849,
"end": 859,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 851,
"end": 859,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 853,
"end": 859,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 864,
"end": 865,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 897,
"end": 943,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 901,
"end": 942,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 901,
"end": 903,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 903,
"end": 942,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 905,
"end": 942,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 906,
"end": 915,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 907,
"end": 915,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 909,
"end": 915,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 917,
"end": 931,
"ctxt": 0
},
"rest": {
"start": 917,
"end": 920,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 920,
"end": 921,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 921,
"end": 931,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 923,
"end": 931,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 923,
"end": 929,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 933,
"end": 942,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 936,
"end": 942,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 948,
"end": 961,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 948,
"end": 960,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 948,
"end": 950,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 953,
"end": 960,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 995,
"end": 1025,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 995,
"end": 1024,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 995,
"end": 997,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1000,
"end": 1024,
"ctxt": 0
},
"params": [
{
"type": "RestElement",
"span": {
"start": 1001,
"end": 1018,
"ctxt": 0
},
"rest": {
"start": 1001,
"end": 1004,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1004,
"end": 1008,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1008,
"end": 1018,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1010,
"end": 1018,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1010,
"end": 1016,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1023,
"end": 1024,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1059,
"end": 1082,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1059,
"end": 1081,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1059,
"end": 1061,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1064,
"end": 1081,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1065,
"end": 1075,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1067,
"end": 1075,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1069,
"end": 1075,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1080,
"end": 1081,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1116,
"end": 1138,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1116,
"end": 1137,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1116,
"end": 1118,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1121,
"end": 1137,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1122,
"end": 1131,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1123,
"end": 1131,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1125,
"end": 1131,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1136,
"end": 1137,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1181,
"end": 1222,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1181,
"end": 1221,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1181,
"end": 1183,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1186,
"end": 1221,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1187,
"end": 1196,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1188,
"end": 1196,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1190,
"end": 1196,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 1198,
"end": 1215,
"ctxt": 0
},
"rest": {
"start": 1198,
"end": 1201,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1201,
"end": 1205,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1205,
"end": 1215,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1207,
"end": 1215,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1207,
"end": 1213,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1220,
"end": 1221,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1265,
"end": 1306,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1265,
"end": 1305,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1265,
"end": 1267,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1270,
"end": 1305,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1271,
"end": 1280,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1272,
"end": 1280,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1274,
"end": 1280,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 1282,
"end": 1299,
"ctxt": 0
},
"rest": {
"start": 1282,
"end": 1285,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1285,
"end": 1289,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1289,
"end": 1299,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1291,
"end": 1299,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1291,
"end": 1297,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1304,
"end": 1305,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1344,
"end": 1377,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1344,
"end": 1376,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1344,
"end": 1346,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1349,
"end": 1376,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1350,
"end": 1359,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1351,
"end": 1359,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1353,
"end": 1359,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1361,
"end": 1370,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1362,
"end": 1370,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1364,
"end": 1370,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1375,
"end": 1376,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1441,
"end": 1475,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1441,
"end": 1474,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1441,
"end": 1443,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1446,
"end": 1474,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1447,
"end": 1456,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1448,
"end": 1456,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1450,
"end": 1456,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1458,
"end": 1468,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1460,
"end": 1468,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1462,
"end": 1468,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1473,
"end": 1474,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1515,
"end": 1573,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1519,
"end": 1572,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1519,
"end": 1521,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1521,
"end": 1572,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 1523,
"end": 1572,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1524,
"end": 1533,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1525,
"end": 1533,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1527,
"end": 1533,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1535,
"end": 1545,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1537,
"end": 1545,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1539,
"end": 1545,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "RestElement",
"span": {
"start": 1547,
"end": 1561,
"ctxt": 0
},
"rest": {
"start": 1547,
"end": 1550,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1550,
"end": 1551,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1551,
"end": 1561,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1553,
"end": 1561,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1553,
"end": 1559,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1563,
"end": 1572,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1566,
"end": 1572,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1578,
"end": 1591,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1578,
"end": 1590,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1578,
"end": 1580,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1583,
"end": 1590,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1589,
"end": 1590,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1625,
"end": 1648,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1625,
"end": 1647,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1625,
"end": 1627,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1630,
"end": 1647,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1631,
"end": 1641,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1633,
"end": 1641,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1635,
"end": 1641,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1646,
"end": 1647,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1682,
"end": 1704,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1682,
"end": 1703,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1682,
"end": 1684,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1687,
"end": 1703,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1688,
"end": 1697,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1689,
"end": 1697,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1691,
"end": 1697,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1702,
"end": 1703,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1747,
"end": 1780,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1747,
"end": 1779,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1747,
"end": 1749,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1752,
"end": 1779,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1753,
"end": 1762,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1754,
"end": 1762,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1756,
"end": 1762,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1764,
"end": 1773,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1765,
"end": 1773,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1767,
"end": 1773,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1778,
"end": 1779,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1818,
"end": 1864,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1818,
"end": 1863,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1818,
"end": 1820,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1823,
"end": 1863,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1824,
"end": 1833,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1825,
"end": 1833,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1827,
"end": 1833,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1835,
"end": 1845,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1837,
"end": 1845,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1839,
"end": 1845,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1847,
"end": 1857,
"ctxt": 0
},
"value": "z",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1849,
"end": 1857,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1851,
"end": 1857,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1862,
"end": 1863,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1879,
"end": 1917,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1879,
"end": 1916,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1879,
"end": 1881,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1884,
"end": 1916,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1885,
"end": 1894,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1886,
"end": 1894,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1888,
"end": 1894,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 1896,
"end": 1910,
"ctxt": 0
},
"rest": {
"start": 1896,
"end": 1899,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1899,
"end": 1900,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1900,
"end": 1910,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1902,
"end": 1910,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1902,
"end": 1908,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1915,
"end": 1916,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1932,
"end": 1978,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1932,
"end": 1977,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1932,
"end": 1934,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1937,
"end": 1977,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1938,
"end": 1947,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1939,
"end": 1947,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1941,
"end": 1947,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1949,
"end": 1959,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1951,
"end": 1959,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1953,
"end": 1959,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1961,
"end": 1971,
"ctxt": 0
},
"value": "z",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1963,
"end": 1971,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1965,
"end": 1971,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 1976,
"end": 1977,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1990,
"end": 2049,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1994,
"end": 2048,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1994,
"end": 1996,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1996,
"end": 2048,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 1998,
"end": 2048,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1999,
"end": 2009,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2001,
"end": 2009,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2003,
"end": 2009,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 2011,
"end": 2021,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2013,
"end": 2021,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2015,
"end": 2021,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "RestElement",
"span": {
"start": 2023,
"end": 2037,
"ctxt": 0
},
"rest": {
"start": 2023,
"end": 2026,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2026,
"end": 2027,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2027,
"end": 2037,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2029,
"end": 2037,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 2029,
"end": 2035,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2039,
"end": 2048,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2042,
"end": 2048,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2054,
"end": 2067,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2054,
"end": 2066,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2054,
"end": 2056,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2059,
"end": 2066,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2065,
"end": 2066,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2101,
"end": 2136,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2101,
"end": 2135,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2101,
"end": 2103,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2106,
"end": 2135,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2107,
"end": 2117,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2109,
"end": 2117,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2111,
"end": 2117,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 2119,
"end": 2129,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2121,
"end": 2129,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2123,
"end": 2129,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2134,
"end": 2135,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2165,
"end": 2187,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2165,
"end": 2186,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2165,
"end": 2167,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2170,
"end": 2186,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2171,
"end": 2180,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2172,
"end": 2180,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2174,
"end": 2180,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2185,
"end": 2186,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2224,
"end": 2258,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2224,
"end": 2257,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2224,
"end": 2226,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2229,
"end": 2257,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2230,
"end": 2239,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2231,
"end": 2239,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2233,
"end": 2239,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 2241,
"end": 2251,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2243,
"end": 2251,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2245,
"end": 2251,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2256,
"end": 2257,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2305,
"end": 2340,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2305,
"end": 2339,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2305,
"end": 2307,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2310,
"end": 2339,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2311,
"end": 2321,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2313,
"end": 2321,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2315,
"end": 2321,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 2323,
"end": 2333,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2325,
"end": 2333,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2327,
"end": 2333,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2338,
"end": 2339,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2404,
"end": 2445,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2404,
"end": 2444,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 2404,
"end": 2406,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2409,
"end": 2444,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2410,
"end": 2419,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2411,
"end": 2419,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2413,
"end": 2419,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "RestElement",
"span": {
"start": 2421,
"end": 2438,
"ctxt": 0
},
"rest": {
"start": 2421,
"end": 2424,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2424,
"end": 2428,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2428,
"end": 2438,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2430,
"end": 2438,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 2430,
"end": 2436,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 2443,
"end": 2444,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
}
],
"interpreter": null
}