{ "type": "Script", "span": { "start": 60, "end": 4787, "ctxt": 0 }, "body": [ { "type": "TsTypeAliasDeclaration", "span": { "start": 60, "end": 148, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 65, "end": 71, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 78, "end": 147, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 80, "end": 110, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 82, "end": 92, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 82, "end": 86, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 86, "end": 91, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 88, "end": 91, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 88, "end": 91, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 93, "end": 108, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 93, "end": 100, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 100, "end": 108, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 102, "end": 108, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 117, "end": 147, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 119, "end": 129, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 119, "end": 123, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 123, "end": 128, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 125, "end": 128, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 125, "end": 128, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 130, "end": 145, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 130, "end": 137, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 137, "end": 145, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 139, "end": 145, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 159, "end": 162, "ctxt": 0 }, "value": "f10", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 163, "end": 188, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 163, "end": 188, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 165, "end": 169, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 165, "end": 169, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 171, "end": 178, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 171, "end": 178, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 180, "end": 188, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 182, "end": 188, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 182, "end": 188, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 150, "end": 311, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 190, "end": 311, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 196, "end": 248, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 200, "end": 212, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 200, "end": 204, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 209, "end": 212, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 214, "end": 248, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 224, "end": 242, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 224, "end": 241, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 224, "end": 239, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 224, "end": 231, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 232, "end": 239, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 253, "end": 309, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 257, "end": 269, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 257, "end": 261, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 266, "end": 269, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 271, "end": 309, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 281, "end": 303, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 281, "end": 302, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 281, "end": 300, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 281, "end": 288, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 289, "end": 300, "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": 322, "end": 325, "ctxt": 0 }, "value": "f11", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 326, "end": 340, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 326, "end": 340, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 332, "end": 340, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 334, "end": 340, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 334, "end": 340, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 313, "end": 501, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 342, "end": 501, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 348, "end": 381, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 354, "end": 380, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 354, "end": 371, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 356, "end": 360, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 356, "end": 360, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 362, "end": 369, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 362, "end": 369, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 374, "end": 380, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 386, "end": 438, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 390, "end": 402, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 390, "end": 394, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 399, "end": 402, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 404, "end": 438, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 414, "end": 432, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 414, "end": 431, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 414, "end": 429, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 414, "end": 421, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 422, "end": 429, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 443, "end": 499, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 447, "end": 459, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 447, "end": 451, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 456, "end": 459, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 461, "end": 499, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 471, "end": 493, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 471, "end": 492, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 471, "end": 490, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 471, "end": 478, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 479, "end": 490, "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": 512, "end": 515, "ctxt": 0 }, "value": "f12", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 516, "end": 541, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 516, "end": 541, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 518, "end": 522, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 518, "end": 522, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 524, "end": 531, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 524, "end": 531, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 533, "end": 541, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 535, "end": 541, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 535, "end": 541, "ctxt": 0 }, "value": "Action", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 503, "end": 760, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 543, "end": 760, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 549, "end": 758, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 557, "end": 561, "ctxt": 0 }, "value": "kind", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 573, "end": 632, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 578, "end": 581, "ctxt": 0 }, "value": "A", "raw": "'A'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 595, "end": 613, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 595, "end": 612, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 595, "end": 610, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 595, "end": 602, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 603, "end": 610, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 626, "end": 632, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 641, "end": 704, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 646, "end": 649, "ctxt": 0 }, "value": "B", "raw": "'B'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 663, "end": 685, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 663, "end": 684, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 663, "end": 682, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 663, "end": 670, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 671, "end": 682, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 698, "end": 704, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 713, "end": 742, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 734, "end": 742, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 734, "end": 741, "ctxt": 0 }, "value": "payload", "optional": false } } ] } ] } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 762, "end": 875, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 767, "end": 774, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 781, "end": 874, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 783, "end": 825, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 785, "end": 795, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 785, "end": 789, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 789, "end": 794, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 791, "end": 794, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 791, "end": 794, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 796, "end": 823, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 796, "end": 803, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 803, "end": 823, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 805, "end": 823, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 805, "end": 811, "ctxt": 0 }, "kind": "number" }, { "type": "TsKeywordType", "span": { "start": 814, "end": 823, "ctxt": 0 }, "kind": "undefined" } ] } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 832, "end": 874, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 834, "end": 844, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 834, "end": 838, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 838, "end": 843, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 840, "end": 843, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 840, "end": 843, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 845, "end": 872, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 845, "end": 852, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 852, "end": 872, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 854, "end": 872, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 854, "end": 860, "ctxt": 0 }, "kind": "string" }, { "type": "TsKeywordType", "span": { "start": 863, "end": 872, "ctxt": 0 }, "kind": "undefined" } ] } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 886, "end": 889, "ctxt": 0 }, "value": "f20", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 890, "end": 916, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 890, "end": 916, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 892, "end": 896, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 892, "end": 896, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 898, "end": 905, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 898, "end": 905, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 907, "end": 916, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 909, "end": 916, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 909, "end": 916, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 877, "end": 1088, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 918, "end": 1088, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 924, "end": 1086, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 928, "end": 935, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 937, "end": 1086, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 947, "end": 1007, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 951, "end": 963, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 951, "end": 955, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 960, "end": 963, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 965, "end": 1007, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 979, "end": 997, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 979, "end": 996, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 979, "end": 994, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 979, "end": 986, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 987, "end": 994, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1016, "end": 1080, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1020, "end": 1032, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1020, "end": 1024, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1029, "end": 1032, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1034, "end": 1080, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1048, "end": 1070, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1048, "end": 1069, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1048, "end": 1067, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1048, "end": 1055, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1056, "end": 1067, "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": 1099, "end": 1102, "ctxt": 0 }, "value": "f21", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1103, "end": 1118, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1103, "end": 1118, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1109, "end": 1118, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1111, "end": 1118, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1111, "end": 1118, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1090, "end": 1328, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1120, "end": 1328, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 1126, "end": 1159, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1132, "end": 1158, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 1132, "end": 1149, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1134, "end": 1138, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1134, "end": 1138, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1140, "end": 1147, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1140, "end": 1147, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 1152, "end": 1158, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 1164, "end": 1326, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 1168, "end": 1175, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 1177, "end": 1326, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1187, "end": 1247, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1191, "end": 1203, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1191, "end": 1195, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1200, "end": 1203, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1205, "end": 1247, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1219, "end": 1237, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1219, "end": 1236, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1219, "end": 1234, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1219, "end": 1226, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1227, "end": 1234, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1256, "end": 1320, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1260, "end": 1272, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1260, "end": 1264, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1269, "end": 1272, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1274, "end": 1320, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1288, "end": 1310, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1288, "end": 1309, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1288, "end": 1307, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1288, "end": 1295, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1296, "end": 1307, "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": 1339, "end": 1342, "ctxt": 0 }, "value": "f22", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1343, "end": 1358, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1343, "end": 1358, "ctxt": 0 }, "value": "action", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1349, "end": 1358, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1351, "end": 1358, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1351, "end": 1358, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1330, "end": 1579, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1360, "end": 1579, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1366, "end": 1577, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 1370, "end": 1384, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1370, "end": 1376, "ctxt": 0 }, "value": "action", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1377, "end": 1384, "ctxt": 0 }, "value": "payload", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 1386, "end": 1577, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 1396, "end": 1429, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1402, "end": 1428, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 1402, "end": 1419, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1404, "end": 1408, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1404, "end": 1408, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1410, "end": 1417, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1410, "end": 1417, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 1422, "end": 1428, "ctxt": 0 }, "value": "action", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 1438, "end": 1498, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1442, "end": 1454, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1442, "end": 1446, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1451, "end": 1454, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1456, "end": 1498, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1470, "end": 1488, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1470, "end": 1487, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1470, "end": 1485, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1470, "end": 1477, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1478, "end": 1485, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 1507, "end": 1571, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 1511, "end": 1523, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 1511, "end": 1515, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 1520, "end": 1523, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 1525, "end": 1571, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1539, "end": 1561, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1539, "end": 1560, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1539, "end": 1558, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1539, "end": 1546, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1547, "end": 1558, "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": 1590, "end": 1593, "ctxt": 0 }, "value": "f23", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 1594, "end": 1620, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 1594, "end": 1620, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 1596, "end": 1600, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1596, "end": 1600, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 1602, "end": 1609, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1602, "end": 1609, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1611, "end": 1620, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1613, "end": 1620, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1613, "end": 1620, "ctxt": 0 }, "value": "Action2", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 1581, "end": 1904, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1622, "end": 1904, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1628, "end": 1902, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 1632, "end": 1639, "ctxt": 0 }, "value": "payload", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 1641, "end": 1902, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 1651, "end": 1896, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 1659, "end": 1663, "ctxt": 0 }, "value": "kind", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 1679, "end": 1746, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 1684, "end": 1687, "ctxt": 0 }, "value": "A", "raw": "'A'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 1705, "end": 1723, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1705, "end": 1722, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1705, "end": 1720, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1705, "end": 1712, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1713, "end": 1720, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 1740, "end": 1746, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 1759, "end": 1830, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 1764, "end": 1767, "ctxt": 0 }, "value": "B", "raw": "'B'" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 1785, "end": 1807, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1785, "end": 1806, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1785, "end": 1804, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1785, "end": 1792, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1793, "end": 1804, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 1824, "end": 1830, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 1843, "end": 1876, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 1868, "end": 1876, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 1868, "end": 1875, "ctxt": 0 }, "value": "payload", "optional": false } } ] } ] } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 1906, "end": 2012, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 1911, "end": 1914, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 1921, "end": 2011, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 1923, "end": 1947, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 1925, "end": 1935, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1925, "end": 1929, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1929, "end": 1934, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1931, "end": 1934, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 1931, "end": 1934, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 1936, "end": 1945, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1936, "end": 1939, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1939, "end": 1945, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1941, "end": 1945, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 1941, "end": 1945, "ctxt": 0 }, "value": true } } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 1954, "end": 1979, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 1956, "end": 1966, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1956, "end": 1960, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1960, "end": 1965, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1962, "end": 1965, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 1962, "end": 1965, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 1967, "end": 1977, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1967, "end": 1970, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1970, "end": 1977, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1972, "end": 1977, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 1972, "end": 1977, "ctxt": 0 }, "value": false } } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 1986, "end": 2011, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 1988, "end": 1998, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1988, "end": 1992, "ctxt": 0 }, "value": "kind", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1992, "end": 1997, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 1994, "end": 1997, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 1994, "end": 1997, "ctxt": 0 }, "value": "C", "raw": "'C'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 1999, "end": 2009, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1999, "end": 2002, "ctxt": 0 }, "value": "isA", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2002, "end": 2009, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2004, "end": 2009, "ctxt": 0 }, "literal": { "type": "BooleanLiteral", "span": { "start": 2004, "end": 2009, "ctxt": 0 }, "value": false } } }, "typeParams": null } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2023, "end": 2026, "ctxt": 0 }, "value": "f30", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2027, "end": 2045, "ctxt": 0 }, "decorators": [], "pat": { "type": "ObjectPattern", "span": { "start": 2027, "end": 2045, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 2029, "end": 2033, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2029, "end": 2033, "ctxt": 0 }, "value": "kind", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 2035, "end": 2038, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2035, "end": 2038, "ctxt": 0 }, "value": "isA", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2040, "end": 2045, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2042, "end": 2045, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2042, "end": 2045, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 2014, "end": 2299, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2047, "end": 2299, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 2053, "end": 2101, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2057, "end": 2069, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2057, "end": 2061, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2066, "end": 2069, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2071, "end": 2101, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2081, "end": 2085, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2081, "end": 2084, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2106, "end": 2155, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2110, "end": 2122, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2110, "end": 2114, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2119, "end": 2122, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2124, "end": 2155, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2134, "end": 2138, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2134, "end": 2137, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2160, "end": 2209, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2164, "end": 2176, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2164, "end": 2168, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2173, "end": 2176, "ctxt": 0 }, "value": "C", "raw": "'C'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2178, "end": 2209, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2188, "end": 2192, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2188, "end": 2191, "ctxt": 0 }, "value": "isA", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2214, "end": 2297, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 2218, "end": 2221, "ctxt": 0 }, "value": "isA", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 2223, "end": 2252, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2233, "end": 2238, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2233, "end": 2237, "ctxt": 0 }, "value": "kind", "optional": false } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 2262, "end": 2297, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2272, "end": 2277, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2272, "end": 2276, "ctxt": 0 }, "value": "kind", "optional": false } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsTypeAliasDeclaration", "span": { "start": 2301, "end": 2342, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 2306, "end": 2310, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 2313, "end": 2342, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 2313, "end": 2326, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 2314, "end": 2317, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 2314, "end": 2317, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2314, "end": 2317, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 2319, "end": 2325, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 2319, "end": 2325, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 2329, "end": 2342, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 2330, "end": 2333, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 2330, "end": 2333, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2330, "end": 2333, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, { "type": "TsTupleElement", "span": { "start": 2335, "end": 2341, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 2335, "end": 2341, "ctxt": 0 }, "kind": "string" } } ] } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2353, "end": 2356, "ctxt": 0 }, "value": "f40", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2357, "end": 2378, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 2357, "end": 2378, "ctxt": 0 }, "rest": { "start": 2357, "end": 2360, "ctxt": 0 }, "argument": { "type": "ArrayPattern", "span": { "start": 2360, "end": 2372, "ctxt": 0 }, "elements": [ { "type": "Identifier", "span": { "start": 2361, "end": 2365, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 2367, "end": 2371, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2372, "end": 2378, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2374, "end": 2378, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2374, "end": 2378, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 2344, "end": 2495, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2380, "end": 2495, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 2386, "end": 2435, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2390, "end": 2402, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2390, "end": 2394, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2399, "end": 2402, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2404, "end": 2435, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2414, "end": 2429, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2414, "end": 2428, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2414, "end": 2426, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2414, "end": 2418, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2419, "end": 2426, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 2440, "end": 2493, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2444, "end": 2456, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2444, "end": 2448, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2453, "end": 2456, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2458, "end": 2493, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2468, "end": 2487, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2468, "end": 2486, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2468, "end": 2484, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2468, "end": 2472, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2473, "end": 2484, "ctxt": 0 }, "value": "toUpperCase", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsInterfaceDeclaration", "span": { "start": 2519, "end": 2560, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2529, "end": 2530, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 2530, "end": 2533, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2531, "end": 2532, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2531, "end": 2532, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 2534, "end": 2560, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 2536, "end": 2549, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2536, "end": 2543, "ctxt": 0 }, "value": "variant", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2543, "end": 2548, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2545, "end": 2548, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2545, "end": 2548, "ctxt": 0 }, "value": "a", "raw": "'a'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2550, "end": 2558, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2550, "end": 2555, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2555, "end": 2558, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2557, "end": 2558, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2557, "end": 2558, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 2562, "end": 2610, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2572, "end": 2573, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 2573, "end": 2576, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2574, "end": 2575, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2574, "end": 2575, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 2577, "end": 2610, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 2579, "end": 2592, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2579, "end": 2586, "ctxt": 0 }, "value": "variant", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2586, "end": 2591, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2588, "end": 2591, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2588, "end": 2591, "ctxt": 0 }, "value": "b", "raw": "'b'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2593, "end": 2608, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2593, "end": 2598, "ctxt": 0 }, "value": "value", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2598, "end": 2608, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2600, "end": 2608, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2600, "end": 2605, "ctxt": 0 }, "value": "Array", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 2605, "end": 2608, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2606, "end": 2607, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2606, "end": 2607, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "typeParams": null } ] } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 2612, "end": 2637, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 2617, "end": 2619, "ctxt": 0 }, "value": "AB", "optional": false }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 2619, "end": 2622, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2620, "end": 2621, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2620, "end": 2621, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 2625, "end": 2636, "ctxt": 0 }, "types": [ { "type": "TsTypeReference", "span": { "start": 2625, "end": 2629, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2625, "end": 2626, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 2626, "end": 2629, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2627, "end": 2628, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2627, "end": 2628, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } }, { "type": "TsTypeReference", "span": { "start": 2632, "end": 2636, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2632, "end": 2633, "ctxt": 0 }, "value": "B", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 2633, "end": 2636, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2634, "end": 2635, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2634, "end": 2635, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2656, "end": 2666, "ctxt": 0 }, "value": "printValue", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 2670, "end": 2674, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2670, "end": 2674, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2671, "end": 2674, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2673, "end": 2674, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2673, "end": 2674, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 2639, "end": 2682, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 2666, "end": 2669, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2667, "end": 2668, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2667, "end": 2668, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2675, "end": 2681, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2677, "end": 2681, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2701, "end": 2715, "ctxt": 0 }, "value": "printValueList", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 2719, "end": 2730, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2719, "end": 2730, "ctxt": 0 }, "value": "t", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2720, "end": 2730, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2722, "end": 2730, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2722, "end": 2727, "ctxt": 0 }, "value": "Array", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 2727, "end": 2730, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2728, "end": 2729, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2728, "end": 2729, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } } } ], "decorators": [], "span": { "start": 2684, "end": 2738, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 2715, "end": 2718, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2716, "end": 2717, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2716, "end": 2717, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2731, "end": 2737, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2733, "end": 2737, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2749, "end": 2759, "ctxt": 0 }, "value": "unrefined1", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2763, "end": 2772, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2763, "end": 2772, "ctxt": 0 }, "value": "ab", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2765, "end": 2772, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2767, "end": 2772, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2767, "end": 2769, "ctxt": 0 }, "value": "AB", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 2769, "end": 2772, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2770, "end": 2771, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2770, "end": 2771, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } } } ], "decorators": [], "span": { "start": 2740, "end": 2932, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2780, "end": 2932, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 2786, "end": 2816, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2792, "end": 2815, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 2792, "end": 2810, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 2794, "end": 2801, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2794, "end": 2801, "ctxt": 0 }, "value": "variant", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 2803, "end": 2808, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2803, "end": 2808, "ctxt": 0 }, "value": "value", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 2813, "end": 2815, "ctxt": 0 }, "value": "ab", "optional": false }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 2821, "end": 2930, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2825, "end": 2840, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 2825, "end": 2832, "ctxt": 0 }, "value": "variant", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 2837, "end": 2840, "ctxt": 0 }, "value": "a", "raw": "'a'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 2842, "end": 2879, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2852, "end": 2873, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2852, "end": 2872, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 2852, "end": 2862, "ctxt": 0 }, "value": "printValue", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2866, "end": 2871, "ctxt": 0 }, "value": "value", "optional": false } } ], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 2862, "end": 2865, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2863, "end": 2864, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2863, "end": 2864, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 2889, "end": 2930, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2899, "end": 2924, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2899, "end": 2923, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 2899, "end": 2913, "ctxt": 0 }, "value": "printValueList", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2917, "end": 2922, "ctxt": 0 }, "value": "value", "optional": false } } ], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 2913, "end": 2916, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 2914, "end": 2915, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2914, "end": 2915, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } } ] } } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 2759, "end": 2762, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 2760, "end": 2761, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 2760, "end": 2761, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2773, "end": 2779, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2775, "end": 2779, "ctxt": 0 }, "kind": "void" } } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 2956, "end": 3075, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 2961, "end": 2968, "ctxt": 0 }, "value": "Action3", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 2975, "end": 3074, "ctxt": 0 }, "types": [ { "type": "TsTypeLiteral", "span": { "start": 2977, "end": 3019, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 2978, "end": 2990, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2978, "end": 2982, "ctxt": 0 }, "value": "type", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2982, "end": 2989, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 2984, "end": 2989, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 2984, "end": 2989, "ctxt": 0 }, "value": "add", "raw": "'add'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 2991, "end": 3017, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 2991, "end": 2998, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2998, "end": 3017, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 3000, "end": 3017, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3002, "end": 3015, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3002, "end": 3007, "ctxt": 0 }, "value": "toAdd", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3007, "end": 3015, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3009, "end": 3015, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] }, { "type": "TsTypeLiteral", "span": { "start": 3026, "end": 3074, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3027, "end": 3042, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3027, "end": 3031, "ctxt": 0 }, "value": "type", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3031, "end": 3041, "ctxt": 0 }, "typeAnnotation": { "type": "TsLiteralType", "span": { "start": 3033, "end": 3041, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3033, "end": 3041, "ctxt": 0 }, "value": "remove", "raw": "'remove'" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 3043, "end": 3072, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3043, "end": 3050, "ctxt": 0 }, "value": "payload", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3050, "end": 3072, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 3052, "end": 3072, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 3054, "end": 3070, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 3054, "end": 3062, "ctxt": 0 }, "value": "toRemove", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3062, "end": 3070, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3064, "end": 3070, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } ] } }, { "type": "VariableDeclaration", "span": { "start": 3077, "end": 3305, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3083, "end": 3305, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3083, "end": 3096, "ctxt": 0 }, "value": "reducerBroken", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 3099, "end": 3305, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3100, "end": 3113, "ctxt": 0 }, "value": "state", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3105, "end": 3113, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3107, "end": 3113, "ctxt": 0 }, "kind": "number" } } }, { "type": "ObjectPattern", "span": { "start": 3115, "end": 3141, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 3117, "end": 3121, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3117, "end": 3121, "ctxt": 0 }, "value": "type", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 3123, "end": 3130, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3123, "end": 3130, "ctxt": 0 }, "value": "payload", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3132, "end": 3141, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3134, "end": 3141, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3134, "end": 3141, "ctxt": 0 }, "value": "Action3", "optional": false }, "typeParams": null } } } ], "body": { "type": "BlockStatement", "span": { "start": 3146, "end": 3305, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 3152, "end": 3303, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 3160, "end": 3164, "ctxt": 0 }, "value": "type", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 3176, "end": 3229, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 3181, "end": 3186, "ctxt": 0 }, "value": "add", "raw": "'add'" }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 3200, "end": 3229, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 3207, "end": 3228, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 3207, "end": 3212, "ctxt": 0 }, "value": "state", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 3215, "end": 3228, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3215, "end": 3222, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3223, "end": 3228, "ctxt": 0 }, "value": "toAdd", "optional": false } } } } ] }, { "type": "SwitchCase", "span": { "start": 3238, "end": 3297, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 3243, "end": 3251, "ctxt": 0 }, "value": "remove", "raw": "'remove'" }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 3265, "end": 3297, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 3272, "end": 3296, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 3272, "end": 3277, "ctxt": 0 }, "value": "state", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 3280, "end": 3296, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3280, "end": 3287, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3288, "end": 3296, "ctxt": 0 }, "value": "toRemove", "optional": false } } } } ] } ] } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3329, "end": 3362, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3341, "end": 3361, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3341, "end": 3343, "ctxt": 0 }, "value": "it", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3343, "end": 3361, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3345, "end": 3361, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3345, "end": 3353, "ctxt": 0 }, "value": "Iterator", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 3353, "end": 3361, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 3354, "end": 3360, "ctxt": 0 }, "kind": "number" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3363, "end": 3397, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3369, "end": 3396, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 3369, "end": 3384, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 3371, "end": 3376, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3371, "end": 3376, "ctxt": 0 }, "value": "value", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 3378, "end": 3382, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 3378, "end": 3382, "ctxt": 0 }, "value": "done", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 3387, "end": 3396, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3387, "end": 3394, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3387, "end": 3389, "ctxt": 0 }, "value": "it", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3390, "end": 3394, "ctxt": 0 }, "value": "next", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 3398, "end": 3434, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 3402, "end": 3407, "ctxt": 0 }, "operator": "!", "argument": { "type": "Identifier", "span": { "start": 3403, "end": 3407, "ctxt": 0 }, "value": "done", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 3409, "end": 3434, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3415, "end": 3421, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 3415, "end": 3420, "ctxt": 0 }, "value": "value", "optional": false } } ] }, "alternate": null }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3475, "end": 3478, "ctxt": 0 }, "value": "f50", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 3479, "end": 3506, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3479, "end": 3506, "ctxt": 0 }, "value": "cb", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3481, "end": 3506, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 3483, "end": 3506, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 3484, "end": 3497, "ctxt": 0 }, "rest": { "start": 3484, "end": 3487, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3487, "end": 3491, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3491, "end": 3497, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3493, "end": 3497, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3493, "end": 3497, "ctxt": 0 }, "value": "Args", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3499, "end": 3506, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3502, "end": 3506, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 3458, "end": 3513, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3507, "end": 3513, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3509, "end": 3513, "ctxt": 0 }, "kind": "void" } } }, { "type": "ExpressionStatement", "span": { "start": 3515, "end": 3652, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3515, "end": 3651, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3515, "end": 3518, "ctxt": 0 }, "value": "f50", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 3519, "end": 3650, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3520, "end": 3524, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 3526, "end": 3530, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 3535, "end": 3650, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 3541, "end": 3590, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3545, "end": 3557, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3545, "end": 3549, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3554, "end": 3557, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3559, "end": 3590, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3569, "end": 3584, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3569, "end": 3583, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3569, "end": 3581, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3569, "end": 3573, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3574, "end": 3581, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 3595, "end": 3648, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3599, "end": 3611, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3599, "end": 3603, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3608, "end": 3611, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3613, "end": 3648, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3623, "end": 3642, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3623, "end": 3641, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3623, "end": 3639, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3623, "end": 3627, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3628, "end": 3639, "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": 3654, "end": 3857, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3660, "end": 3856, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3660, "end": 3663, "ctxt": 0 }, "value": "f51", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3663, "end": 3713, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 3665, "end": 3713, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 3666, "end": 3704, "ctxt": 0 }, "rest": { "start": 3666, "end": 3669, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3669, "end": 3673, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3673, "end": 3704, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 3675, "end": 3704, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 3675, "end": 3688, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 3676, "end": 3679, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 3676, "end": 3679, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3676, "end": 3679, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 3681, "end": 3687, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 3681, "end": 3687, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 3691, "end": 3704, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 3692, "end": 3695, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 3692, "end": 3695, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3692, "end": 3695, "ctxt": 0 }, "value": "B", "raw": "'B'" } } }, { "type": "TsTupleElement", "span": { "start": 3697, "end": 3703, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 3697, "end": 3703, "ctxt": 0 }, "kind": "string" } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3706, "end": 3713, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3709, "end": 3713, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 3716, "end": 3856, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3717, "end": 3721, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 3723, "end": 3730, "ctxt": 0 }, "value": "payload", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 3735, "end": 3856, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 3741, "end": 3793, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3745, "end": 3757, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3745, "end": 3749, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3754, "end": 3757, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3759, "end": 3793, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3769, "end": 3787, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3769, "end": 3786, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3769, "end": 3784, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3769, "end": 3776, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3777, "end": 3784, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 3798, "end": 3854, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3802, "end": 3814, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3802, "end": 3806, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3811, "end": 3814, "ctxt": 0 }, "value": "B", "raw": "'B'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3816, "end": 3854, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3826, "end": 3848, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3826, "end": 3847, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3826, "end": 3845, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3826, "end": 3833, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3834, "end": 3845, "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": 3859, "end": 4042, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3865, "end": 4041, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3865, "end": 3868, "ctxt": 0 }, "value": "f52", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3868, "end": 3910, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 3870, "end": 3910, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 3871, "end": 3901, "ctxt": 0 }, "rest": { "start": 3871, "end": 3874, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3874, "end": 3878, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3878, "end": 3901, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 3880, "end": 3901, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 3880, "end": 3893, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 3881, "end": 3884, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 3881, "end": 3884, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3881, "end": 3884, "ctxt": 0 }, "value": "A", "raw": "'A'" } } }, { "type": "TsTupleElement", "span": { "start": 3886, "end": 3892, "ctxt": 0 }, "label": null, "ty": { "type": "TsKeywordType", "span": { "start": 3886, "end": 3892, "ctxt": 0 }, "kind": "number" } } ] }, { "type": "TsTupleType", "span": { "start": 3896, "end": 3901, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 3897, "end": 3900, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 3897, "end": 3900, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 3897, "end": 3900, "ctxt": 0 }, "value": "B", "raw": "'B'" } } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3903, "end": 3910, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3906, "end": 3910, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 3913, "end": 4041, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3914, "end": 3918, "ctxt": 0 }, "value": "kind", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 3920, "end": 3927, "ctxt": 0 }, "value": "payload", "optional": true, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 3933, "end": 4041, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 3939, "end": 4039, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3943, "end": 3955, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 3943, "end": 3947, "ctxt": 0 }, "value": "kind", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3952, "end": 3955, "ctxt": 0 }, "value": "A", "raw": "'A'" } }, "consequent": { "type": "BlockStatement", "span": { "start": 3957, "end": 3991, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 3967, "end": 3985, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3967, "end": 3984, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3967, "end": 3982, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3967, "end": 3974, "ctxt": 0 }, "value": "payload", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3975, "end": 3982, "ctxt": 0 }, "value": "toFixed", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4001, "end": 4039, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4011, "end": 4019, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 4011, "end": 4018, "ctxt": 0 }, "value": "payload", "optional": false } } ] } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 4061, "end": 4069, "ctxt": 0 }, "value": "readFile", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 4070, "end": 4082, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 4070, "end": 4082, "ctxt": 0 }, "value": "path", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4074, "end": 4082, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4076, "end": 4082, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 4084, "end": 4173, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 4084, "end": 4173, "ctxt": 0 }, "value": "callback", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4092, "end": 4173, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4094, "end": 4173, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4095, "end": 4164, "ctxt": 0 }, "rest": { "start": 4095, "end": 4098, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4098, "end": 4102, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4102, "end": 4164, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4104, "end": 4164, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4104, "end": 4132, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4105, "end": 4114, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4105, "end": 4108, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 4110, "end": 4114, "ctxt": 0 }, "kind": "null" } }, { "type": "TsTupleElement", "span": { "start": 4116, "end": 4131, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4116, "end": 4120, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsArrayType", "span": { "start": 4122, "end": 4131, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4122, "end": 4129, "ctxt": 0 }, "kind": "unknown" } } } ] }, { "type": "TsTupleType", "span": { "start": 4135, "end": 4164, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4136, "end": 4146, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4136, "end": 4139, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsTypeReference", "span": { "start": 4141, "end": 4146, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 4141, "end": 4146, "ctxt": 0 }, "value": "Error", "optional": false }, "typeParams": null } }, { "type": "TsTupleElement", "span": { "start": 4148, "end": 4163, "ctxt": 0 }, "label": { "type": "Identifier", "span": { "start": 4148, "end": 4152, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null }, "ty": { "type": "TsKeywordType", "span": { "start": 4154, "end": 4163, "ctxt": 0 }, "kind": "undefined" } } ] } ] } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4166, "end": 4173, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4169, "end": 4173, "ctxt": 0 }, "kind": "void" } } } } } } ], "decorators": [], "span": { "start": 4044, "end": 4181, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 4174, "end": 4180, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4176, "end": 4180, "ctxt": 0 }, "kind": "void" } } }, { "type": "ExpressionStatement", "span": { "start": 4183, "end": 4310, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4183, "end": 4309, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4183, "end": 4191, "ctxt": 0 }, "value": "readFile", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 4192, "end": 4199, "ctxt": 0 }, "value": "hello", "raw": "'hello'" } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 4201, "end": 4308, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4202, "end": 4205, "ctxt": 0 }, "value": "err", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4207, "end": 4211, "ctxt": 0 }, "value": "data", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4216, "end": 4308, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 4222, "end": 4306, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4226, "end": 4238, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 4226, "end": 4229, "ctxt": 0 }, "value": "err", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 4234, "end": 4238, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4240, "end": 4268, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4250, "end": 4262, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 4250, "end": 4261, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4250, "end": 4254, "ctxt": 0 }, "value": "data", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4255, "end": 4261, "ctxt": 0 }, "value": "length", "optional": false } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4278, "end": 4306, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4288, "end": 4300, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 4288, "end": 4299, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4288, "end": 4291, "ctxt": 0 }, "value": "err", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4292, "end": 4299, "ctxt": 0 }, "value": "message", "optional": false } } } ] } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "TsTypeAliasDeclaration", "span": { "start": 4312, "end": 4417, "ctxt": 0 }, "declare": false, "id": { "type": "Identifier", "span": { "start": 4317, "end": 4328, "ctxt": 0 }, "value": "ReducerArgs", "optional": false }, "typeParams": null, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 4331, "end": 4416, "ctxt": 0 }, "types": [ { "type": "TsTupleType", "span": { "start": 4331, "end": 4364, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4332, "end": 4337, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4332, "end": 4337, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4332, "end": 4337, "ctxt": 0 }, "value": "add", "raw": "\"add\"" } } }, { "type": "TsTupleElement", "span": { "start": 4339, "end": 4363, "ctxt": 0 }, "label": null, "ty": { "type": "TsTypeLiteral", "span": { "start": 4339, "end": 4363, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 4341, "end": 4351, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4341, "end": 4342, "ctxt": 0 }, "value": "a", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4342, "end": 4350, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4344, "end": 4350, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 4352, "end": 4361, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4352, "end": 4353, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4353, "end": 4361, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4355, "end": 4361, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } ] }, { "type": "TsTupleType", "span": { "start": 4367, "end": 4416, "ctxt": 0 }, "elemTypes": [ { "type": "TsTupleElement", "span": { "start": 4368, "end": 4376, "ctxt": 0 }, "label": null, "ty": { "type": "TsLiteralType", "span": { "start": 4368, "end": 4376, "ctxt": 0 }, "literal": { "type": "StringLiteral", "span": { "start": 4368, "end": 4376, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" } } }, { "type": "TsTupleElement", "span": { "start": 4378, "end": 4415, "ctxt": 0 }, "label": null, "ty": { "type": "TsTypeLiteral", "span": { "start": 4378, "end": 4415, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 4380, "end": 4396, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4380, "end": 4388, "ctxt": 0 }, "value": "firstArr", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4388, "end": 4395, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 4390, "end": 4395, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4390, "end": 4393, "ctxt": 0 }, "kind": "any" } } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 4397, "end": 4413, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 4397, "end": 4406, "ctxt": 0 }, "value": "secondArr", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4406, "end": 4413, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 4408, "end": 4413, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 4408, "end": 4411, "ctxt": 0 }, "kind": "any" } } }, "typeParams": null } ] } } ] } ] } }, { "type": "VariableDeclaration", "span": { "start": 4419, "end": 4694, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4425, "end": 4694, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4425, "end": 4432, "ctxt": 0 }, "value": "reducer", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4432, "end": 4464, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 4434, "end": 4464, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 4435, "end": 4455, "ctxt": 0 }, "rest": { "start": 4435, "end": 4438, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4438, "end": 4442, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4442, "end": 4455, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 4444, "end": 4455, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 4444, "end": 4455, "ctxt": 0 }, "value": "ReducerArgs", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 4457, "end": 4464, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 4460, "end": 4464, "ctxt": 0 }, "kind": "void" } } } } }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 4467, "end": 4694, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 4468, "end": 4470, "ctxt": 0 }, "value": "op", "optional": false, "typeAnnotation": null }, { "type": "Identifier", "span": { "start": 4472, "end": 4476, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 4481, "end": 4694, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 4487, "end": 4692, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 4495, "end": 4497, "ctxt": 0 }, "value": "op", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 4509, "end": 4581, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 4514, "end": 4519, "ctxt": 0 }, "value": "add", "raw": "\"add\"" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4533, "end": 4562, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4533, "end": 4561, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4533, "end": 4544, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4533, "end": 4540, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4541, "end": 4544, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 4545, "end": 4560, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 4545, "end": 4551, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4545, "end": 4549, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4550, "end": 4551, "ctxt": 0 }, "value": "a", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 4554, "end": 4560, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4554, "end": 4558, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4559, "end": 4560, "ctxt": 0 }, "value": "b", "optional": false } } } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 4575, "end": 4581, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 4590, "end": 4686, "ctxt": 0 }, "test": { "type": "StringLiteral", "span": { "start": 4595, "end": 4603, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4617, "end": 4667, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4617, "end": 4666, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4617, "end": 4628, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4617, "end": 4624, "ctxt": 0 }, "value": "console", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4625, "end": 4628, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 4629, "end": 4665, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4629, "end": 4649, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4629, "end": 4642, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4629, "end": 4633, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4634, "end": 4642, "ctxt": 0 }, "value": "firstArr", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4643, "end": 4649, "ctxt": 0 }, "value": "concat", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 4650, "end": 4664, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4650, "end": 4654, "ctxt": 0 }, "value": "args", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4655, "end": 4664, "ctxt": 0 }, "value": "secondArr", "optional": false } } } ], "typeArguments": null } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 4680, "end": 4686, "ctxt": 0 }, "label": null } ] } ] } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 4696, "end": 4727, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4696, "end": 4726, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4696, "end": 4703, "ctxt": 0 }, "value": "reducer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 4704, "end": 4709, "ctxt": 0 }, "value": "add", "raw": "\"add\"" } }, { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 4711, "end": 4725, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 4713, "end": 4714, "ctxt": 0 }, "value": "a", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 4716, "end": 4717, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 4719, "end": 4720, "ctxt": 0 }, "value": "b", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 4722, "end": 4723, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ] } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 4728, "end": 4787, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4728, "end": 4786, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4728, "end": 4735, "ctxt": 0 }, "value": "reducer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 4736, "end": 4744, "ctxt": 0 }, "value": "concat", "raw": "\"concat\"" } }, { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 4746, "end": 4785, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 4748, "end": 4756, "ctxt": 0 }, "value": "firstArr", "optional": false }, "value": { "type": "ArrayExpression", "span": { "start": 4758, "end": 4764, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 4759, "end": 4760, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 4762, "end": 4763, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 4766, "end": 4775, "ctxt": 0 }, "value": "secondArr", "optional": false }, "value": { "type": "ArrayExpression", "span": { "start": 4777, "end": 4783, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 4778, "end": 4779, "ctxt": 0 }, "value": 3.0, "raw": "3" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 4781, "end": 4782, "ctxt": 0 }, "value": 4.0, "raw": "4" } } ] } } ] } } ], "typeArguments": null } } ], "interpreter": null }