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

2715 lines
68 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 857,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"value": "f00",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ArrayPattern",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 33,
"end": 34,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 19,
"end": 42,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 52,
"end": 55,
"ctxt": 0
},
"value": "f01",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 56,
"end": 67,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 56,
"end": 67,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 56,
"end": 62,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 60,
"end": 61,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 65,
"end": 67,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 43,
"end": 71,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 69,
"end": 71,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 81,
"end": 84,
"ctxt": 0
},
"value": "f02",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 85,
"end": 97,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 85,
"end": 97,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 85,
"end": 91,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 86,
"end": 87,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 95,
"end": 96,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 72,
"end": 101,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 99,
"end": 101,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 111,
"end": 114,
"ctxt": 0
},
"value": "f03",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 115,
"end": 134,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 115,
"end": 134,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 115,
"end": 121,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 119,
"end": 120,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 124,
"end": 134,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 125,
"end": 126,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 128,
"end": 133,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 102,
"end": 138,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 136,
"end": 138,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 149,
"end": 152,
"ctxt": 0
},
"value": "f10",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 153,
"end": 163,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ArrayPattern",
"span": {
"start": 153,
"end": 163,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 154,
"end": 155,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 161,
"end": 162,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 140,
"end": 167,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 165,
"end": 167,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 177,
"end": 180,
"ctxt": 0
},
"value": "f11",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 181,
"end": 196,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 181,
"end": 196,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 181,
"end": 191,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 182,
"end": 187,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 189,
"end": 190,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 194,
"end": 196,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 168,
"end": 200,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 198,
"end": 200,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 210,
"end": 213,
"ctxt": 0
},
"value": "f12",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 214,
"end": 230,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 214,
"end": 230,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 214,
"end": 224,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 215,
"end": 220,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 215,
"end": 216,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 222,
"end": 223,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 227,
"end": 230,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 228,
"end": 229,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 201,
"end": 234,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 232,
"end": 234,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 244,
"end": 247,
"ctxt": 0
},
"value": "f13",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 248,
"end": 271,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 248,
"end": 271,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 248,
"end": 258,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 249,
"end": 254,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 249,
"end": 250,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 253,
"end": 254,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 256,
"end": 257,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 261,
"end": 271,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 262,
"end": 263,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 265,
"end": 270,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 235,
"end": 275,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 273,
"end": 275,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 286,
"end": 289,
"ctxt": 0
},
"value": "f20",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 290,
"end": 308,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ArrayPattern",
"span": {
"start": 290,
"end": 308,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 291,
"end": 296,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 291,
"end": 292,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 295,
"end": 296,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 298,
"end": 307,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 298,
"end": 299,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 302,
"end": 307,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 277,
"end": 312,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 310,
"end": 312,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 322,
"end": 325,
"ctxt": 0
},
"value": "f21",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 326,
"end": 349,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 326,
"end": 349,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 326,
"end": 344,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 327,
"end": 332,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 331,
"end": 332,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 334,
"end": 343,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 334,
"end": 335,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 338,
"end": 343,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 347,
"end": 349,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 313,
"end": 353,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 351,
"end": 353,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 363,
"end": 366,
"ctxt": 0
},
"value": "f22",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 367,
"end": 391,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 367,
"end": 391,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 367,
"end": 385,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 368,
"end": 373,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 375,
"end": 384,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 375,
"end": 376,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 379,
"end": 384,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 388,
"end": 391,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 354,
"end": 395,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 393,
"end": 395,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 405,
"end": 408,
"ctxt": 0
},
"value": "f23",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 409,
"end": 440,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 409,
"end": 440,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 409,
"end": 427,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 410,
"end": 415,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 410,
"end": 411,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 414,
"end": 415,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 417,
"end": 426,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 421,
"end": 426,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 430,
"end": 440,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 431,
"end": 432,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 434,
"end": 439,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 396,
"end": 444,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 442,
"end": 444,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 446,
"end": 483,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 460,
"end": 482,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 460,
"end": 462,
"ctxt": 0
},
"value": "nx",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 462,
"end": 482,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 464,
"end": 482,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 464,
"end": 470,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 473,
"end": 482,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 484,
"end": 521,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 498,
"end": 520,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 498,
"end": 500,
"ctxt": 0
},
"value": "sx",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 500,
"end": 520,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 502,
"end": 520,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 502,
"end": 508,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 511,
"end": 520,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 532,
"end": 535,
"ctxt": 0
},
"value": "f30",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 536,
"end": 554,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ArrayPattern",
"span": {
"start": 536,
"end": 554,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 537,
"end": 542,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 537,
"end": 538,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 541,
"end": 542,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 544,
"end": 553,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 544,
"end": 545,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 548,
"end": 553,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 523,
"end": 558,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 556,
"end": 558,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 568,
"end": 571,
"ctxt": 0
},
"value": "f31",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 572,
"end": 595,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 572,
"end": 595,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 572,
"end": 590,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 573,
"end": 578,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 573,
"end": 574,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 577,
"end": 578,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 580,
"end": 589,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 580,
"end": 581,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 584,
"end": 589,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 593,
"end": 595,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 559,
"end": 599,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 597,
"end": 599,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 609,
"end": 612,
"ctxt": 0
},
"value": "f32",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 613,
"end": 638,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 613,
"end": 638,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 613,
"end": 631,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 614,
"end": 619,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 614,
"end": 615,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 618,
"end": 619,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 621,
"end": 630,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 621,
"end": 622,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 625,
"end": 630,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 634,
"end": 638,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 635,
"end": 637,
"ctxt": 0
},
"value": "nx",
"optional": false
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 600,
"end": 642,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 640,
"end": 642,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 652,
"end": 655,
"ctxt": 0
},
"value": "f33",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 656,
"end": 685,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 656,
"end": 685,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 656,
"end": 674,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 657,
"end": 662,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 657,
"end": 658,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 661,
"end": 662,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 664,
"end": 673,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 664,
"end": 665,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 668,
"end": 673,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 677,
"end": 685,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 678,
"end": 680,
"ctxt": 0
},
"value": "nx",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 682,
"end": 684,
"ctxt": 0
},
"value": "sx",
"optional": false
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 643,
"end": 689,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 687,
"end": 689,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 700,
"end": 703,
"ctxt": 0
},
"value": "f40",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 704,
"end": 722,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ArrayPattern",
"span": {
"start": 704,
"end": 722,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 705,
"end": 710,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 705,
"end": 706,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 709,
"end": 710,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 712,
"end": 721,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 712,
"end": 713,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 716,
"end": 721,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 691,
"end": 726,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 724,
"end": 726,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 736,
"end": 739,
"ctxt": 0
},
"value": "f41",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 740,
"end": 763,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 740,
"end": 763,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 740,
"end": 758,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 741,
"end": 746,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 741,
"end": 742,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 745,
"end": 746,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 748,
"end": 757,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 748,
"end": 749,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 752,
"end": 757,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 761,
"end": 763,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 727,
"end": 767,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 765,
"end": 767,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 777,
"end": 780,
"ctxt": 0
},
"value": "f42",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 781,
"end": 806,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 781,
"end": 806,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 781,
"end": 799,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 782,
"end": 787,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 782,
"end": 783,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 786,
"end": 787,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 789,
"end": 798,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 789,
"end": 790,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 793,
"end": 798,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 802,
"end": 806,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 803,
"end": 805,
"ctxt": 0
},
"value": "sx",
"optional": false
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 768,
"end": 810,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 808,
"end": 810,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 820,
"end": 823,
"ctxt": 0
},
"value": "f43",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 824,
"end": 853,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 824,
"end": 853,
"ctxt": 0
},
"left": {
"type": "ArrayPattern",
"span": {
"start": 824,
"end": 842,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 825,
"end": 830,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 825,
"end": 826,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 829,
"end": 830,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 832,
"end": 841,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 832,
"end": 833,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 836,
"end": 841,
"ctxt": 0
},
"value": "bar",
"raw": "'bar'"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 845,
"end": 853,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 846,
"end": 848,
"ctxt": 0
},
"value": "sx",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 850,
"end": 852,
"ctxt": 0
},
"value": "nx",
"optional": false
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 811,
"end": 857,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 855,
"end": 857,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}