swc/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentPatternOrder.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

6066 lines
193 KiB
JSON

{
"type": "Script",
"span": {
"start": 115,
"end": 1805,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 115,
"end": 142,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 135,
"end": 141,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 137,
"end": 141,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "BlockStatement",
"span": {
"start": 143,
"end": 258,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 149,
"end": 166,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 153,
"end": 165,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 154,
"end": 161,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 156,
"end": 161,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 156,
"end": 157,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 156,
"end": 157,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 160,
"end": 161,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 160,
"end": 161,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 164,
"end": 165,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 171,
"end": 188,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 175,
"end": 187,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 175,
"end": 176,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 176,
"end": 187,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 178,
"end": 187,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 193,
"end": 235,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 193,
"end": 234,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 193,
"end": 229,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 194,
"end": 228,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 196,
"end": 205,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 197,
"end": 204,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 198,
"end": 203,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 198,
"end": 199,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 207,
"end": 208,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 213,
"end": 228,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 213,
"end": 219,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 214,
"end": 215,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 232,
"end": 234,
"ctxt": 0
},
"elements": []
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 240,
"end": 256,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 246,
"end": 255,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 246,
"end": 248,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 248,
"end": 251,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 250,
"end": 251,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 250,
"end": 251,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 254,
"end": 255,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 259,
"end": 372,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 265,
"end": 282,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 269,
"end": 281,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 269,
"end": 270,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 270,
"end": 277,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 272,
"end": 277,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 272,
"end": 273,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 272,
"end": 273,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 276,
"end": 277,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 276,
"end": 277,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 280,
"end": 281,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 287,
"end": 304,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 291,
"end": 303,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 291,
"end": 292,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 292,
"end": 303,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 294,
"end": 303,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 294,
"end": 295,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 294,
"end": 295,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 298,
"end": 299,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 298,
"end": 299,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 302,
"end": 303,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 302,
"end": 303,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 309,
"end": 349,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 309,
"end": 348,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 309,
"end": 343,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 310,
"end": 342,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 310,
"end": 320,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 312,
"end": 315,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 317,
"end": 318,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 323,
"end": 342,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 323,
"end": 333,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 324,
"end": 325,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 327,
"end": 332,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 331,
"end": 332,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 346,
"end": 348,
"ctxt": 0
},
"elements": []
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 354,
"end": 370,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 360,
"end": 369,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 360,
"end": 362,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 362,
"end": 365,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 373,
"end": 511,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 379,
"end": 396,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 383,
"end": 395,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 384,
"end": 391,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 386,
"end": 391,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 386,
"end": 387,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 386,
"end": 387,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 390,
"end": 391,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 390,
"end": 391,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 394,
"end": 395,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 401,
"end": 422,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 405,
"end": 421,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 405,
"end": 406,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 406,
"end": 421,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 408,
"end": 421,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 408,
"end": 409,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 408,
"end": 409,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 412,
"end": 413,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 412,
"end": 413,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 416,
"end": 417,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 416,
"end": 417,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 427,
"end": 484,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 427,
"end": 483,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 427,
"end": 463,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 428,
"end": 462,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 428,
"end": 444,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 430,
"end": 439,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 431,
"end": 438,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 432,
"end": 437,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 432,
"end": 433,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 436,
"end": 437,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 441,
"end": 442,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 447,
"end": 462,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 447,
"end": 453,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 448,
"end": 449,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 451,
"end": 452,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 466,
"end": 483,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 467,
"end": 482,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 467,
"end": 473,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 468,
"end": 469,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 471,
"end": 472,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 489,
"end": 509,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 495,
"end": 508,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 495,
"end": 497,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 497,
"end": 504,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 499,
"end": 504,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 499,
"end": 500,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 499,
"end": 500,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 503,
"end": 504,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 503,
"end": 504,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 507,
"end": 508,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 512,
"end": 648,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 518,
"end": 535,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 522,
"end": 534,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 522,
"end": 523,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 523,
"end": 530,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 525,
"end": 530,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 525,
"end": 526,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 525,
"end": 526,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 529,
"end": 530,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 529,
"end": 530,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 533,
"end": 534,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 540,
"end": 561,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 544,
"end": 560,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 544,
"end": 545,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 545,
"end": 560,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 547,
"end": 560,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 551,
"end": 552,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 551,
"end": 552,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 555,
"end": 556,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 555,
"end": 556,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 559,
"end": 560,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 559,
"end": 560,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 566,
"end": 621,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 566,
"end": 620,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 566,
"end": 600,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 567,
"end": 599,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 567,
"end": 577,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 569,
"end": 572,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 570,
"end": 571,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 574,
"end": 575,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 580,
"end": 599,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 580,
"end": 590,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 581,
"end": 586,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 581,
"end": 582,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 585,
"end": 586,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 588,
"end": 589,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 603,
"end": 620,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 604,
"end": 619,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 604,
"end": 610,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 605,
"end": 606,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 608,
"end": 609,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 626,
"end": 646,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 632,
"end": 645,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 632,
"end": 634,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 634,
"end": 641,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 636,
"end": 641,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 636,
"end": 637,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 636,
"end": 637,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 640,
"end": 641,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 640,
"end": 641,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 644,
"end": 645,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 701,
"end": 821,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 707,
"end": 724,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 711,
"end": 723,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 711,
"end": 712,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 712,
"end": 719,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 714,
"end": 719,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 714,
"end": 715,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 714,
"end": 715,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 718,
"end": 719,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 718,
"end": 719,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 722,
"end": 723,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 729,
"end": 746,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 733,
"end": 745,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 733,
"end": 734,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 734,
"end": 745,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 736,
"end": 745,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 736,
"end": 737,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 736,
"end": 737,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 740,
"end": 741,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 740,
"end": 741,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 744,
"end": 745,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 744,
"end": 745,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 751,
"end": 798,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 751,
"end": 797,
"ctxt": 0
},
"expressions": [
{
"type": "AssignmentExpression",
"span": {
"start": 751,
"end": 792,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 751,
"end": 787,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 752,
"end": 786,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 752,
"end": 768,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 754,
"end": 763,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 755,
"end": 762,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 756,
"end": 761,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 756,
"end": 757,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 760,
"end": 761,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 765,
"end": 766,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 771,
"end": 786,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 771,
"end": 777,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 772,
"end": 773,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 775,
"end": 776,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 790,
"end": 792,
"ctxt": 0
},
"elements": []
}
},
{
"type": "CallExpression",
"span": {
"start": 794,
"end": 797,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 794,
"end": 795,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 803,
"end": 819,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 809,
"end": 818,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 809,
"end": 811,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 811,
"end": 814,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 813,
"end": 814,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 813,
"end": 814,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 817,
"end": 818,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 822,
"end": 940,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 828,
"end": 845,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 832,
"end": 844,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 832,
"end": 833,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 833,
"end": 840,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 835,
"end": 840,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 835,
"end": 836,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 835,
"end": 836,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 839,
"end": 840,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 839,
"end": 840,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 843,
"end": 844,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 850,
"end": 867,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 854,
"end": 866,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 854,
"end": 855,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 855,
"end": 866,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 857,
"end": 866,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 857,
"end": 858,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 857,
"end": 858,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 861,
"end": 862,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 861,
"end": 862,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 865,
"end": 866,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 865,
"end": 866,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 872,
"end": 917,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 872,
"end": 916,
"ctxt": 0
},
"expressions": [
{
"type": "AssignmentExpression",
"span": {
"start": 872,
"end": 911,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 872,
"end": 906,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 873,
"end": 905,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 873,
"end": 883,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 875,
"end": 878,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 876,
"end": 877,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 880,
"end": 881,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 886,
"end": 905,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 886,
"end": 896,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 887,
"end": 888,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 890,
"end": 895,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 890,
"end": 891,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 894,
"end": 895,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 909,
"end": 911,
"ctxt": 0
},
"elements": []
}
},
{
"type": "CallExpression",
"span": {
"start": 913,
"end": 916,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 913,
"end": 914,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 922,
"end": 938,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 928,
"end": 937,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 928,
"end": 930,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 930,
"end": 933,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 932,
"end": 933,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 932,
"end": 933,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 936,
"end": 937,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 941,
"end": 1084,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 947,
"end": 964,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 951,
"end": 963,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 951,
"end": 952,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 952,
"end": 959,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 954,
"end": 959,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 954,
"end": 955,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 954,
"end": 955,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 958,
"end": 959,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 958,
"end": 959,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 962,
"end": 963,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 969,
"end": 990,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 973,
"end": 989,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 973,
"end": 974,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 974,
"end": 989,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 976,
"end": 989,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 976,
"end": 977,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 976,
"end": 977,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 980,
"end": 981,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 980,
"end": 981,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 984,
"end": 985,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 984,
"end": 985,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 988,
"end": 989,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 988,
"end": 989,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 995,
"end": 1057,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 995,
"end": 1056,
"ctxt": 0
},
"expressions": [
{
"type": "AssignmentExpression",
"span": {
"start": 995,
"end": 1051,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 995,
"end": 1031,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 996,
"end": 1030,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 996,
"end": 1012,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 998,
"end": 1007,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 999,
"end": 1006,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1000,
"end": 1005,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1000,
"end": 1001,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1004,
"end": 1005,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1009,
"end": 1010,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1015,
"end": 1030,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1015,
"end": 1021,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1016,
"end": 1017,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1019,
"end": 1020,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1034,
"end": 1051,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 1035,
"end": 1050,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1035,
"end": 1041,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1036,
"end": 1037,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1039,
"end": 1040,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
}
]
}
},
{
"type": "CallExpression",
"span": {
"start": 1053,
"end": 1056,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1053,
"end": 1054,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1062,
"end": 1082,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1068,
"end": 1081,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1068,
"end": 1070,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1070,
"end": 1077,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1072,
"end": 1077,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1072,
"end": 1073,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1072,
"end": 1073,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1076,
"end": 1077,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1076,
"end": 1077,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1080,
"end": 1081,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 1085,
"end": 1226,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1091,
"end": 1108,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1095,
"end": 1107,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1095,
"end": 1096,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1096,
"end": 1103,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1098,
"end": 1103,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1098,
"end": 1099,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1098,
"end": 1099,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1102,
"end": 1103,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1102,
"end": 1103,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 1106,
"end": 1107,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1113,
"end": 1134,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1117,
"end": 1133,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1117,
"end": 1118,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1118,
"end": 1133,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1120,
"end": 1133,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1120,
"end": 1121,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1120,
"end": 1121,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1124,
"end": 1125,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1124,
"end": 1125,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1128,
"end": 1129,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1128,
"end": 1129,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1132,
"end": 1133,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1132,
"end": 1133,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1139,
"end": 1199,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1139,
"end": 1198,
"ctxt": 0
},
"expressions": [
{
"type": "AssignmentExpression",
"span": {
"start": 1139,
"end": 1193,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 1139,
"end": 1173,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1140,
"end": 1172,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 1140,
"end": 1150,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 1142,
"end": 1145,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1143,
"end": 1144,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1147,
"end": 1148,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1153,
"end": 1172,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1153,
"end": 1163,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1154,
"end": 1159,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1154,
"end": 1155,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1158,
"end": 1159,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1161,
"end": 1162,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1176,
"end": 1193,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 1177,
"end": 1192,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1177,
"end": 1183,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1178,
"end": 1179,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1181,
"end": 1182,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
]
}
},
{
"type": "CallExpression",
"span": {
"start": 1195,
"end": 1198,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1195,
"end": 1196,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1204,
"end": 1224,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1210,
"end": 1223,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1210,
"end": 1212,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1212,
"end": 1219,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1214,
"end": 1219,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1214,
"end": 1215,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1214,
"end": 1215,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1218,
"end": 1219,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1218,
"end": 1219,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1222,
"end": 1223,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 1280,
"end": 1400,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1286,
"end": 1303,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1290,
"end": 1302,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1290,
"end": 1291,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1291,
"end": 1298,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1293,
"end": 1298,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1293,
"end": 1294,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1293,
"end": 1294,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1297,
"end": 1298,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1297,
"end": 1298,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 1301,
"end": 1302,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1308,
"end": 1325,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1312,
"end": 1324,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1312,
"end": 1313,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1313,
"end": 1324,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1315,
"end": 1324,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1315,
"end": 1316,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1315,
"end": 1316,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1319,
"end": 1320,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1319,
"end": 1320,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1323,
"end": 1324,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1323,
"end": 1324,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1330,
"end": 1377,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1330,
"end": 1376,
"ctxt": 0
},
"expressions": [
{
"type": "CallExpression",
"span": {
"start": 1330,
"end": 1333,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1330,
"end": 1331,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
},
{
"type": "AssignmentExpression",
"span": {
"start": 1335,
"end": 1376,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 1335,
"end": 1371,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1336,
"end": 1370,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 1336,
"end": 1352,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 1338,
"end": 1347,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1339,
"end": 1346,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1340,
"end": 1345,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1340,
"end": 1341,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1344,
"end": 1345,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1349,
"end": 1350,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1355,
"end": 1370,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1355,
"end": 1361,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1356,
"end": 1357,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1359,
"end": 1360,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1374,
"end": 1376,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1382,
"end": 1398,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1388,
"end": 1397,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1388,
"end": 1390,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1390,
"end": 1393,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1392,
"end": 1393,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1392,
"end": 1393,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1396,
"end": 1397,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 1401,
"end": 1519,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1407,
"end": 1424,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1411,
"end": 1423,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1411,
"end": 1412,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1412,
"end": 1419,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1414,
"end": 1419,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1414,
"end": 1415,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1414,
"end": 1415,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1418,
"end": 1419,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1418,
"end": 1419,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 1422,
"end": 1423,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1429,
"end": 1446,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1433,
"end": 1445,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1433,
"end": 1434,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1434,
"end": 1445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1436,
"end": 1445,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1436,
"end": 1437,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1436,
"end": 1437,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1440,
"end": 1441,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1440,
"end": 1441,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1451,
"end": 1496,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1451,
"end": 1495,
"ctxt": 0
},
"expressions": [
{
"type": "CallExpression",
"span": {
"start": 1451,
"end": 1454,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1451,
"end": 1452,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
},
{
"type": "AssignmentExpression",
"span": {
"start": 1456,
"end": 1495,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 1456,
"end": 1490,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1457,
"end": 1489,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 1457,
"end": 1467,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 1459,
"end": 1462,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1460,
"end": 1461,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1464,
"end": 1465,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1470,
"end": 1489,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1470,
"end": 1480,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1471,
"end": 1472,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1474,
"end": 1479,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1474,
"end": 1475,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1478,
"end": 1479,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1493,
"end": 1495,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1501,
"end": 1517,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1507,
"end": 1516,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1507,
"end": 1509,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1509,
"end": 1512,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1511,
"end": 1512,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1511,
"end": 1512,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1515,
"end": 1516,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 1520,
"end": 1663,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1526,
"end": 1543,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1530,
"end": 1542,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1530,
"end": 1531,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1531,
"end": 1538,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1533,
"end": 1538,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1533,
"end": 1534,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1533,
"end": 1534,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1537,
"end": 1538,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1537,
"end": 1538,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 1541,
"end": 1542,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1548,
"end": 1569,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1552,
"end": 1568,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1552,
"end": 1553,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1553,
"end": 1568,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1555,
"end": 1568,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1555,
"end": 1556,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1555,
"end": 1556,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1559,
"end": 1560,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1559,
"end": 1560,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1563,
"end": 1564,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1563,
"end": 1564,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1567,
"end": 1568,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1567,
"end": 1568,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1574,
"end": 1636,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1574,
"end": 1635,
"ctxt": 0
},
"expressions": [
{
"type": "CallExpression",
"span": {
"start": 1574,
"end": 1577,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1574,
"end": 1575,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
},
{
"type": "AssignmentExpression",
"span": {
"start": 1579,
"end": 1635,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 1579,
"end": 1615,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1580,
"end": 1614,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 1580,
"end": 1596,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 1582,
"end": 1591,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1583,
"end": 1590,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1584,
"end": 1589,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1584,
"end": 1585,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1588,
"end": 1589,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1593,
"end": 1594,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1599,
"end": 1614,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1599,
"end": 1605,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1600,
"end": 1601,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1603,
"end": 1604,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1618,
"end": 1635,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 1619,
"end": 1634,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1619,
"end": 1625,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1620,
"end": 1621,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1623,
"end": 1624,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1641,
"end": 1661,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1647,
"end": 1660,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1647,
"end": 1649,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1649,
"end": 1656,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1651,
"end": 1656,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1651,
"end": 1652,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1651,
"end": 1652,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1655,
"end": 1656,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1655,
"end": 1656,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1659,
"end": 1660,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 1664,
"end": 1805,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1670,
"end": 1687,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1674,
"end": 1686,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1674,
"end": 1675,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1675,
"end": 1682,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1677,
"end": 1682,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1677,
"end": 1678,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1677,
"end": 1678,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1681,
"end": 1682,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1681,
"end": 1682,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 1685,
"end": 1686,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1692,
"end": 1713,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1696,
"end": 1712,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1696,
"end": 1697,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1697,
"end": 1712,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1699,
"end": 1712,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1699,
"end": 1700,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1699,
"end": 1700,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1703,
"end": 1704,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1703,
"end": 1704,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1707,
"end": 1708,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1707,
"end": 1708,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1711,
"end": 1712,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1711,
"end": 1712,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1718,
"end": 1778,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 1718,
"end": 1777,
"ctxt": 0
},
"expressions": [
{
"type": "CallExpression",
"span": {
"start": 1718,
"end": 1721,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1718,
"end": 1719,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
},
{
"type": "AssignmentExpression",
"span": {
"start": 1723,
"end": 1777,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 1723,
"end": 1757,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1724,
"end": 1756,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 1724,
"end": 1734,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 1726,
"end": 1729,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1727,
"end": 1728,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 1731,
"end": 1732,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 1737,
"end": 1756,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1737,
"end": 1747,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1738,
"end": 1743,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1738,
"end": 1739,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1742,
"end": 1743,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1745,
"end": 1746,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 1760,
"end": 1777,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 1761,
"end": 1776,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1761,
"end": 1767,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1762,
"end": 1763,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1765,
"end": 1766,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1783,
"end": 1803,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1789,
"end": 1802,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1789,
"end": 1791,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1791,
"end": 1798,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 1793,
"end": 1798,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 1793,
"end": 1794,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1793,
"end": 1794,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 1797,
"end": 1798,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1797,
"end": 1798,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1801,
"end": 1802,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
}
],
"interpreter": null
}