{ "type": "Script", "span": { "start": 81, "end": 8381, "ctxt": 0 }, "body": [ { "type": "TsTypeAliasDeclaration", "span": { "start": 81, "end": 169, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 86, "end": 92, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 99, "end": 168, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 101, "end": 131, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 103, "end": 113, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 103, "end": 107, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 107, "end": 112, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 109, "end": 112, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 109, "end": 112, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 114, "end": 129, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 114, "end": 121, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 121, "end": 129, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 123, "end": 129, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 138, "end": 168, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 140, "end": 150, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 140, "end": 144, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 144, "end": 149, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 146, "end": 149, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 146, "end": 149, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 151, "end": 166, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 151, "end": 158, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 158, "end": 166, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 160, "end": 166, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 180, "end": 183, "ctxt": 0 }, "value": "f10", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 184, "end": 209, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 184, "end": 209, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 186, "end": 190, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 186, "end": 190, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 192, "end": 199, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 192, "end": 199, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 201, "end": 209, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 203, "end": 209, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 203, "end": 209, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 171, "end": 332, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 211, "end": 332, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 217, "end": 269, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 221, "end": 233, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 221, "end": 225, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 230, "end": 233, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 235, "end": 269, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 245, "end": 263, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 245, "end": 262, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 245, "end": 260, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 245, "end": 252, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 253, "end": 260, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 274, "end": 330, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 278, "end": 290, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 278, "end": 282, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 287, "end": 290, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 292, "end": 330, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 302, "end": 324, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 302, "end": 323, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 302, "end": 321, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 302, "end": 309, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 310, "end": 321, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 343, "end": 346, "ctxt": 0 }, "value": "f11", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 347, "end": 361, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 347, "end": 361, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 353, "end": 361, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 355, "end": 361, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 355, "end": 361, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 334, "end": 522, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 363, "end": 522, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 369, "end": 402, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 375, "end": 401, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 375, "end": 392, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 377, "end": 381, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 377, "end": 381, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 383, "end": 390, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 383, "end": 390, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 395, "end": 401, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 407, "end": 459, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 411, "end": 423, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 411, "end": 415, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 420, "end": 423, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 425, "end": 459, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 435, "end": 453, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 435, "end": 452, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 435, "end": 450, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 435, "end": 442, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 443, "end": 450, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 464, "end": 520, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 468, "end": 480, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 468, "end": 472, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 477, "end": 480, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 482, "end": 520, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 492, "end": 514, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 492, "end": 513, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 492, "end": 511, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 492, "end": 499, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 500, "end": 511, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 533, "end": 536, "ctxt": 0 }, "value": "f12", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 537, "end": 562, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 537, "end": 562, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 539, "end": 543, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 539, "end": 543, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 545, "end": 552, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 545, "end": 552, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 554, "end": 562, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 556, "end": 562, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 556, "end": 562, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 524, "end": 781, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 564, "end": 781, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 570, "end": 779, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 578, "end": 582, "ctxt": 0 }, "value": "kind", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 594, "end": 653, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 599, "end": 602, "ctxt": 0 }, "value": "A", "raw": "'A'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 616, "end": 634, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 616, "end": 633, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 616, "end": 631, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 616, "end": 623, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 624, "end": 631, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 647, "end": 653, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 662, "end": 725, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 667, "end": 670, "ctxt": 0 }, "value": "B", "raw": "'B'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 684, "end": 706, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 684, "end": 705, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 684, "end": 703, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 684, "end": 691, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 692, "end": 703, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 719, "end": 725, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 734, "end": 763, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 755, "end": 763, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 755, "end": 762, "ctxt": 0 }, "value": "payload", "optional": false } } ] } ] } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 808, "end": 811, "ctxt": 0 }, "value": "f13", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 830, "end": 850, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 830, "end": 850, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 832, "end": 836, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 832, "end": 836, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 838, "end": 845, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 838, "end": 845, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 847, "end": 850, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 849, "end": 850, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 849, "end": 850, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 799, "end": 973, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 852, "end": 973, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 858, "end": 910, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 862, "end": 874, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 862, "end": 866, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 871, "end": 874, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 876, "end": 910, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 886, "end": 904, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 886, "end": 903, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 886, "end": 901, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 886, "end": 893, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 894, "end": 901, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 915, "end": 971, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 919, "end": 931, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 919, "end": 923, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 928, "end": 931, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 933, "end": 971, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 943, "end": 965, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 943, "end": 964, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 943, "end": 962, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 943, "end": 950, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 951, "end": 962, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 811, "end": 829, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 812, "end": 828, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 812, "end": 813, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": { "type": "TsTypeReference", "span": { "start": 822, "end": 828, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 822, "end": 828, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null }, "default": null } ] }, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 984, "end": 987, "ctxt": 0 }, "value": "f14", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1006, "end": 1010, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1006, "end": 1010, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1007, "end": 1010, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1009, "end": 1010, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1009, "end": 1010, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 975, "end": 1166, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1012, "end": 1166, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 1018, "end": 1046, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1024, "end": 1045, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 1024, "end": 1041, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1026, "end": 1030, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1026, "end": 1030, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1032, "end": 1039, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1032, "end": 1039, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 1044, "end": 1045, "ctxt": 0 }, "value": "t", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 1051, "end": 1103, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1055, "end": 1067, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1055, "end": 1059, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1064, "end": 1067, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1069, "end": 1103, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1079, "end": 1097, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1079, "end": 1096, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1079, "end": 1094, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1079, "end": 1086, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1087, "end": 1094, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1108, "end": 1164, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1112, "end": 1124, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1112, "end": 1116, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1121, "end": 1124, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1126, "end": 1164, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1136, "end": 1158, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1136, "end": 1157, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1136, "end": 1155, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1136, "end": 1143, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1144, "end": 1155, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 987, "end": 1005, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 988, "end": 1004, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 988, "end": 989, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": { "type": "TsTypeReference", "span": { "start": 998, "end": 1004, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 998, "end": 1004, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null }, "default": null } ] }, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 1168, "end": 1281, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 1173, "end": 1180, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 1187, "end": 1280, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 1189, "end": 1231, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 1191, "end": 1201, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1191, "end": 1195, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1195, "end": 1200, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1197, "end": 1200, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 1197, "end": 1200, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 1202, "end": 1229, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1202, "end": 1209, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1209, "end": 1229, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 1211, "end": 1229, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 1211, "end": 1217, "ctxt": 0 }, "kind": "number" }, { "type": "TsKeywordType", "span": { "start": 1220, "end": 1229, "ctxt": 0 }, "kind": "undefined" } ] } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 1238, "end": 1280, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 1240, "end": 1250, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1240, "end": 1244, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1244, "end": 1249, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1246, "end": 1249, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 1246, "end": 1249, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 1251, "end": 1278, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1251, "end": 1258, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1258, "end": 1278, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 1260, "end": 1278, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 1260, "end": 1266, "ctxt": 0 }, "kind": "string" }, { "type": "TsKeywordType", "span": { "start": 1269, "end": 1278, "ctxt": 0 }, "kind": "undefined" } ] } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1292, "end": 1295, "ctxt": 0 }, "value": "f20", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1296, "end": 1322, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 1296, "end": 1322, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1298, "end": 1302, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1298, "end": 1302, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1304, "end": 1311, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1304, "end": 1311, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1313, "end": 1322, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1315, "end": 1322, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1315, "end": 1322, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1283, "end": 1494, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1324, "end": 1494, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1330, "end": 1492, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 1334, "end": 1341, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 1343, "end": 1492, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1353, "end": 1413, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1357, "end": 1369, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1357, "end": 1361, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1366, "end": 1369, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1371, "end": 1413, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1385, "end": 1403, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1385, "end": 1402, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1385, "end": 1400, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1385, "end": 1392, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1393, "end": 1400, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1422, "end": 1486, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1426, "end": 1438, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1426, "end": 1430, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1435, "end": 1438, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1440, "end": 1486, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1454, "end": 1476, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1454, "end": 1475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1454, "end": 1473, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1454, "end": 1461, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1462, "end": 1473, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1505, "end": 1508, "ctxt": 0 }, "value": "f21", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1509, "end": 1524, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1509, "end": 1524, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1515, "end": 1524, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1517, "end": 1524, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1517, "end": 1524, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1496, "end": 1734, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1526, "end": 1734, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 1532, "end": 1565, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1538, "end": 1564, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 1538, "end": 1555, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1540, "end": 1544, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1540, "end": 1544, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1546, "end": 1553, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1546, "end": 1553, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 1558, "end": 1564, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 1570, "end": 1732, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 1574, "end": 1581, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 1583, "end": 1732, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1593, "end": 1653, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1597, "end": 1609, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1597, "end": 1601, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1606, "end": 1609, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1611, "end": 1653, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1625, "end": 1643, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1625, "end": 1642, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1625, "end": 1640, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1625, "end": 1632, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1633, "end": 1640, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1662, "end": 1726, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1666, "end": 1678, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1666, "end": 1670, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1675, "end": 1678, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1680, "end": 1726, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1694, "end": 1716, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1694, "end": 1715, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1694, "end": 1713, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1694, "end": 1701, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1702, "end": 1713, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1745, "end": 1748, "ctxt": 0 }, "value": "f22", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1749, "end": 1764, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1749, "end": 1764, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1755, "end": 1764, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1757, "end": 1764, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1757, "end": 1764, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1736, "end": 1985, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1766, "end": 1985, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1772, "end": 1983, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 1776, "end": 1790, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1776, "end": 1782, "ctxt": 0 }, "value": "action", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1783, "end": 1790, "ctxt": 0 }, "value": "payload", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 1792, "end": 1983, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 1802, "end": 1835, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1808, "end": 1834, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 1808, "end": 1825, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1810, "end": 1814, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1810, "end": 1814, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1816, "end": 1823, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1816, "end": 1823, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 1828, "end": 1834, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 1844, "end": 1904, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1848, "end": 1860, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1848, "end": 1852, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1857, "end": 1860, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1862, "end": 1904, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1876, "end": 1894, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1876, "end": 1893, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1876, "end": 1891, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1876, "end": 1883, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1884, "end": 1891, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1913, "end": 1977, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1917, "end": 1929, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1917, "end": 1921, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1926, "end": 1929, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1931, "end": 1977, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1945, "end": 1967, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1945, "end": 1966, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1945, "end": 1964, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1945, "end": 1952, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1953, "end": 1964, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1996, "end": 1999, "ctxt": 0 }, "value": "f23", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2000, "end": 2026, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 2000, "end": 2026, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 2002, "end": 2006, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2002, "end": 2006, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 2008, "end": 2015, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2008, "end": 2015, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2017, "end": 2026, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2019, "end": 2026, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2019, "end": 2026, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1987, "end": 2310, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2028, "end": 2310, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 2034, "end": 2308, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 2038, "end": 2045, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 2047, "end": 2308, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 2057, "end": 2302, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 2065, "end": 2069, "ctxt": 0 }, "value": "kind", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 2085, "end": 2152, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 2090, "end": 2093, "ctxt": 0 }, "value": "A", "raw": "'A'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 2111, "end": 2129, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2111, "end": 2128, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2111, "end": 2126, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2111, "end": 2118, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2119, "end": 2126, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 2146, "end": 2152, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 2165, "end": 2236, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 2170, "end": 2173, "ctxt": 0 }, "value": "B", "raw": "'B'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 2191, "end": 2213, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2191, "end": 2212, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2191, "end": 2210, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2191, "end": 2198, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2199, "end": 2210, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 2230, "end": 2236, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 2249, "end": 2282, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 2274, "end": 2282, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2274, "end": 2281, "ctxt": 0 }, "value": "payload", "optional": false } } ] } ] } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 2312, "end": 2418, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 2317, "end": 2320, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 2327, "end": 2417, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 2329, "end": 2353, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 2331, "end": 2341, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2331, "end": 2335, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2335, "end": 2340, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2337, "end": 2340, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2337, "end": 2340, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2342, "end": 2351, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2342, "end": 2345, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2345, "end": 2351, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2347, "end": 2351, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 2347, "end": 2351, "ctxt": 0 }, "value": true } } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 2360, "end": 2385, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 2362, "end": 2372, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2362, "end": 2366, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2366, "end": 2371, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2368, "end": 2371, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2368, "end": 2371, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2373, "end": 2383, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2373, "end": 2376, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2376, "end": 2383, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2378, "end": 2383, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 2378, "end": 2383, "ctxt": 0 }, "value": false } } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 2392, "end": 2417, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 2394, "end": 2404, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2394, "end": 2398, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2398, "end": 2403, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2400, "end": 2403, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2400, "end": 2403, "ctxt": 0 }, "value": "C", "raw": "'C'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2405, "end": 2415, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2405, "end": 2408, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2408, "end": 2415, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2410, "end": 2415, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 2410, "end": 2415, "ctxt": 0 }, "value": false } } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2429, "end": 2432, "ctxt": 0 }, "value": "f30", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2433, "end": 2451, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 2433, "end": 2451, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 2435, "end": 2439, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2435, "end": 2439, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 2441, "end": 2444, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2441, "end": 2444, "ctxt": 0 }, "value": "isA", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2446, "end": 2451, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2448, "end": 2451, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2448, "end": 2451, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 2420, "end": 2705, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2453, "end": 2705, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 2459, "end": 2507, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2463, "end": 2475, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2463, "end": 2467, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2472, "end": 2475, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2477, "end": 2507, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2487, "end": 2491, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2487, "end": 2490, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2512, "end": 2561, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2516, "end": 2528, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2516, "end": 2520, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2525, "end": 2528, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2530, "end": 2561, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2540, "end": 2544, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2540, "end": 2543, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2566, "end": 2615, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2570, "end": 2582, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2570, "end": 2574, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2579, "end": 2582, "ctxt": 0 }, "value": "C", "raw": "'C'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2584, "end": 2615, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2594, "end": 2598, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2594, "end": 2597, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2620, "end": 2703, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 2624, "end": 2627, "ctxt": 0 }, "value": "isA", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 2629, "end": 2658, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2639, "end": 2644, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2639, "end": 2643, "ctxt": 0 }, "value": "kind", "optional": false } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 2668, "end": 2703, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2678, "end": 2683, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2678, "end": 2682, "ctxt": 0 }, "value": "kind", "optional": false } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 2707, "end": 2748, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 2712, "end": 2716, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 2719, "end": 2748, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 2719, "end": 2732, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 2720, "end": 2723, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 2720, "end": 2723, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2720, "end": 2723, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 2725, "end": 2731, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 2725, "end": 2731, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 2735, "end": 2748, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 2736, "end": 2739, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 2736, "end": 2739, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2736, "end": 2739, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, { "type": "TsTupleElement", "span": { "start": 2741, "end": 2747, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 2741, "end": 2747, "ctxt": 0 }, "kind": "string" } } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2759, "end": 2762, "ctxt": 0 }, "value": "f40", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2763, "end": 2784, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 2763, "end": 2784, "ctxt": 0 }, "rest": { "start": 2763, "end": 2766, "ctxt": 0 }, "argument": { "type": "ArrayPattern", "span": { "start": 2766, "end": 2778, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 2767, "end": 2771, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 2773, "end": 2777, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2778, "end": 2784, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2780, "end": 2784, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2780, "end": 2784, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 2750, "end": 2901, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2786, "end": 2901, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 2792, "end": 2841, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2796, "end": 2808, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2796, "end": 2800, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2805, "end": 2808, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2810, "end": 2841, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2820, "end": 2835, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2820, "end": 2834, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2820, "end": 2832, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2820, "end": 2824, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2825, "end": 2832, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2846, "end": 2899, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2850, "end": 2862, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2850, "end": 2854, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2859, "end": 2862, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2864, "end": 2899, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2874, "end": 2893, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2874, "end": 2892, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2874, "end": 2890, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2874, "end": 2878, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2879, "end": 2890, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsInterfaceDeclaration", "span": { "start": 2925, "end": 2966, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2935, "end": 2936, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 2936, "end": 2939, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2937, "end": 2938, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2937, "end": 2938, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 2940, "end": 2966, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 2942, "end": 2955, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2942, "end": 2949, "ctxt": 0 }, "value": "variant", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2949, "end": 2954, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2951, "end": 2954, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2951, "end": 2954, "ctxt": 0 }, "value": "a", "raw": "'a'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2956, "end": 2964, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2956, "end": 2961, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2961, "end": 2964, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2963, "end": 2964, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2963, "end": 2964, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 2968, "end": 3016, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2978, "end": 2979, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 2979, "end": 2982, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2980, "end": 2981, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2980, "end": 2981, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 2983, "end": 3016, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 2985, "end": 2998, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2985, "end": 2992, "ctxt": 0 }, "value": "variant", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2992, "end": 2997, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2994, "end": 2997, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2994, "end": 2997, "ctxt": 0 }, "value": "b", "raw": "'b'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2999, "end": 3014, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2999, "end": 3004, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3004, "end": 3014, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3006, "end": 3014, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3006, "end": 3011, "ctxt": 0 }, "value": "Array", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3011, "end": 3014, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3012, "end": 3013, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3012, "end": 3013, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "typeParams": null } ] } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 3018, "end": 3043, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 3023, "end": 3025, "ctxt": 0 }, "value": "AB", "optional": false }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 3025, "end": 3028, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 3026, "end": 3027, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 3026, "end": 3027, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 3031, "end": 3042, "ctxt": 0 }, "types": [ { "type": "TsTypeReference", "span": { "start": 3031, "end": 3035, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3031, "end": 3032, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3032, "end": 3035, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3033, "end": 3034, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3033, "end": 3034, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } }, { "type": "TsTypeReference", "span": { "start": 3038, "end": 3042, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3038, "end": 3039, "ctxt": 0 }, "value": "B", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3039, "end": 3042, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3040, "end": 3041, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3040, "end": 3041, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3062, "end": 3072, "ctxt": 0 }, "value": "printValue", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 3076, "end": 3080, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3076, "end": 3080, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3077, "end": 3080, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3079, "end": 3080, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3079, "end": 3080, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 3045, "end": 3088, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 3072, "end": 3075, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 3073, "end": 3074, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 3073, "end": 3074, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3081, "end": 3087, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3083, "end": 3087, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3107, "end": 3121, "ctxt": 0 }, "value": "printValueList", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 3125, "end": 3136, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3125, "end": 3136, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3126, "end": 3136, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3128, "end": 3136, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3128, "end": 3133, "ctxt": 0 }, "value": "Array", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3133, "end": 3136, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3134, "end": 3135, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3134, "end": 3135, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } } } ], "decorators": [], "span": { "start": 3090, "end": 3144, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 3121, "end": 3124, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 3122, "end": 3123, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 3122, "end": 3123, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3137, "end": 3143, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3139, "end": 3143, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3155, "end": 3165, "ctxt": 0 }, "value": "unrefined1", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 3169, "end": 3178, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3169, "end": 3178, "ctxt": 0 }, "value": "ab", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3171, "end": 3178, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3173, "end": 3178, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3173, "end": 3175, "ctxt": 0 }, "value": "AB", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3175, "end": 3178, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3176, "end": 3177, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3176, "end": 3177, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } } } ], "decorators": [], "span": { "start": 3146, "end": 3338, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 3186, "end": 3338, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 3192, "end": 3222, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3198, "end": 3221, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 3198, "end": 3216, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 3200, "end": 3207, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3200, "end": 3207, "ctxt": 0 }, "value": "variant", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 3209, "end": 3214, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3209, "end": 3214, "ctxt": 0 }, "value": "value", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 3219, "end": 3221, "ctxt": 0 }, "value": "ab", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 3227, "end": 3336, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3231, "end": 3246, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3231, "end": 3238, "ctxt": 0 }, "value": "variant", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3243, "end": 3246, "ctxt": 0 }, "value": "a", "raw": "'a'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3248, "end": 3285, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3258, "end": 3279, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3258, "end": 3278, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3258, "end": 3268, "ctxt": 0 }, "value": "printValue", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3272, "end": 3277, "ctxt": 0 }, "value": "value", "optional": false } } ], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 3268, "end": 3271, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3269, "end": 3270, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3269, "end": 3270, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 3295, "end": 3336, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3305, "end": 3330, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3305, "end": 3329, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3305, "end": 3319, "ctxt": 0 }, "value": "printValueList", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3323, "end": 3328, "ctxt": 0 }, "value": "value", "optional": false } } ], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 3319, "end": 3322, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 3320, "end": 3321, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3320, "end": 3321, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } ] } } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 3165, "end": 3168, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 3166, "end": 3167, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 3166, "end": 3167, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3179, "end": 3185, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3181, "end": 3185, "ctxt": 0 }, "kind": "void" } } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 3362, "end": 3481, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 3367, "end": 3374, "ctxt": 0 }, "value": "Action3", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 3381, "end": 3480, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 3383, "end": 3425, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3384, "end": 3396, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3384, "end": 3388, "ctxt": 0 }, "value": "type", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3388, "end": 3395, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 3390, "end": 3395, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3390, "end": 3395, "ctxt": 0 }, "value": "add", "raw": "'add'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 3397, "end": 3423, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3397, "end": 3404, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3404, "end": 3423, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 3406, "end": 3423, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3408, "end": 3421, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3408, "end": 3413, "ctxt": 0 }, "value": "toAdd", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3413, "end": 3421, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3415, "end": 3421, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 3432, "end": 3480, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3433, "end": 3448, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3433, "end": 3437, "ctxt": 0 }, "value": "type", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3437, "end": 3447, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 3439, "end": 3447, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3439, "end": 3447, "ctxt": 0 }, "value": "remove", "raw": "'remove'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 3449, "end": 3478, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3449, "end": 3456, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3456, "end": 3478, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 3458, "end": 3478, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3460, "end": 3476, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3460, "end": 3468, "ctxt": 0 }, "value": "toRemove", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3468, "end": 3476, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3470, "end": 3476, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } ] } }, { "type": "VariableDeclaration", "span": { "start": 3483, "end": 3711, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3489, "end": 3711, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3489, "end": 3502, "ctxt": 0 }, "value": "reducerBroken", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 3505, "end": 3711, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3506, "end": 3519, "ctxt": 0 }, "value": "state", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3511, "end": 3519, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3513, "end": 3519, "ctxt": 0 }, "kind": "number" } } }, { "type": "ObjectPattern", "span": { "start": 3521, "end": 3547, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 3523, "end": 3527, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3523, "end": 3527, "ctxt": 0 }, "value": "type", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 3529, "end": 3536, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3529, "end": 3536, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3538, "end": 3547, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3540, "end": 3547, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3540, "end": 3547, "ctxt": 0 }, "value": "Action3", "optional": false }, "typeParams": null } } } ], "body": { "type": "BlockStatement", "span": { "start": 3552, "end": 3711, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 3558, "end": 3709, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 3566, "end": 3570, "ctxt": 0 }, "value": "type", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 3582, "end": 3635, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 3587, "end": 3592, "ctxt": 0 }, "value": "add", "raw": "'add'" }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 3606, "end": 3635, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 3613, "end": 3634, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 3613, "end": 3618, "ctxt": 0 }, "value": "state", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 3621, "end": 3634, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3621, "end": 3628, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3629, "end": 3634, "ctxt": 0 }, "value": "toAdd", "optional": false } } } } ] }, { "type": "SwitchCase", "span": { "start": 3644, "end": 3703, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 3649, "end": 3657, "ctxt": 0 }, "value": "remove", "raw": "'remove'" }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 3671, "end": 3703, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 3678, "end": 3702, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 3678, "end": 3683, "ctxt": 0 }, "value": "state", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 3686, "end": 3702, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3686, "end": 3693, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3694, "end": 3702, "ctxt": 0 }, "value": "toRemove", "optional": false } } } } ] } ] } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3735, "end": 3768, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3747, "end": 3767, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3747, "end": 3749, "ctxt": 0 }, "value": "it", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3749, "end": 3767, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3751, "end": 3767, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3751, "end": 3759, "ctxt": 0 }, "value": "Iterator", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3759, "end": 3767, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 3760, "end": 3766, "ctxt": 0 }, "kind": "number" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3769, "end": 3803, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3775, "end": 3802, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 3775, "end": 3790, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 3777, "end": 3782, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3777, "end": 3782, "ctxt": 0 }, "value": "value", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 3784, "end": 3788, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3784, "end": 3788, "ctxt": 0 }, "value": "done", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 3793, "end": 3802, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3793, "end": 3800, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3793, "end": 3795, "ctxt": 0 }, "value": "it", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3796, "end": 3800, "ctxt": 0 }, "value": "next", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 3804, "end": 3840, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 3808, "end": 3813, "ctxt": 0 }, "operator": "!", "argument": { "type": "Identifier", "span": { "start": 3809, "end": 3813, "ctxt": 0 }, "value": "done", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 3815, "end": 3840, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3821, "end": 3827, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 3821, "end": 3826, "ctxt": 0 }, "value": "value", "optional": false } } ] }, "alternate": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3881, "end": 3884, "ctxt": 0 }, "value": "f50", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 3885, "end": 3912, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3885, "end": 3912, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3887, "end": 3912, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 3889, "end": 3912, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 3890, "end": 3903, "ctxt": 0 }, "rest": { "start": 3890, "end": 3893, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3893, "end": 3897, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3897, "end": 3903, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3899, "end": 3903, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3899, "end": 3903, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3905, "end": 3912, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3908, "end": 3912, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 3864, "end": 3919, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3913, "end": 3919, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3915, "end": 3919, "ctxt": 0 }, "kind": "void" } } }, { "type": "ExpressionStatement", "span": { "start": 3921, "end": 4058, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3921, "end": 4057, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3921, "end": 3924, "ctxt": 0 }, "value": "f50", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 3925, "end": 4056, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3926, "end": 3930, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 3932, "end": 3936, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 3941, "end": 4056, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 3947, "end": 3996, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3951, "end": 3963, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3951, "end": 3955, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3960, "end": 3963, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3965, "end": 3996, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3975, "end": 3990, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3975, "end": 3989, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3975, "end": 3987, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3975, "end": 3979, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3980, "end": 3987, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 4001, "end": 4054, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4005, "end": 4017, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4005, "end": 4009, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 4014, "end": 4017, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 4019, "end": 4054, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4029, "end": 4048, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4029, "end": 4047, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4029, "end": 4045, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4029, "end": 4033, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4034, "end": 4045, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 4060, "end": 4263, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4066, "end": 4262, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4066, "end": 4069, "ctxt": 0 }, "value": "f51", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4069, "end": 4119, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4071, "end": 4119, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4072, "end": 4110, "ctxt": 0 }, "rest": { "start": 4072, "end": 4075, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4075, "end": 4079, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4079, "end": 4110, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4081, "end": 4110, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4081, "end": 4094, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4082, "end": 4085, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4082, "end": 4085, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4082, "end": 4085, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 4087, "end": 4093, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 4087, "end": 4093, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 4097, "end": 4110, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4098, "end": 4101, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4098, "end": 4101, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4098, "end": 4101, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, { "type": "TsTupleElement", "span": { "start": 4103, "end": 4109, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 4103, "end": 4109, "ctxt": 0 }, "kind": "string" } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4112, "end": 4119, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4115, "end": 4119, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 4122, "end": 4262, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4123, "end": 4127, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4129, "end": 4136, "ctxt": 0 }, "value": "payload", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4141, "end": 4262, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 4147, "end": 4199, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4151, "end": 4163, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4151, "end": 4155, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 4160, "end": 4163, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 4165, "end": 4199, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4175, "end": 4193, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4175, "end": 4192, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4175, "end": 4190, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4175, "end": 4182, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4183, "end": 4190, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 4204, "end": 4260, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4208, "end": 4220, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4208, "end": 4212, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 4217, "end": 4220, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 4222, "end": 4260, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4232, "end": 4254, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4232, "end": 4253, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4232, "end": 4251, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4232, "end": 4239, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4240, "end": 4251, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 4265, "end": 4448, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4271, "end": 4447, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4271, "end": 4274, "ctxt": 0 }, "value": "f52", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4274, "end": 4316, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4276, "end": 4316, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4277, "end": 4307, "ctxt": 0 }, "rest": { "start": 4277, "end": 4280, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4280, "end": 4284, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4284, "end": 4307, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4286, "end": 4307, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4286, "end": 4299, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4287, "end": 4290, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4287, "end": 4290, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4287, "end": 4290, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 4292, "end": 4298, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 4292, "end": 4298, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 4302, "end": 4307, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4303, "end": 4306, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4303, "end": 4306, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4303, "end": 4306, "ctxt": 0 }, "value": "B", "raw": "'B'" } } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4309, "end": 4316, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4312, "end": 4316, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 4319, "end": 4447, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4320, "end": 4324, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4326, "end": 4333, "ctxt": 0 }, "value": "payload", "optional": true, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4339, "end": 4447, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 4345, "end": 4445, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4349, "end": 4361, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4349, "end": 4353, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 4358, "end": 4361, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 4363, "end": 4397, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4373, "end": 4391, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4373, "end": 4390, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4373, "end": 4388, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4373, "end": 4380, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4381, "end": 4388, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4407, "end": 4445, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4417, "end": 4425, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 4417, "end": 4424, "ctxt": 0 }, "value": "payload", "optional": false } } ] } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 4467, "end": 4475, "ctxt": 0 }, "value": "readFile", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 4476, "end": 4488, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 4476, "end": 4488, "ctxt": 0 }, "value": "path", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4480, "end": 4488, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4482, "end": 4488, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 4490, "end": 4579, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 4490, "end": 4579, "ctxt": 0 }, "value": "callback", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4498, "end": 4579, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4500, "end": 4579, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4501, "end": 4570, "ctxt": 0 }, "rest": { "start": 4501, "end": 4504, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4504, "end": 4508, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4508, "end": 4570, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4510, "end": 4570, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4510, "end": 4538, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4511, "end": 4520, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4511, "end": 4514, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 4516, "end": 4520, "ctxt": 0 }, "kind": "null" } }, { "type": "TsTupleElement", "span": { "start": 4522, "end": 4537, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4522, "end": 4526, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsArrayType", "span": { "start": 4528, "end": 4537, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4528, "end": 4535, "ctxt": 0 }, "kind": "unknown" } } } ] }, { "type": "TsTupleType", "span": { "start": 4541, "end": 4570, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4542, "end": 4552, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4542, "end": 4545, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsTypeReference", "span": { "start": 4547, "end": 4552, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 4547, "end": 4552, "ctxt": 0 }, "value": "Error", "optional": false }, "typeParams": null } }, { "type": "TsTupleElement", "span": { "start": 4554, "end": 4569, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4554, "end": 4558, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 4560, "end": 4569, "ctxt": 0 }, "kind": "undefined" } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4572, "end": 4579, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4575, "end": 4579, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 4450, "end": 4587, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 4580, "end": 4586, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4582, "end": 4586, "ctxt": 0 }, "kind": "void" } } }, { "type": "ExpressionStatement", "span": { "start": 4589, "end": 4716, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4589, "end": 4715, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4589, "end": 4597, "ctxt": 0 }, "value": "readFile", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 4598, "end": 4605, "ctxt": 0 }, "value": "hello", "raw": "'hello'" } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 4607, "end": 4714, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4608, "end": 4611, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4613, "end": 4617, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4622, "end": 4714, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 4628, "end": 4712, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4632, "end": 4644, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4632, "end": 4635, "ctxt": 0 }, "value": "err", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 4640, "end": 4644, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4646, "end": 4674, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4656, "end": 4668, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 4656, "end": 4667, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4656, "end": 4660, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4661, "end": 4667, "ctxt": 0 }, "value": "length", "optional": false } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4684, "end": 4712, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4694, "end": 4706, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 4694, "end": 4705, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4694, "end": 4697, "ctxt": 0 }, "value": "err", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4698, "end": 4705, "ctxt": 0 }, "value": "message", "optional": false } } } ] } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 4718, "end": 4823, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 4723, "end": 4734, "ctxt": 0 }, "value": "ReducerArgs", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4737, "end": 4822, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4737, "end": 4770, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4738, "end": 4743, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4738, "end": 4743, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4738, "end": 4743, "ctxt": 0 }, "value": "add", "raw": "\"add\"" } } }, { "type": "TsTupleElement", "span": { "start": 4745, "end": 4769, "ctxt": 0 }, "label": null, "ty": { "type": "TsTypeLiteral", "span": { "start": 4745, "end": 4769, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 4747, "end": 4757, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4747, "end": 4748, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4748, "end": 4756, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4750, "end": 4756, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 4758, "end": 4767, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4758, "end": 4759, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4759, "end": 4767, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4761, "end": 4767, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } ] }, { "type": "TsTupleType", "span": { "start": 4773, "end": 4822, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4774, "end": 4782, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4774, "end": 4782, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4774, "end": 4782, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" } } }, { "type": "TsTupleElement", "span": { "start": 4784, "end": 4821, "ctxt": 0 }, "label": null, "ty": { "type": "TsTypeLiteral", "span": { "start": 4784, "end": 4821, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 4786, "end": 4802, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4786, "end": 4794, "ctxt": 0 }, "value": "firstArr", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4794, "end": 4801, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 4796, "end": 4801, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4796, "end": 4799, "ctxt": 0 }, "kind": "any" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 4803, "end": 4819, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4803, "end": 4812, "ctxt": 0 }, "value": "secondArr", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4812, "end": 4819, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 4814, "end": 4819, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4814, "end": 4817, "ctxt": 0 }, "kind": "any" } } }, "typeParams": null } ] } } ] } ] } }, { "type": "VariableDeclaration", "span": { "start": 4825, "end": 5100, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4831, "end": 5100, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4831, "end": 4838, "ctxt": 0 }, "value": "reducer", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4838, "end": 4870, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4840, "end": 4870, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4841, "end": 4861, "ctxt": 0 }, "rest": { "start": 4841, "end": 4844, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4844, "end": 4848, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4848, "end": 4861, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 4850, "end": 4861, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 4850, "end": 4861, "ctxt": 0 }, "value": "ReducerArgs", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4863, "end": 4870, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4866, "end": 4870, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 4873, "end": 5100, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4874, "end": 4876, "ctxt": 0 }, "value": "op", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4878, "end": 4882, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4887, "end": 5100, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 4893, "end": 5098, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 4901, "end": 4903, "ctxt": 0 }, "value": "op", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 4915, "end": 4987, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 4920, "end": 4925, "ctxt": 0 }, "value": "add", "raw": "\"add\"" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4939, "end": 4968, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4939, "end": 4967, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4939, "end": 4950, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4939, "end": 4946, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4947, "end": 4950, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 4951, "end": 4966, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 4951, "end": 4957, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4951, "end": 4955, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4956, "end": 4957, "ctxt": 0 }, "value": "a", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 4960, "end": 4966, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4960, "end": 4964, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4965, "end": 4966, "ctxt": 0 }, "value": "b", "optional": false } } } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 4981, "end": 4987, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 4996, "end": 5092, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 5001, "end": 5009, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 5023, "end": 5073, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5023, "end": 5072, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 5023, "end": 5034, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5023, "end": 5030, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5031, "end": 5034, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 5035, "end": 5071, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 5035, "end": 5055, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 5035, "end": 5048, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5035, "end": 5039, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5040, "end": 5048, "ctxt": 0 }, "value": "firstArr", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 5049, "end": 5055, "ctxt": 0 }, "value": "concat", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 5056, "end": 5070, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5056, "end": 5060, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5061, "end": 5070, "ctxt": 0 }, "value": "secondArr", "optional": false } } } ], "typeArguments": null } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 5086, "end": 5092, "ctxt": 0 }, "label": null } ] } ] } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 5102, "end": 5133, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5102, "end": 5132, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5102, "end": 5109, "ctxt": 0 }, "value": "reducer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 5110, "end": 5115, "ctxt": 0 }, "value": "add", "raw": "\"add\"" } }, { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 5117, "end": 5131, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 5119, "end": 5120, "ctxt": 0 }, "value": "a", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 5122, "end": 5123, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 5125, "end": 5126, "ctxt": 0 }, "value": "b", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 5128, "end": 5129, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 5134, "end": 5193, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5134, "end": 5192, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5134, "end": 5141, "ctxt": 0 }, "value": "reducer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 5142, "end": 5150, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" } }, { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 5152, "end": 5191, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 5154, "end": 5162, "ctxt": 0 }, "value": "firstArr", "optional": false }, "value": { "type": "ArrayExpression", "span": { "start": 5164, "end": 5170, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5165, "end": 5166, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5168, "end": 5169, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 5172, "end": 5181, "ctxt": 0 }, "value": "secondArr", "optional": false }, "value": { "type": "ArrayExpression", "span": { "start": 5183, "end": 5189, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5184, "end": 5185, "ctxt": 0 }, "value": 3.0, "raw": "3" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5187, "end": 5188, "ctxt": 0 }, "value": 4.0, "raw": "4" } } ] } } ] } } ], "typeArguments": null } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 5285, "end": 5422, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 5290, "end": 5299, "ctxt": 0 }, "value": "FooMethod", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 5302, "end": 5422, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 5306, "end": 5420, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 5306, "end": 5312, "ctxt": 0 }, "value": "method", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "RestElement", "span": { "start": 5313, "end": 5409, "ctxt": 0 }, "rest": { "start": 5313, "end": 5316, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 5316, "end": 5320, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5320, "end": 5409, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 5326, "end": 5409, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 5326, "end": 5364, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5327, "end": 5338, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5327, "end": 5331, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5333, "end": 5338, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5333, "end": 5338, "ctxt": 0 }, "value": "str", "raw": "\"str\"" } } }, { "type": "TsTupleElement", "span": { "start": 5340, "end": 5363, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5340, "end": 5342, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5344, "end": 5363, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5345, "end": 5354, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5346, "end": 5354, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5348, "end": 5354, "ctxt": 0 }, "kind": "string" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5356, "end": 5363, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5359, "end": 5363, "ctxt": 0 }, "kind": "void" } } } } ] }, { "type": "TsTupleType", "span": { "start": 5371, "end": 5409, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5372, "end": 5383, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5372, "end": 5376, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5378, "end": 5383, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5378, "end": 5383, "ctxt": 0 }, "value": "num", "raw": "\"num\"" } } }, { "type": "TsTupleElement", "span": { "start": 5385, "end": 5408, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5385, "end": 5387, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5389, "end": 5408, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5390, "end": 5399, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5391, "end": 5399, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5393, "end": 5399, "ctxt": 0 }, "kind": "number" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5401, "end": 5408, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5404, "end": 5408, "ctxt": 0 }, "kind": "void" } } } } ] } ] } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 5413, "end": 5419, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5415, "end": 5419, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 5424, "end": 5549, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 5428, "end": 5548, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 5428, "end": 5432, "ctxt": 0 }, "value": "fooM", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5432, "end": 5443, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 5434, "end": 5443, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 5434, "end": 5443, "ctxt": 0 }, "value": "FooMethod", "optional": false }, "typeParams": null } } }, "init": { "type": "ObjectExpression", "span": { "start": 5446, "end": 5548, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 5450, "end": 5456, "ctxt": 0 }, "value": "method", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 5457, "end": 5461, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 5457, "end": 5461, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 5463, "end": 5465, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 5463, "end": 5465, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 5450, "end": 5546, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 5467, "end": 5546, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 5473, "end": 5542, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 5477, "end": 5490, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 5477, "end": 5481, "ctxt": 0 }, "value": "type", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 5485, "end": 5490, "ctxt": 0 }, "value": "num", "raw": "'num'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 5492, "end": 5513, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5500, "end": 5507, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5500, "end": 5507, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5500, "end": 5502, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5503, "end": 5506, "ctxt": 0 }, "value": 123.0, "raw": "123" } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 5519, "end": 5542, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5527, "end": 5536, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5527, "end": 5536, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5527, "end": 5529, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 5530, "end": 5535, "ctxt": 0 }, "value": "abc", "raw": "\"abc\"" } } ], "typeArguments": null } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ] }, "definite": false } ] }, { "type": "TsTypeAliasDeclaration", "span": { "start": 5551, "end": 5701, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 5556, "end": 5570, "ctxt": 0 }, "value": "FooAsyncMethod", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 5573, "end": 5701, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 5577, "end": 5699, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 5577, "end": 5583, "ctxt": 0 }, "value": "method", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "RestElement", "span": { "start": 5584, "end": 5680, "ctxt": 0 }, "rest": { "start": 5584, "end": 5587, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 5587, "end": 5591, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5591, "end": 5680, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 5597, "end": 5680, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 5597, "end": 5635, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5598, "end": 5609, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5598, "end": 5602, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5604, "end": 5609, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5604, "end": 5609, "ctxt": 0 }, "value": "str", "raw": "\"str\"" } } }, { "type": "TsTupleElement", "span": { "start": 5611, "end": 5634, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5611, "end": 5613, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5615, "end": 5634, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5616, "end": 5625, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5617, "end": 5625, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5619, "end": 5625, "ctxt": 0 }, "kind": "string" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5627, "end": 5634, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5630, "end": 5634, "ctxt": 0 }, "kind": "void" } } } } ] }, { "type": "TsTupleType", "span": { "start": 5642, "end": 5680, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5643, "end": 5654, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5643, "end": 5647, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5649, "end": 5654, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5649, "end": 5654, "ctxt": 0 }, "value": "num", "raw": "\"num\"" } } }, { "type": "TsTupleElement", "span": { "start": 5656, "end": 5679, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5656, "end": 5658, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5660, "end": 5679, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5661, "end": 5670, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5662, "end": 5670, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5664, "end": 5670, "ctxt": 0 }, "kind": "number" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5672, "end": 5679, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5675, "end": 5679, "ctxt": 0 }, "kind": "void" } } } } ] } ] } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 5684, "end": 5698, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 5686, "end": 5698, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 5686, "end": 5693, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 5693, "end": 5698, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 5694, "end": 5697, "ctxt": 0 }, "kind": "any" } ] } } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 5703, "end": 5844, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 5707, "end": 5843, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 5707, "end": 5716, "ctxt": 0 }, "value": "fooAsyncM", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5716, "end": 5732, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 5718, "end": 5732, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 5718, "end": 5732, "ctxt": 0 }, "value": "FooAsyncMethod", "optional": false }, "typeParams": null } } }, "init": { "type": "ObjectExpression", "span": { "start": 5735, "end": 5843, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 5745, "end": 5751, "ctxt": 0 }, "value": "method", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 5752, "end": 5756, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 5752, "end": 5756, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 5758, "end": 5760, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 5758, "end": 5760, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 5739, "end": 5841, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 5762, "end": 5841, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 5768, "end": 5837, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 5772, "end": 5785, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 5772, "end": 5776, "ctxt": 0 }, "value": "type", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 5780, "end": 5785, "ctxt": 0 }, "value": "num", "raw": "'num'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 5787, "end": 5808, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5795, "end": 5802, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5795, "end": 5802, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5795, "end": 5797, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 5798, "end": 5801, "ctxt": 0 }, "value": 123.0, "raw": "123" } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 5814, "end": 5837, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5822, "end": 5831, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 5822, "end": 5831, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 5822, "end": 5824, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 5825, "end": 5830, "ctxt": 0 }, "value": "abc", "raw": "\"abc\"" } } ], "typeArguments": null } } ] } } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": null } ] }, "definite": false } ] }, { "type": "TsTypeAliasDeclaration", "span": { "start": 5846, "end": 6006, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 5851, "end": 5863, "ctxt": 0 }, "value": "FooGenMethod", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 5866, "end": 6006, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 5870, "end": 6004, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 5870, "end": 5876, "ctxt": 0 }, "value": "method", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "RestElement", "span": { "start": 5877, "end": 5973, "ctxt": 0 }, "rest": { "start": 5877, "end": 5880, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 5880, "end": 5884, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5884, "end": 5973, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 5890, "end": 5973, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 5890, "end": 5928, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5891, "end": 5902, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5891, "end": 5895, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5897, "end": 5902, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5897, "end": 5902, "ctxt": 0 }, "value": "str", "raw": "\"str\"" } } }, { "type": "TsTupleElement", "span": { "start": 5904, "end": 5927, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5904, "end": 5906, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5908, "end": 5927, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5909, "end": 5918, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5910, "end": 5918, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5912, "end": 5918, "ctxt": 0 }, "kind": "string" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5920, "end": 5927, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5923, "end": 5927, "ctxt": 0 }, "kind": "void" } } } } ] }, { "type": "TsTupleType", "span": { "start": 5935, "end": 5973, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 5936, "end": 5947, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5936, "end": 5940, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 5942, "end": 5947, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 5942, "end": 5947, "ctxt": 0 }, "value": "num", "raw": "\"num\"" } } }, { "type": "TsTupleElement", "span": { "start": 5949, "end": 5972, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 5949, "end": 5951, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 5953, "end": 5972, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 5954, "end": 5963, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5955, "end": 5963, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5957, "end": 5963, "ctxt": 0 }, "kind": "number" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5965, "end": 5972, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 5968, "end": 5972, "ctxt": 0 }, "kind": "void" } } } } ] } ] } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 5977, "end": 6003, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 5979, "end": 6003, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 5979, "end": 5988, "ctxt": 0 }, "value": "Generator", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 5988, "end": 6003, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 5989, "end": 5992, "ctxt": 0 }, "kind": "any" }, { "type": "TsKeywordType", "span": { "start": 5994, "end": 5997, "ctxt": 0 }, "kind": "any" }, { "type": "TsKeywordType", "span": { "start": 5999, "end": 6002, "ctxt": 0 }, "kind": "any" } ] } } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 6008, "end": 6140, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6012, "end": 6139, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6012, "end": 6019, "ctxt": 0 }, "value": "fooGenM", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6019, "end": 6033, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 6021, "end": 6033, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 6021, "end": 6033, "ctxt": 0 }, "value": "FooGenMethod", "optional": false }, "typeParams": null } } }, "init": { "type": "ObjectExpression", "span": { "start": 6036, "end": 6139, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 6041, "end": 6047, "ctxt": 0 }, "value": "method", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 6048, "end": 6052, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 6048, "end": 6052, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 6054, "end": 6056, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 6054, "end": 6056, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 6040, "end": 6137, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 6058, "end": 6137, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 6064, "end": 6133, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6068, "end": 6081, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 6068, "end": 6072, "ctxt": 0 }, "value": "type", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 6076, "end": 6081, "ctxt": 0 }, "value": "num", "raw": "'num'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 6083, "end": 6104, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6091, "end": 6098, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6091, "end": 6098, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 6091, "end": 6093, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 6094, "end": 6097, "ctxt": 0 }, "value": 123.0, "raw": "123" } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 6110, "end": 6133, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6118, "end": 6127, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6118, "end": 6127, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 6118, "end": 6120, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 6121, "end": 6126, "ctxt": 0 }, "value": "abc", "raw": "\"abc\"" } } ], "typeArguments": null } } ] } } ] }, "generator": true, "async": false, "typeParameters": null, "returnType": null } ] }, "definite": false } ] }, { "type": "TsTypeAliasDeclaration", "span": { "start": 6142, "end": 6312, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 6147, "end": 6164, "ctxt": 0 }, "value": "FooAsyncGenMethod", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 6167, "end": 6312, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 6171, "end": 6310, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 6171, "end": 6177, "ctxt": 0 }, "value": "method", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "RestElement", "span": { "start": 6178, "end": 6274, "ctxt": 0 }, "rest": { "start": 6178, "end": 6181, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 6181, "end": 6185, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6185, "end": 6274, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 6191, "end": 6274, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 6191, "end": 6229, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 6192, "end": 6203, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 6192, "end": 6196, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 6198, "end": 6203, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 6198, "end": 6203, "ctxt": 0 }, "value": "str", "raw": "\"str\"" } } }, { "type": "TsTupleElement", "span": { "start": 6205, "end": 6228, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 6205, "end": 6207, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 6209, "end": 6228, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 6210, "end": 6219, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6211, "end": 6219, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 6213, "end": 6219, "ctxt": 0 }, "kind": "string" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6221, "end": 6228, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 6224, "end": 6228, "ctxt": 0 }, "kind": "void" } } } } ] }, { "type": "TsTupleType", "span": { "start": 6236, "end": 6274, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 6237, "end": 6248, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 6237, "end": 6241, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsLiteralType", "span": { "start": 6243, "end": 6248, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 6243, "end": 6248, "ctxt": 0 }, "value": "num", "raw": "\"num\"" } } }, { "type": "TsTupleElement", "span": { "start": 6250, "end": 6273, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 6250, "end": 6252, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsFunctionType", "span": { "start": 6254, "end": 6273, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 6255, "end": 6264, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6256, "end": 6264, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 6258, "end": 6264, "ctxt": 0 }, "kind": "number" } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6266, "end": 6273, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 6269, "end": 6273, "ctxt": 0 }, "kind": "void" } } } } ] } ] } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 6278, "end": 6309, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 6280, "end": 6309, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 6280, "end": 6294, "ctxt": 0 }, "value": "AsyncGenerator", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 6294, "end": 6309, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 6295, "end": 6298, "ctxt": 0 }, "kind": "any" }, { "type": "TsKeywordType", "span": { "start": 6300, "end": 6303, "ctxt": 0 }, "kind": "any" }, { "type": "TsKeywordType", "span": { "start": 6305, "end": 6308, "ctxt": 0 }, "kind": "any" } ] } } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 6314, "end": 6462, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6318, "end": 6461, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6318, "end": 6330, "ctxt": 0 }, "value": "fooAsyncGenM", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6330, "end": 6349, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 6332, "end": 6349, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 6332, "end": 6349, "ctxt": 0 }, "value": "FooAsyncGenMethod", "optional": false }, "typeParams": null } } }, "init": { "type": "ObjectExpression", "span": { "start": 6352, "end": 6461, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 6363, "end": 6369, "ctxt": 0 }, "value": "method", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 6370, "end": 6374, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 6370, "end": 6374, "ctxt": 0 }, "value": "type", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 6376, "end": 6378, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 6376, "end": 6378, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 6356, "end": 6459, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 6380, "end": 6459, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 6386, "end": 6455, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6390, "end": 6403, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 6390, "end": 6394, "ctxt": 0 }, "value": "type", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 6398, "end": 6403, "ctxt": 0 }, "value": "num", "raw": "'num'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 6405, "end": 6426, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6413, "end": 6420, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6413, "end": 6420, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 6413, "end": 6415, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 6416, "end": 6419, "ctxt": 0 }, "value": 123.0, "raw": "123" } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 6432, "end": 6455, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6440, "end": 6449, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6440, "end": 6449, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 6440, "end": 6442, "ctxt": 0 }, "value": "cb", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 6443, "end": 6448, "ctxt": 0 }, "value": "abc", "raw": "\"abc\"" } } ], "typeArguments": null } } ] } } ] }, "generator": true, "async": true, "typeParameters": null, "returnType": null } ] }, "definite": false } ] }, { "type": "TsTypeAliasDeclaration", "span": { "start": 6486, "end": 6560, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 6491, "end": 6495, "ctxt": 0 }, "value": "Func", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 6498, "end": 6559, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 6540, "end": 6550, "ctxt": 0 }, "rest": { "start": 6540, "end": 6543, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 6543, "end": 6547, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6547, "end": 6550, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 6549, "end": 6550, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 6549, "end": 6550, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 6498, "end": 6539, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 6499, "end": 6538, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 6499, "end": 6500, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": { "type": "TsUnionType", "span": { "start": 6509, "end": 6538, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 6509, "end": 6522, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 6510, "end": 6513, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 6510, "end": 6513, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 6510, "end": 6513, "ctxt": 0 }, "value": "a", "raw": "\"a\"" } } }, { "type": "TsTupleElement", "span": { "start": 6515, "end": 6521, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 6515, "end": 6521, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 6525, "end": 6538, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 6526, "end": 6529, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 6526, "end": 6529, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 6526, "end": 6529, "ctxt": 0 }, "value": "b", "raw": "\"b\"" } } }, { "type": "TsTupleElement", "span": { "start": 6531, "end": 6537, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 6531, "end": 6537, "ctxt": 0 }, "kind": "string" } } ] } ] }, "default": null } ] }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6552, "end": 6559, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 6555, "end": 6559, "ctxt": 0 }, "kind": "void" } } } }, { "type": "VariableDeclaration", "span": { "start": 6562, "end": 6741, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6568, "end": 6740, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6568, "end": 6571, "ctxt": 0 }, "value": "f60", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 6571, "end": 6577, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 6573, "end": 6577, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 6573, "end": 6577, "ctxt": 0 }, "value": "Func", "optional": false }, "typeParams": null } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 6580, "end": 6740, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 6581, "end": 6585, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 6587, "end": 6594, "ctxt": 0 }, "value": "payload", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 6599, "end": 6740, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 6605, "end": 6667, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6609, "end": 6621, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 6609, "end": 6613, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 6618, "end": 6621, "ctxt": 0 }, "value": "a", "raw": "\"a\"" } }, "consequent": { "type": "BlockStatement", "span": { "start": 6623, "end": 6667, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6633, "end": 6651, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6633, "end": 6650, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6633, "end": 6648, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6633, "end": 6640, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6641, "end": 6648, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 6672, "end": 6738, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6676, "end": 6688, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 6676, "end": 6680, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 6685, "end": 6688, "ctxt": 0 }, "value": "b", "raw": "\"b\"" } }, "consequent": { "type": "BlockStatement", "span": { "start": 6690, "end": 6738, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6700, "end": 6722, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6700, "end": 6721, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6700, "end": 6719, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6700, "end": 6707, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6708, "end": 6719, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 6774, "end": 6777, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 6778, "end": 7026, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 6778, "end": 7026, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 6784, "end": 6790, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6784, "end": 6790, "ctxt": 0 }, "value": "value1", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 6796, "end": 6816, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6796, "end": 6801, "ctxt": 0 }, "value": "test1", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6804, "end": 6816, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6804, "end": 6810, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6811, "end": 6816, "ctxt": 0 }, "value": "test1", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6822, "end": 6842, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6822, "end": 6827, "ctxt": 0 }, "value": "test2", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6830, "end": 6842, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6830, "end": 6836, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6837, "end": 6842, "ctxt": 0 }, "value": "test2", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6848, "end": 6868, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6848, "end": 6853, "ctxt": 0 }, "value": "test3", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6856, "end": 6868, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6856, "end": 6862, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6863, "end": 6868, "ctxt": 0 }, "value": "test3", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6874, "end": 6894, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6874, "end": 6879, "ctxt": 0 }, "value": "test4", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6882, "end": 6894, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6882, "end": 6888, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6889, "end": 6894, "ctxt": 0 }, "value": "test4", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6900, "end": 6920, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6900, "end": 6905, "ctxt": 0 }, "value": "test5", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6908, "end": 6920, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6908, "end": 6914, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6915, "end": 6920, "ctxt": 0 }, "value": "test5", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6926, "end": 6946, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6926, "end": 6931, "ctxt": 0 }, "value": "test6", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6934, "end": 6946, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6934, "end": 6940, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6941, "end": 6946, "ctxt": 0 }, "value": "test6", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6952, "end": 6972, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6952, "end": 6957, "ctxt": 0 }, "value": "test7", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6960, "end": 6972, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6960, "end": 6966, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6967, "end": 6972, "ctxt": 0 }, "value": "test7", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 6978, "end": 6998, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 6978, "end": 6983, "ctxt": 0 }, "value": "test8", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 6986, "end": 6998, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6986, "end": 6992, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6993, "end": 6998, "ctxt": 0 }, "value": "test8", "optional": false } } }, { "type": "AssignmentPatternProperty", "span": { "start": 7004, "end": 7024, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 7004, "end": 7009, "ctxt": 0 }, "value": "test9", "optional": false }, "value": { "type": "MemberExpression", "span": { "start": 7012, "end": 7024, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7012, "end": 7018, "ctxt": 0 }, "value": "value1", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7019, "end": 7024, "ctxt": 0 }, "value": "test9", "optional": false } } } ], "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 6765, "end": 7030, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 7028, "end": 7030, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7063, "end": 7066, "ctxt": 0 }, "value": "fa1", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 7067, "end": 7102, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 7067, "end": 7102, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7068, "end": 7102, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 7070, "end": 7102, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 7070, "end": 7084, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7071, "end": 7075, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 7071, "end": 7075, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7071, "end": 7075, "ctxt": 0 }, "value": true } } }, { "type": "TsTupleElement", "span": { "start": 7077, "end": 7083, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 7077, "end": 7083, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 7087, "end": 7102, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7088, "end": 7093, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 7088, "end": 7093, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7088, "end": 7093, "ctxt": 0 }, "value": false } } }, { "type": "TsTupleElement", "span": { "start": 7095, "end": 7101, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 7095, "end": 7101, "ctxt": 0 }, "kind": "string" } } ] } ] } } } } ], "decorators": [], "span": { "start": 7054, "end": 7301, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 7104, "end": 7301, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7110, "end": 7135, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7116, "end": 7134, "ctxt": 0 }, "id": { "type": "ArrayPattern", "span": { "start": 7116, "end": 7130, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 7117, "end": 7122, "ctxt": 0 }, "value": "guard", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 7124, "end": 7129, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 7133, "end": 7134, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7140, "end": 7299, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 7144, "end": 7149, "ctxt": 0 }, "value": "guard", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 7151, "end": 7217, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 7161, "end": 7211, "ctxt": 0 }, "init": null, "test": null, "update": null, "body": { "type": "BlockStatement", "span": { "start": 7170, "end": 7211, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7184, "end": 7190, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7184, "end": 7189, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 7227, "end": 7299, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 7237, "end": 7293, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 7244, "end": 7250, "ctxt": 0 }, "operator": "!", "argument": { "type": "UnaryExpression", "span": { "start": 7245, "end": 7250, "ctxt": 0 }, "operator": "!", "argument": { "type": "BooleanLiteral", "span": { "start": 7246, "end": 7250, "ctxt": 0 }, "value": true } } }, "body": { "type": "BlockStatement", "span": { "start": 7252, "end": 7293, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7266, "end": 7272, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7266, "end": 7271, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7312, "end": 7315, "ctxt": 0 }, "value": "fa2", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 7316, "end": 7383, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 7316, "end": 7383, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7317, "end": 7383, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 7319, "end": 7383, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 7319, "end": 7349, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 7321, "end": 7333, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7321, "end": 7326, "ctxt": 0 }, "value": "guard", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7326, "end": 7332, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 7328, "end": 7332, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7328, "end": 7332, "ctxt": 0 }, "value": true } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 7334, "end": 7347, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7334, "end": 7339, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7339, "end": 7347, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 7341, "end": 7347, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 7352, "end": 7383, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 7354, "end": 7367, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7354, "end": 7359, "ctxt": 0 }, "value": "guard", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7359, "end": 7366, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 7361, "end": 7366, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7361, "end": 7366, "ctxt": 0 }, "value": false } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 7368, "end": 7381, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7368, "end": 7373, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7373, "end": 7381, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 7375, "end": 7381, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } ] } } } } ], "decorators": [], "span": { "start": 7303, "end": 7584, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 7385, "end": 7584, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7391, "end": 7418, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7397, "end": 7417, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 7397, "end": 7413, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 7399, "end": 7404, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 7399, "end": 7404, "ctxt": 0 }, "value": "guard", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 7406, "end": 7411, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 7406, "end": 7411, "ctxt": 0 }, "value": "value", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 7416, "end": 7417, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7423, "end": 7582, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 7427, "end": 7432, "ctxt": 0 }, "value": "guard", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 7434, "end": 7500, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 7444, "end": 7494, "ctxt": 0 }, "init": null, "test": null, "update": null, "body": { "type": "BlockStatement", "span": { "start": 7453, "end": 7494, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7467, "end": 7473, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7467, "end": 7472, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 7510, "end": 7582, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 7520, "end": 7576, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 7527, "end": 7533, "ctxt": 0 }, "operator": "!", "argument": { "type": "UnaryExpression", "span": { "start": 7528, "end": 7533, "ctxt": 0 }, "operator": "!", "argument": { "type": "BooleanLiteral", "span": { "start": 7529, "end": 7533, "ctxt": 0 }, "value": true } } }, "body": { "type": "BlockStatement", "span": { "start": 7535, "end": 7576, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7549, "end": 7555, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7549, "end": 7554, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "VariableDeclaration", "span": { "start": 7586, "end": 7836, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7592, "end": 7836, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7592, "end": 7595, "ctxt": 0 }, "value": "fa3", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7595, "end": 7648, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 7597, "end": 7648, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 7598, "end": 7639, "ctxt": 0 }, "rest": { "start": 7598, "end": 7601, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7601, "end": 7605, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7605, "end": 7639, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 7607, "end": 7639, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 7607, "end": 7621, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7608, "end": 7612, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 7608, "end": 7612, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7608, "end": 7612, "ctxt": 0 }, "value": true } } }, { "type": "TsTupleElement", "span": { "start": 7614, "end": 7620, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 7614, "end": 7620, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 7624, "end": 7639, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7625, "end": 7630, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 7625, "end": 7630, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 7625, "end": 7630, "ctxt": 0 }, "value": false } } }, { "type": "TsTupleElement", "span": { "start": 7632, "end": 7638, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 7632, "end": 7638, "ctxt": 0 }, "kind": "string" } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7641, "end": 7648, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 7644, "end": 7648, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 7651, "end": 7836, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 7652, "end": 7657, "ctxt": 0 }, "value": "guard", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 7659, "end": 7664, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 7669, "end": 7836, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 7675, "end": 7834, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 7679, "end": 7684, "ctxt": 0 }, "value": "guard", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 7686, "end": 7752, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 7696, "end": 7746, "ctxt": 0 }, "init": null, "test": null, "update": null, "body": { "type": "BlockStatement", "span": { "start": 7705, "end": 7746, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7719, "end": 7725, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7719, "end": 7724, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 7762, "end": 7834, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 7772, "end": 7828, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 7779, "end": 7785, "ctxt": 0 }, "operator": "!", "argument": { "type": "UnaryExpression", "span": { "start": 7780, "end": 7785, "ctxt": 0 }, "operator": "!", "argument": { "type": "BooleanLiteral", "span": { "start": 7781, "end": 7785, "ctxt": 0 }, "value": true } } }, "body": { "type": "BlockStatement", "span": { "start": 7787, "end": 7828, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 7801, "end": 7807, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 7801, "end": 7806, "ctxt": 0 }, "value": "value", "optional": false } } ] } } ] } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "TsInterfaceDeclaration", "span": { "start": 7860, "end": 7979, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7870, "end": 7882, "ctxt": 0 }, "value": "ClientEvents", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 7883, "end": 7979, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 7889, "end": 7913, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7889, "end": 7893, "ctxt": 0 }, "value": "warn", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7893, "end": 7912, "ctxt": 0 }, "typeAnnotation": { "type": "TsTupleType", "span": { "start": 7895, "end": 7912, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7896, "end": 7911, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 7896, "end": 7903, "ctxt": 0 }, "value": "message", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 7905, "end": 7911, "ctxt": 0 }, "kind": "string" } } ] } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 7918, "end": 7977, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 7918, "end": 7933, "ctxt": 0 }, "value": "shardDisconnect", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7933, "end": 7976, "ctxt": 0 }, "typeAnnotation": { "type": "TsTupleType", "span": { "start": 7935, "end": 7976, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 7936, "end": 7958, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 7936, "end": 7946, "ctxt": 0 }, "value": "closeEvent", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsTypeReference", "span": { "start": 7948, "end": 7958, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 7948, "end": 7958, "ctxt": 0 }, "value": "CloseEvent", "optional": false }, "typeParams": null } }, { "type": "TsTupleElement", "span": { "start": 7960, "end": 7975, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 7960, "end": 7967, "ctxt": 0 }, "value": "shardId", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 7969, "end": 7975, "ctxt": 0 }, "kind": "number" } } ] } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7997, "end": 8003, "ctxt": 0 }, "value": "Client", "optional": false }, "declare": true, "span": { "start": 7983, "end": 8114, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 8010, "end": 8112, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 8017, "end": 8019, "ctxt": 0 }, "value": "on", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 8050, "end": 8058, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8050, "end": 8058, "ctxt": 0 }, "value": "event", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8055, "end": 8058, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8057, "end": 8058, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 8057, "end": 8058, "ctxt": 0 }, "value": "K", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 8060, "end": 8104, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8060, "end": 8104, "ctxt": 0 }, "value": "listener", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8068, "end": 8104, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 8070, "end": 8104, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 8071, "end": 8095, "ctxt": 0 }, "rest": { "start": 8071, "end": 8074, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 8074, "end": 8078, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8078, "end": 8095, "ctxt": 0 }, "typeAnnotation": { "type": "TsIndexedAccessType", "span": { "start": 8080, "end": 8095, "ctxt": 0 }, "readonly": false, "objectType": { "type": "TsTypeReference", "span": { "start": 8080, "end": 8092, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 8080, "end": 8092, "ctxt": 0 }, "value": "ClientEvents", "optional": false }, "typeParams": null }, "indexType": { "type": "TsTypeReference", "span": { "start": 8093, "end": 8094, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 8093, "end": 8094, "ctxt": 0 }, "value": "K", "optional": false }, "typeParams": null } } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8097, "end": 8104, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8100, "end": 8104, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 8010, "end": 8112, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 8019, "end": 8049, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 8020, "end": 8048, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 8020, "end": 8021, "ctxt": 0 }, "value": "K", "optional": false }, "in": false, "out": false, "const": false, "constraint": { "type": "TsTypeOperator", "span": { "start": 8030, "end": 8048, "ctxt": 0 }, "op": "keyof", "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8036, "end": 8048, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 8036, "end": 8048, "ctxt": 0 }, "value": "ClientEvents", "optional": false }, "typeParams": null } }, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 8105, "end": 8111, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8107, "end": 8111, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 8116, "end": 8141, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8122, "end": 8140, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8122, "end": 8125, "ctxt": 0 }, "value": "bot", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 8128, "end": 8140, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 8132, "end": 8138, "ctxt": 0 }, "value": "Client", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 8142, "end": 8281, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 8142, "end": 8280, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8142, "end": 8148, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8142, "end": 8145, "ctxt": 0 }, "value": "bot", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8146, "end": 8148, "ctxt": 0 }, "value": "on", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 8149, "end": 8166, "ctxt": 0 }, "value": "shardDisconnect", "raw": "\"shardDisconnect\"" } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 8168, "end": 8279, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 8169, "end": 8174, "ctxt": 0 }, "value": "event", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 8176, "end": 8181, "ctxt": 0 }, "value": "shard", "optional": false, "typeAnnotation": null } ], "body": { "type": "CallExpression", "span": { "start": 8186, "end": 8279, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8186, "end": 8197, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8186, "end": 8193, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8194, "end": 8197, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "TemplateLiteral", "span": { "start": 8198, "end": 8278, "ctxt": 0 }, "expressions": [ { "type": "Identifier", "span": { "start": 8207, "end": 8212, "ctxt": 0 }, "value": "shard", "optional": false }, { "type": "MemberExpression", "span": { "start": 8230, "end": 8240, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8230, "end": 8235, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8236, "end": 8240, "ctxt": 0 }, "value": "code", "optional": false } }, { "type": "MemberExpression", "span": { "start": 8244, "end": 8258, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8244, "end": 8249, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8250, "end": 8258, "ctxt": 0 }, "value": "wasClean", "optional": false } }, { "type": "MemberExpression", "span": { "start": 8264, "end": 8276, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8264, "end": 8269, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8270, "end": 8276, "ctxt": 0 }, "value": "reason", "optional": false } } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 8199, "end": 8205, "ctxt": 0 }, "tail": false, "cooked": "Shard ", "raw": "Shard " }, { "type": "TemplateElement", "span": { "start": 8213, "end": 8228, "ctxt": 0 }, "tail": false, "cooked": " disconnected (", "raw": " disconnected (" }, { "type": "TemplateElement", "span": { "start": 8241, "end": 8242, "ctxt": 0 }, "tail": false, "cooked": ",", "raw": "," }, { "type": "TemplateElement", "span": { "start": 8259, "end": 8262, "ctxt": 0 }, "tail": false, "cooked": "): ", "raw": "): " }, { "type": "TemplateElement", "span": { "start": 8277, "end": 8277, "ctxt": 0 }, "tail": true, "cooked": "", "raw": "" } ] } } ], "typeArguments": null }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 8282, "end": 8381, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 8282, "end": 8380, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8282, "end": 8288, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8282, "end": 8285, "ctxt": 0 }, "value": "bot", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8286, "end": 8288, "ctxt": 0 }, "value": "on", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 8289, "end": 8306, "ctxt": 0 }, "value": "shardDisconnect", "raw": "\"shardDisconnect\"" } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 8308, "end": 8379, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 8308, "end": 8313, "ctxt": 0 }, "value": "event", "optional": false, "typeAnnotation": null } ], "body": { "type": "CallExpression", "span": { "start": 8317, "end": 8379, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8317, "end": 8328, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8317, "end": 8324, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8325, "end": 8328, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "TemplateLiteral", "span": { "start": 8329, "end": 8378, "ctxt": 0 }, "expressions": [ { "type": "MemberExpression", "span": { "start": 8332, "end": 8342, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8332, "end": 8337, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8338, "end": 8342, "ctxt": 0 }, "value": "code", "optional": false } }, { "type": "MemberExpression", "span": { "start": 8346, "end": 8360, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8346, "end": 8351, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8352, "end": 8360, "ctxt": 0 }, "value": "wasClean", "optional": false } }, { "type": "MemberExpression", "span": { "start": 8364, "end": 8376, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8364, "end": 8369, "ctxt": 0 }, "value": "event", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8370, "end": 8376, "ctxt": 0 }, "value": "reason", "optional": false } } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 8330, "end": 8330, "ctxt": 0 }, "tail": false, "cooked": "", "raw": "" }, { "type": "TemplateElement", "span": { "start": 8343, "end": 8344, "ctxt": 0 }, "tail": false, "cooked": " ", "raw": " " }, { "type": "TemplateElement", "span": { "start": 8361, "end": 8362, "ctxt": 0 }, "tail": false, "cooked": " ", "raw": " " }, { "type": "TemplateElement", "span": { "start": 8377, "end": 8377, "ctxt": 0 }, "tail": true, "cooked": "", "raw": "" } ] } } ], "typeArguments": null }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } } ], "interpreter": null }