{ "type": "Script", "span": { "start": 211, "end": 4814, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 211, "end": 4814, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 218, "end": 228, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 229, "end": 4814, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 235, "end": 994, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 242, "end": 994, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 249, "end": 268, "ctxt": 0 }, "value": "CompilerDiagnostics", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 269, "end": 994, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 279, "end": 304, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 286, "end": 304, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 290, "end": 303, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 290, "end": 295, "ctxt": 0 }, "value": "debug", "optional": false, "typeAnnotation": null }, "init": { "type": "BooleanLiteral", "span": { "start": 298, "end": 303, "ctxt": 0 }, "value": false }, "definite": false } ] } }, { "type": "ExportDeclaration", "span": { "start": 313, "end": 400, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 320, "end": 400, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 330, "end": 347, "ctxt": 0 }, "value": "IDiagnosticWriter", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 348, "end": 400, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 362, "end": 390, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 362, "end": 367, "ctxt": 0 }, "value": "Alert", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 368, "end": 382, "ctxt": 0 }, "value": "output", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 374, "end": 382, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 376, "end": 382, "ctxt": 0 }, "kind": "string" } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 383, "end": 389, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 385, "end": 389, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 410, "end": 464, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 417, "end": 464, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 421, "end": 463, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 421, "end": 437, "ctxt": 0 }, "value": "diagnosticWriter", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 437, "end": 456, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 439, "end": 456, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 439, "end": 456, "ctxt": 0 }, "value": "IDiagnosticWriter", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 459, "end": 463, "ctxt": 0 } }, "definite": false } ] } }, { "type": "ExportDeclaration", "span": { "start": 474, "end": 510, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 481, "end": 510, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 485, "end": 509, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 485, "end": 497, "ctxt": 0 }, "value": "analysisPass", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 497, "end": 505, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 499, "end": 505, "ctxt": 0 }, "kind": "number" } } }, "init": { "type": "NumericLiteral", "span": { "start": 508, "end": 509, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] } }, { "type": "ExportDeclaration", "span": { "start": 520, "end": 667, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 536, "end": 541, "ctxt": 0 }, "value": "Alert", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 542, "end": 556, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 542, "end": 556, "ctxt": 0 }, "value": "output", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 548, "end": 556, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 550, "end": 556, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 527, "end": 667, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 558, "end": 667, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 572, "end": 657, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 576, "end": 592, "ctxt": 0 }, "value": "diagnosticWriter", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 594, "end": 657, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 612, "end": 643, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 612, "end": 642, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 612, "end": 634, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 612, "end": 628, "ctxt": 0 }, "value": "diagnosticWriter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 629, "end": 634, "ctxt": 0 }, "value": "Alert", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 635, "end": 641, "ctxt": 0 }, "value": "output", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } }, { "type": "ExportDeclaration", "span": { "start": 677, "end": 791, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 693, "end": 703, "ctxt": 0 }, "value": "debugPrint", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 704, "end": 713, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 704, "end": 713, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 705, "end": 713, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 707, "end": 713, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 684, "end": 791, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 715, "end": 791, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 729, "end": 781, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 733, "end": 738, "ctxt": 0 }, "value": "debug", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 740, "end": 781, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 758, "end": 767, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 758, "end": 766, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 758, "end": 763, "ctxt": 0 }, "value": "Alert", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 764, "end": 765, "ctxt": 0 }, "value": "s", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } }, { "type": "ExportDeclaration", "span": { "start": 801, "end": 987, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 817, "end": 823, "ctxt": 0 }, "value": "assert", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 824, "end": 842, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 824, "end": 842, "ctxt": 0 }, "value": "condition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 833, "end": 842, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 835, "end": 842, "ctxt": 0 }, "kind": "boolean" } } } }, { "type": "Parameter", "span": { "start": 844, "end": 853, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 844, "end": 853, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 845, "end": 853, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 847, "end": 853, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 808, "end": 987, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 855, "end": 987, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 869, "end": 977, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 873, "end": 878, "ctxt": 0 }, "value": "debug", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 880, "end": 977, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 898, "end": 963, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 902, "end": 912, "ctxt": 0 }, "operator": "!", "argument": { "type": "Identifier", "span": { "start": 903, "end": 912, "ctxt": 0 }, "value": "condition", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 914, "end": 963, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 936, "end": 945, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 936, "end": 944, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 936, "end": 941, "ctxt": 0 }, "value": "Alert", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 942, "end": 943, "ctxt": 0 }, "value": "s", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ] } } }, { "type": "ExportDeclaration", "span": { "start": 1000, "end": 1200, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 1007, "end": 1200, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 1017, "end": 1024, "ctxt": 0 }, "value": "ILogger", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 1025, "end": 1200, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 1035, "end": 1058, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1035, "end": 1046, "ctxt": 0 }, "value": "information", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1048, "end": 1057, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1050, "end": 1057, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 1067, "end": 1084, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1067, "end": 1072, "ctxt": 0 }, "value": "debug", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1074, "end": 1083, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1076, "end": 1083, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 1093, "end": 1112, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1093, "end": 1100, "ctxt": 0 }, "value": "warning", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1102, "end": 1111, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1104, "end": 1111, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 1121, "end": 1138, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1121, "end": 1126, "ctxt": 0 }, "value": "error", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1128, "end": 1137, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1130, "end": 1137, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 1147, "end": 1164, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1147, "end": 1152, "ctxt": 0 }, "value": "fatal", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1154, "end": 1163, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1156, "end": 1163, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 1173, "end": 1194, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 1173, "end": 1176, "ctxt": 0 }, "value": "log", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 1177, "end": 1186, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1178, "end": 1186, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1180, "end": 1186, "ctxt": 0 }, "kind": "string" } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 1187, "end": 1193, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1189, "end": 1193, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 1206, "end": 1562, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1219, "end": 1229, "ctxt": 0 }, "value": "NullLogger", "optional": false }, "declare": false, "span": { "start": 1213, "end": 1562, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 1259, "end": 1306, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1266, "end": 1277, "ctxt": 0 }, "value": "information", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1259, "end": 1306, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1289, "end": 1306, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1291, "end": 1304, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1298, "end": 1303, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1279, "end": 1288, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1281, "end": 1288, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 1315, "end": 1356, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1322, "end": 1327, "ctxt": 0 }, "value": "debug", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1315, "end": 1356, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1339, "end": 1356, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1341, "end": 1354, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1348, "end": 1353, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1329, "end": 1338, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1331, "end": 1338, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 1365, "end": 1408, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1372, "end": 1379, "ctxt": 0 }, "value": "warning", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1365, "end": 1408, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1391, "end": 1408, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1393, "end": 1406, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1400, "end": 1405, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1381, "end": 1390, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1383, "end": 1390, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 1417, "end": 1458, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1424, "end": 1429, "ctxt": 0 }, "value": "error", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1417, "end": 1458, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1441, "end": 1458, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1443, "end": 1456, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1450, "end": 1455, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1431, "end": 1440, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1433, "end": 1440, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 1467, "end": 1508, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1474, "end": 1479, "ctxt": 0 }, "value": "fatal", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1467, "end": 1508, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1491, "end": 1508, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1493, "end": 1506, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1500, "end": 1505, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1481, "end": 1490, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1483, "end": 1490, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 1517, "end": 1556, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1524, "end": 1527, "ctxt": 0 }, "value": "log", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 1528, "end": 1537, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1528, "end": 1537, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1529, "end": 1537, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1531, "end": 1537, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 1517, "end": 1556, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1545, "end": 1556, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1538, "end": 1544, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1540, "end": 1544, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 1241, "end": 1248, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 1241, "end": 1248, "ctxt": 0 }, "value": "ILogger", "optional": false }, "typeArguments": null } ] } }, { "type": "ExportDeclaration", "span": { "start": 1568, "end": 2482, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1581, "end": 1594, "ctxt": 0 }, "value": "LoggerAdapter", "optional": false }, "declare": false, "span": { "start": 1575, "end": 2482, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 1624, "end": 1654, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1632, "end": 1644, "ctxt": 0 }, "value": "_information", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1644, "end": 1653, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1646, "end": 1653, "ctxt": 0 }, "kind": "boolean" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 1663, "end": 1687, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1671, "end": 1677, "ctxt": 0 }, "value": "_debug", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1677, "end": 1686, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1679, "end": 1686, "ctxt": 0 }, "kind": "boolean" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 1696, "end": 1722, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1704, "end": 1712, "ctxt": 0 }, "value": "_warning", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1712, "end": 1721, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1714, "end": 1721, "ctxt": 0 }, "kind": "boolean" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 1731, "end": 1755, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1739, "end": 1745, "ctxt": 0 }, "value": "_error", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1745, "end": 1754, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1747, "end": 1754, "ctxt": 0 }, "kind": "boolean" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 1764, "end": 1788, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1772, "end": 1778, "ctxt": 0 }, "value": "_fatal", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1778, "end": 1787, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1780, "end": 1787, "ctxt": 0 }, "kind": "boolean" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "Constructor", "span": { "start": 1798, "end": 2098, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1798, "end": 1809, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 1811, "end": 1833, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1818, "end": 1833, "ctxt": 0 }, "value": "logger", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1824, "end": 1833, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1826, "end": 1833, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1826, "end": 1833, "ctxt": 0 }, "value": "ILogger", "optional": false }, "typeParams": null } } } } ], "body": { "type": "BlockStatement", "span": { "start": 1835, "end": 2098, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1850, "end": 1896, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1850, "end": 1895, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1850, "end": 1867, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1850, "end": 1854, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1855, "end": 1867, "ctxt": 0 }, "value": "_information", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 1870, "end": 1895, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1870, "end": 1893, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1870, "end": 1881, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1870, "end": 1874, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1875, "end": 1881, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1882, "end": 1893, "ctxt": 0 }, "value": "information", "optional": false } }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1909, "end": 1943, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1909, "end": 1942, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1909, "end": 1920, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1909, "end": 1913, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1914, "end": 1920, "ctxt": 0 }, "value": "_debug", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 1923, "end": 1942, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1923, "end": 1940, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1923, "end": 1934, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1923, "end": 1927, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1928, "end": 1934, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1935, "end": 1940, "ctxt": 0 }, "value": "debug", "optional": false } }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1956, "end": 1994, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1956, "end": 1993, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1956, "end": 1969, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1956, "end": 1960, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1961, "end": 1969, "ctxt": 0 }, "value": "_warning", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 1972, "end": 1993, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1972, "end": 1991, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1972, "end": 1983, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1972, "end": 1976, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1977, "end": 1983, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1984, "end": 1991, "ctxt": 0 }, "value": "warning", "optional": false } }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 2007, "end": 2041, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 2007, "end": 2040, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 2007, "end": 2018, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2007, "end": 2011, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2012, "end": 2018, "ctxt": 0 }, "value": "_error", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 2021, "end": 2040, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2021, "end": 2038, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2021, "end": 2032, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2021, "end": 2025, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2026, "end": 2032, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2033, "end": 2038, "ctxt": 0 }, "value": "error", "optional": false } }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 2054, "end": 2088, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 2054, "end": 2087, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 2054, "end": 2065, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2054, "end": 2058, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2059, "end": 2065, "ctxt": 0 }, "value": "_fatal", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 2068, "end": 2087, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2068, "end": 2085, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2068, "end": 2079, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2068, "end": 2072, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2073, "end": 2079, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2080, "end": 2085, "ctxt": 0 }, "value": "fatal", "optional": false } }, "arguments": [], "typeArguments": null } } } ] }, "accessibility": null, "isOptional": false }, { "type": "ClassMethod", "span": { "start": 2109, "end": 2168, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2116, "end": 2127, "ctxt": 0 }, "value": "information", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2109, "end": 2168, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2139, "end": 2168, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2141, "end": 2166, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 2148, "end": 2165, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2148, "end": 2152, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2153, "end": 2165, "ctxt": 0 }, "value": "_information", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2129, "end": 2138, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2131, "end": 2138, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2177, "end": 2224, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2184, "end": 2189, "ctxt": 0 }, "value": "debug", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2177, "end": 2224, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2201, "end": 2224, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2203, "end": 2222, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 2210, "end": 2221, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2210, "end": 2214, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2215, "end": 2221, "ctxt": 0 }, "value": "_debug", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2191, "end": 2200, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2193, "end": 2200, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2233, "end": 2284, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2240, "end": 2247, "ctxt": 0 }, "value": "warning", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2233, "end": 2284, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2259, "end": 2284, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2261, "end": 2282, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 2268, "end": 2281, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2268, "end": 2272, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2273, "end": 2281, "ctxt": 0 }, "value": "_warning", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2249, "end": 2258, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2251, "end": 2258, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2293, "end": 2340, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2300, "end": 2305, "ctxt": 0 }, "value": "error", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2293, "end": 2340, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2317, "end": 2340, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2319, "end": 2338, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 2326, "end": 2337, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2326, "end": 2330, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2331, "end": 2337, "ctxt": 0 }, "value": "_error", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2307, "end": 2316, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2309, "end": 2316, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2349, "end": 2396, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2356, "end": 2361, "ctxt": 0 }, "value": "fatal", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2349, "end": 2396, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2373, "end": 2396, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2375, "end": 2394, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 2382, "end": 2393, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2382, "end": 2386, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2387, "end": 2393, "ctxt": 0 }, "value": "_fatal", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2363, "end": 2372, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2365, "end": 2372, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2405, "end": 2476, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2412, "end": 2415, "ctxt": 0 }, "value": "log", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 2416, "end": 2425, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2416, "end": 2425, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2417, "end": 2425, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2419, "end": 2425, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 2405, "end": 2476, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2433, "end": 2476, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2447, "end": 2466, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2447, "end": 2465, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2447, "end": 2462, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2447, "end": 2458, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2447, "end": 2451, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2452, "end": 2458, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2459, "end": 2462, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2463, "end": 2464, "ctxt": 0 }, "value": "s", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2426, "end": 2432, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2428, "end": 2432, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 1606, "end": 1613, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 1606, "end": 1613, "ctxt": 0 }, "value": "ILogger", "optional": false }, "typeArguments": null } ] } }, { "type": "ExportDeclaration", "span": { "start": 2488, "end": 2920, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2501, "end": 2515, "ctxt": 0 }, "value": "BufferedLogger", "optional": false }, "declare": false, "span": { "start": 2495, "end": 2920, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 2545, "end": 2569, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2552, "end": 2563, "ctxt": 0 }, "value": "logContents", "optional": false }, "value": { "type": "ArrayExpression", "span": { "start": 2566, "end": 2568, "ctxt": 0 }, "elements": [] }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 2579, "end": 2626, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2586, "end": 2597, "ctxt": 0 }, "value": "information", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2579, "end": 2626, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2609, "end": 2626, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2611, "end": 2624, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 2618, "end": 2623, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2599, "end": 2608, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2601, "end": 2608, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2635, "end": 2676, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2642, "end": 2647, "ctxt": 0 }, "value": "debug", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2635, "end": 2676, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2659, "end": 2676, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2661, "end": 2674, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 2668, "end": 2673, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2649, "end": 2658, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2651, "end": 2658, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2685, "end": 2728, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2692, "end": 2699, "ctxt": 0 }, "value": "warning", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2685, "end": 2728, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2711, "end": 2728, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2713, "end": 2726, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 2720, "end": 2725, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2701, "end": 2710, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2703, "end": 2710, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2737, "end": 2778, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2744, "end": 2749, "ctxt": 0 }, "value": "error", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2737, "end": 2778, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2761, "end": 2778, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2763, "end": 2776, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 2770, "end": 2775, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2751, "end": 2760, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2753, "end": 2760, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2787, "end": 2828, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2794, "end": 2799, "ctxt": 0 }, "value": "fatal", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 2787, "end": 2828, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2811, "end": 2828, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 2813, "end": 2826, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 2820, "end": 2825, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2801, "end": 2810, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2803, "end": 2810, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2837, "end": 2914, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2844, "end": 2847, "ctxt": 0 }, "value": "log", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 2848, "end": 2857, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2848, "end": 2857, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2849, "end": 2857, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2851, "end": 2857, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 2837, "end": 2914, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2865, "end": 2914, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 2879, "end": 2904, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2879, "end": 2903, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2879, "end": 2900, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2879, "end": 2895, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2879, "end": 2883, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2884, "end": 2895, "ctxt": 0 }, "value": "logContents", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2896, "end": 2900, "ctxt": 0 }, "value": "push", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2901, "end": 2902, "ctxt": 0 }, "value": "s", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2858, "end": 2864, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2860, "end": 2864, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 2527, "end": 2534, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 2527, "end": 2534, "ctxt": 0 }, "value": "ILogger", "optional": false }, "typeArguments": null } ] } }, { "type": "ExportDeclaration", "span": { "start": 2926, "end": 3223, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 2942, "end": 2954, "ctxt": 0 }, "value": "timeFunction", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 2955, "end": 2970, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2955, "end": 2970, "ctxt": 0 }, "value": "logger", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2961, "end": 2970, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2963, "end": 2970, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2963, "end": 2970, "ctxt": 0 }, "value": "ILogger", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2972, "end": 2995, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2972, "end": 2995, "ctxt": 0 }, "value": "funcDescription", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2987, "end": 2995, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2989, "end": 2995, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 2997, "end": 3011, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2997, "end": 3011, "ctxt": 0 }, "value": "func", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3001, "end": 3011, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 3003, "end": 3011, "ctxt": 0 }, "params": [], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3006, "end": 3011, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3008, "end": 3011, "ctxt": 0 }, "kind": "any" } } } } } } ], "decorators": [], "span": { "start": 2933, "end": 3223, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 3018, "end": 3223, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 3028, "end": 3052, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3032, "end": 3051, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3032, "end": 3037, "ctxt": 0 }, "value": "start", "optional": false, "typeAnnotation": null }, "init": { "type": "UnaryExpression", "span": { "start": 3040, "end": 3051, "ctxt": 0 }, "operator": "+", "argument": { "type": "NewExpression", "span": { "start": 3041, "end": 3051, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3045, "end": 3049, "ctxt": 0 }, "value": "Date", "optional": false }, "arguments": [], "typeArguments": null } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3061, "end": 3081, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3065, "end": 3080, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3065, "end": 3071, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 3074, "end": 3080, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3074, "end": 3078, "ctxt": 0 }, "value": "func", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3090, "end": 3112, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3094, "end": 3111, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3094, "end": 3097, "ctxt": 0 }, "value": "end", "optional": false, "typeAnnotation": null }, "init": { "type": "UnaryExpression", "span": { "start": 3100, "end": 3111, "ctxt": 0 }, "operator": "+", "argument": { "type": "NewExpression", "span": { "start": 3101, "end": 3111, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 3105, "end": 3109, "ctxt": 0 }, "value": "Date", "optional": false }, "arguments": [], "typeArguments": null } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 3121, "end": 3194, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3121, "end": 3193, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3121, "end": 3131, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3121, "end": 3127, "ctxt": 0 }, "value": "logger", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3128, "end": 3131, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 3132, "end": 3192, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 3132, "end": 3182, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 3132, "end": 3166, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 3132, "end": 3147, "ctxt": 0 }, "value": "funcDescription", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 3150, "end": 3166, "ctxt": 0 }, "value": " completed in ", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 3169, "end": 3182, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 3170, "end": 3181, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 3170, "end": 3173, "ctxt": 0 }, "value": "end", "optional": false }, "right": { "type": "Identifier", "span": { "start": 3176, "end": 3181, "ctxt": 0 }, "value": "start", "optional": false } } } }, "right": { "type": "StringLiteral", "span": { "start": 3185, "end": 3192, "ctxt": 0 }, "value": " msec", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } } ], "typeArguments": null } }, { "type": "ReturnStatement", "span": { "start": 3203, "end": 3217, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3210, "end": 3216, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3012, "end": 3017, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3014, "end": 3017, "ctxt": 0 }, "kind": "any" } } } }, { "type": "ExportDeclaration", "span": { "start": 3229, "end": 4812, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 3245, "end": 3260, "ctxt": 0 }, "value": "stringToLiteral", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 3261, "end": 3274, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3261, "end": 3274, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3266, "end": 3274, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3268, "end": 3274, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 3276, "end": 3290, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 3276, "end": 3290, "ctxt": 0 }, "value": "length", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3282, "end": 3290, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3284, "end": 3290, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 3236, "end": 4812, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 3300, "end": 4812, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 3310, "end": 3326, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3314, "end": 3325, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3314, "end": 3320, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "StringLiteral", "span": { "start": 3323, "end": 3325, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 3336, "end": 4385, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3340, "end": 4385, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3340, "end": 3347, "ctxt": 0 }, "value": "addChar", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 3350, "end": 4385, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 3351, "end": 3364, "ctxt": 0 }, "value": "index", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3356, "end": 3364, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3358, "end": 3364, "ctxt": 0 }, "kind": "number" } } } ], "body": { "type": "BlockStatement", "span": { "start": 3369, "end": 4385, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 3383, "end": 3416, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 3387, "end": 3415, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 3387, "end": 3389, "ctxt": 0 }, "value": "ch", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 3392, "end": 3415, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3392, "end": 3408, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3392, "end": 3397, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3398, "end": 3408, "ctxt": 0 }, "value": "charCodeAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3409, "end": 3414, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "SwitchStatement", "span": { "start": 3429, "end": 4375, "ctxt": 0 }, "discriminant": { "type": "Identifier", "span": { "start": 3437, "end": 3439, "ctxt": 0 }, "value": "ch", "optional": false }, "cases": [ { "type": "SwitchCase", "span": { "start": 3459, "end": 3540, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3464, "end": 3468, "ctxt": 0 }, "value": 9.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 3497, "end": 3513, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 3497, "end": 3512, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 3497, "end": 3503, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 3507, "end": 3512, "ctxt": 0 }, "value": "\\t", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 3534, "end": 3540, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 3557, "end": 3644, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3562, "end": 3566, "ctxt": 0 }, "value": 10.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 3601, "end": 3617, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 3601, "end": 3616, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 3601, "end": 3607, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 3611, "end": 3616, "ctxt": 0 }, "value": "\\n", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 3638, "end": 3644, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 3661, "end": 3751, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3666, "end": 3670, "ctxt": 0 }, "value": 11.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 3708, "end": 3724, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 3708, "end": 3723, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 3708, "end": 3714, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 3718, "end": 3723, "ctxt": 0 }, "value": "\\v", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 3745, "end": 3751, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 3768, "end": 3855, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3773, "end": 3777, "ctxt": 0 }, "value": 12.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 3812, "end": 3828, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 3812, "end": 3827, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 3812, "end": 3818, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 3822, "end": 3827, "ctxt": 0 }, "value": "\\f", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 3849, "end": 3855, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 3872, "end": 3965, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3877, "end": 3881, "ctxt": 0 }, "value": 13.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 3922, "end": 3938, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 3922, "end": 3937, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 3922, "end": 3928, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 3932, "end": 3937, "ctxt": 0 }, "value": "\\r", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 3959, "end": 3965, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 3982, "end": 4074, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 3987, "end": 3991, "ctxt": 0 }, "value": 34.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4030, "end": 4047, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4030, "end": 4046, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 4030, "end": 4036, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 4040, "end": 4046, "ctxt": 0 }, "value": "\\\"", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 4068, "end": 4074, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 4091, "end": 4182, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 4096, "end": 4100, "ctxt": 0 }, "value": 39.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4138, "end": 4155, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4138, "end": 4154, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 4138, "end": 4144, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 4148, "end": 4154, "ctxt": 0 }, "value": "\\'", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 4176, "end": 4182, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 4199, "end": 4285, "ctxt": 0 }, "test": { "type": "NumericLiteral", "span": { "start": 4204, "end": 4208, "ctxt": 0 }, "value": 92.0 }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4243, "end": 4258, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4243, "end": 4257, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 4243, "end": 4249, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 4253, "end": 4257, "ctxt": 0 }, "value": "\\", "hasEscape": true, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "BreakStatement", "span": { "start": 4279, "end": 4285, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 4302, "end": 4361, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 4331, "end": 4361, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4331, "end": 4360, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 4331, "end": 4337, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 4341, "end": 4360, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4341, "end": 4353, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4341, "end": 4346, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4347, "end": 4353, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4354, "end": 4359, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null } } } ] } ] } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 4395, "end": 4433, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4399, "end": 4432, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4399, "end": 4406, "ctxt": 0 }, "value": "tooLong", "optional": false, "typeAnnotation": null }, "init": { "type": "ParenthesisExpression", "span": { "start": 4409, "end": 4432, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 4410, "end": 4431, "ctxt": 0 }, "operator": ">", "left": { "type": "MemberExpression", "span": { "start": 4410, "end": 4422, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4410, "end": 4415, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4416, "end": 4422, "ctxt": 0 }, "value": "length", "optional": false } }, "right": { "type": "Identifier", "span": { "start": 4425, "end": 4431, "ctxt": 0 }, "value": "length", "optional": false } } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 4442, "end": 4783, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 4446, "end": 4453, "ctxt": 0 }, "value": "tooLong", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 4455, "end": 4666, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 4469, "end": 4491, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4473, "end": 4490, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4473, "end": 4476, "ctxt": 0 }, "value": "mid", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 4479, "end": 4490, "ctxt": 0 }, "operator": ">>", "left": { "type": "Identifier", "span": { "start": 4479, "end": 4485, "ctxt": 0 }, "value": "length", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 4489, "end": 4490, "ctxt": 0 }, "value": 1.0 } }, "definite": false } ] }, { "type": "ForStatement", "span": { "start": 4504, "end": 4545, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 4509, "end": 4518, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4513, "end": 4518, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4513, "end": 4514, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 4517, "end": 4518, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 4520, "end": 4527, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 4520, "end": 4521, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "Identifier", "span": { "start": 4524, "end": 4527, "ctxt": 0 }, "value": "mid", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 4529, "end": 4532, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 4529, "end": 4530, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "ExpressionStatement", "span": { "start": 4534, "end": 4545, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4534, "end": 4544, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4534, "end": 4541, "ctxt": 0 }, "value": "addChar", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4542, "end": 4543, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 4558, "end": 4576, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4558, "end": 4575, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 4558, "end": 4564, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 4568, "end": 4575, "ctxt": 0 }, "value": "(...)", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } }, { "type": "ForStatement", "span": { "start": 4589, "end": 4656, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 4594, "end": 4620, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4598, "end": 4620, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4598, "end": 4599, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 4602, "end": 4620, "ctxt": 0 }, "operator": "-", "left": { "type": "MemberExpression", "span": { "start": 4602, "end": 4614, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4602, "end": 4607, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4608, "end": 4614, "ctxt": 0 }, "value": "length", "optional": false } }, "right": { "type": "Identifier", "span": { "start": 4617, "end": 4620, "ctxt": 0 }, "value": "mid", "optional": false } }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 4622, "end": 4638, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 4622, "end": 4623, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 4626, "end": 4638, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4626, "end": 4631, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4632, "end": 4638, "ctxt": 0 }, "value": "length", "optional": false } } }, "update": { "type": "UpdateExpression", "span": { "start": 4640, "end": 4643, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 4640, "end": 4641, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "ExpressionStatement", "span": { "start": 4645, "end": 4656, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4645, "end": 4655, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4645, "end": 4652, "ctxt": 0 }, "value": "addChar", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4653, "end": 4654, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4680, "end": 4783, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4694, "end": 4716, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4694, "end": 4715, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4694, "end": 4700, "ctxt": 0 }, "value": "length", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 4703, "end": 4715, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4703, "end": 4708, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4709, "end": 4715, "ctxt": 0 }, "value": "length", "optional": false } } } }, { "type": "ForStatement", "span": { "start": 4729, "end": 4773, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 4734, "end": 4743, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4738, "end": 4743, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4738, "end": 4739, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 4742, "end": 4743, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 4745, "end": 4755, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 4745, "end": 4746, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "Identifier", "span": { "start": 4749, "end": 4755, "ctxt": 0 }, "value": "length", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 4757, "end": 4760, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 4757, "end": 4758, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "ExpressionStatement", "span": { "start": 4762, "end": 4773, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 4762, "end": 4772, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 4762, "end": 4769, "ctxt": 0 }, "value": "addChar", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4770, "end": 4771, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null } } } ] } }, { "type": "ReturnStatement", "span": { "start": 4792, "end": 4806, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4799, "end": 4805, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 3291, "end": 3299, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 3293, "end": 3299, "ctxt": 0 }, "kind": "string" } } } } ] } } ], "interpreter": null }