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

6253 lines
240 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 212,
"end": 4815,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 212,
"end": 4815,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 219,
"end": 229,
"ctxt": 0
},
"value": "TypeScript",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 230,
"end": 4815,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 236,
"end": 995,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 243,
"end": 995,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 250,
"end": 269,
"ctxt": 0
},
"value": "CompilerDiagnostics",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 270,
"end": 995,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 280,
"end": 305,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 287,
"end": 305,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 291,
"end": 304,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 291,
"end": 296,
"ctxt": 0
},
"value": "debug",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BooleanLiteral",
"span": {
"start": 299,
"end": 304,
"ctxt": 0
},
"value": false
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 314,
"end": 401,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 321,
"end": 401,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 331,
"end": 348,
"ctxt": 0
},
"value": "IDiagnosticWriter",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 349,
"end": 401,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 363,
"end": 391,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 363,
"end": 368,
"ctxt": 0
},
"value": "Alert",
"optional": false
},
"computed": false,
"optional": false,
"params": [
{
"type": "Identifier",
"span": {
"start": 369,
"end": 383,
"ctxt": 0
},
"value": "output",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 375,
"end": 383,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 377,
"end": 383,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 384,
"end": 390,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 386,
"end": 390,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 411,
"end": 465,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 418,
"end": 465,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 422,
"end": 464,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 422,
"end": 438,
"ctxt": 0
},
"value": "diagnosticWriter",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 438,
"end": 457,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 440,
"end": 457,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 440,
"end": 457,
"ctxt": 0
},
"value": "IDiagnosticWriter",
"optional": false
},
"typeParams": null
}
}
},
"init": {
"type": "NullLiteral",
"span": {
"start": 460,
"end": 464,
"ctxt": 0
}
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 475,
"end": 511,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 482,
"end": 511,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 486,
"end": 510,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 486,
"end": 498,
"ctxt": 0
},
"value": "analysisPass",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 498,
"end": 506,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 500,
"end": 506,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 509,
"end": 510,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 521,
"end": 668,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 537,
"end": 542,
"ctxt": 0
},
"value": "Alert",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 543,
"end": 557,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 543,
"end": 557,
"ctxt": 0
},
"value": "output",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 549,
"end": 557,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 551,
"end": 557,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 528,
"end": 668,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 559,
"end": 668,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 573,
"end": 658,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 577,
"end": 593,
"ctxt": 0
},
"value": "diagnosticWriter",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 595,
"end": 658,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 613,
"end": 644,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 613,
"end": 643,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 613,
"end": 635,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 613,
"end": 629,
"ctxt": 0
},
"value": "diagnosticWriter",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 630,
"end": 635,
"ctxt": 0
},
"value": "Alert",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 636,
"end": 642,
"ctxt": 0
},
"value": "output",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 678,
"end": 792,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 694,
"end": 704,
"ctxt": 0
},
"value": "debugPrint",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 705,
"end": 714,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 705,
"end": 714,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 706,
"end": 714,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 708,
"end": 714,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 685,
"end": 792,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 716,
"end": 792,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 730,
"end": 782,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 734,
"end": 739,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 741,
"end": 782,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 759,
"end": 768,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 759,
"end": 767,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 759,
"end": 764,
"ctxt": 0
},
"value": "Alert",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 765,
"end": 766,
"ctxt": 0
},
"value": "s",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 802,
"end": 988,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 818,
"end": 824,
"ctxt": 0
},
"value": "assert",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 825,
"end": 843,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 825,
"end": 843,
"ctxt": 0
},
"value": "condition",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 834,
"end": 843,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 836,
"end": 843,
"ctxt": 0
},
"kind": "boolean"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 845,
"end": 854,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 845,
"end": 854,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 846,
"end": 854,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 848,
"end": 854,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 809,
"end": 988,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 856,
"end": 988,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 870,
"end": 978,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 874,
"end": 879,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 881,
"end": 978,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 899,
"end": 964,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 903,
"end": 913,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "Identifier",
"span": {
"start": 904,
"end": 913,
"ctxt": 0
},
"value": "condition",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 915,
"end": 964,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 937,
"end": 946,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 937,
"end": 945,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 937,
"end": 942,
"ctxt": 0
},
"value": "Alert",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 943,
"end": 944,
"ctxt": 0
},
"value": "s",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"alternate": null
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 1001,
"end": 1201,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 1008,
"end": 1201,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1018,
"end": 1025,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1026,
"end": 1201,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 1036,
"end": 1059,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1036,
"end": 1047,
"ctxt": 0
},
"value": "information",
"optional": false
},
"computed": false,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1049,
"end": 1058,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1051,
"end": 1058,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsMethodSignature",
"span": {
"start": 1068,
"end": 1085,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1068,
"end": 1073,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"computed": false,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1075,
"end": 1084,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1077,
"end": 1084,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsMethodSignature",
"span": {
"start": 1094,
"end": 1113,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1094,
"end": 1101,
"ctxt": 0
},
"value": "warning",
"optional": false
},
"computed": false,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1103,
"end": 1112,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1105,
"end": 1112,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsMethodSignature",
"span": {
"start": 1122,
"end": 1139,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1122,
"end": 1127,
"ctxt": 0
},
"value": "error",
"optional": false
},
"computed": false,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1129,
"end": 1138,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1131,
"end": 1138,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsMethodSignature",
"span": {
"start": 1148,
"end": 1165,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1148,
"end": 1153,
"ctxt": 0
},
"value": "fatal",
"optional": false
},
"computed": false,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1155,
"end": 1164,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1157,
"end": 1164,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsMethodSignature",
"span": {
"start": 1174,
"end": 1195,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1174,
"end": 1177,
"ctxt": 0
},
"value": "log",
"optional": false
},
"computed": false,
"optional": false,
"params": [
{
"type": "Identifier",
"span": {
"start": 1178,
"end": 1187,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1179,
"end": 1187,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1181,
"end": 1187,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 1188,
"end": 1194,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1190,
"end": 1194,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 1207,
"end": 1563,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1220,
"end": 1230,
"ctxt": 0
},
"value": "NullLogger",
"optional": false
},
"declare": false,
"span": {
"start": 1214,
"end": 1563,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1260,
"end": 1307,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1267,
"end": 1278,
"ctxt": 0
},
"value": "information",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1260,
"end": 1307,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1290,
"end": 1307,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1292,
"end": 1305,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1299,
"end": 1304,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1280,
"end": 1289,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1282,
"end": 1289,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1316,
"end": 1357,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1323,
"end": 1328,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1316,
"end": 1357,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1340,
"end": 1357,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1342,
"end": 1355,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1349,
"end": 1354,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1330,
"end": 1339,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1332,
"end": 1339,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1366,
"end": 1409,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1373,
"end": 1380,
"ctxt": 0
},
"value": "warning",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1366,
"end": 1409,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1392,
"end": 1409,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1394,
"end": 1407,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1401,
"end": 1406,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1382,
"end": 1391,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1384,
"end": 1391,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1418,
"end": 1459,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1425,
"end": 1430,
"ctxt": 0
},
"value": "error",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1418,
"end": 1459,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1442,
"end": 1459,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1444,
"end": 1457,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1451,
"end": 1456,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1432,
"end": 1441,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1434,
"end": 1441,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1468,
"end": 1509,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1475,
"end": 1480,
"ctxt": 0
},
"value": "fatal",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1468,
"end": 1509,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1492,
"end": 1509,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1494,
"end": 1507,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1501,
"end": 1506,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1482,
"end": 1491,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1484,
"end": 1491,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1518,
"end": 1557,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1525,
"end": 1528,
"ctxt": 0
},
"value": "log",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1529,
"end": 1538,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1529,
"end": 1538,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1530,
"end": 1538,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1532,
"end": 1538,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1518,
"end": 1557,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1546,
"end": 1557,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1539,
"end": 1545,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1541,
"end": 1545,
"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": 1242,
"end": 1249,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1249,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"typeArguments": null
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 1569,
"end": 2483,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1582,
"end": 1595,
"ctxt": 0
},
"value": "LoggerAdapter",
"optional": false
},
"declare": false,
"span": {
"start": 1576,
"end": 2483,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 1625,
"end": 1655,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1633,
"end": 1645,
"ctxt": 0
},
"value": "_information",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1645,
"end": 1654,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1647,
"end": 1654,
"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": 1664,
"end": 1688,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1672,
"end": 1678,
"ctxt": 0
},
"value": "_debug",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1678,
"end": 1687,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1680,
"end": 1687,
"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": 1697,
"end": 1723,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1705,
"end": 1713,
"ctxt": 0
},
"value": "_warning",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1713,
"end": 1722,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1715,
"end": 1722,
"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": 1732,
"end": 1756,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1740,
"end": 1746,
"ctxt": 0
},
"value": "_error",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1746,
"end": 1755,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1748,
"end": 1755,
"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": 1765,
"end": 1789,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1773,
"end": 1779,
"ctxt": 0
},
"value": "_fatal",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1779,
"end": 1788,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1781,
"end": 1788,
"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": 1799,
"end": 2099,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1799,
"end": 1810,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "TsParameterProperty",
"span": {
"start": 1812,
"end": 1834,
"ctxt": 0
},
"decorators": [],
"accessibility": "public",
"override": false,
"readonly": false,
"param": {
"type": "Identifier",
"span": {
"start": 1819,
"end": 1834,
"ctxt": 0
},
"value": "logger",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1825,
"end": 1834,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1827,
"end": 1834,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1827,
"end": 1834,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"typeParams": null
}
}
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 1836,
"end": 2099,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1851,
"end": 1897,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1851,
"end": 1896,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1851,
"end": 1868,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1851,
"end": 1855,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1856,
"end": 1868,
"ctxt": 0
},
"value": "_information",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1871,
"end": 1896,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1871,
"end": 1894,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1871,
"end": 1882,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1871,
"end": 1875,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1876,
"end": 1882,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1883,
"end": 1894,
"ctxt": 0
},
"value": "information",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1910,
"end": 1944,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1910,
"end": 1943,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1910,
"end": 1921,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1910,
"end": 1914,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1915,
"end": 1921,
"ctxt": 0
},
"value": "_debug",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1924,
"end": 1943,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1924,
"end": 1941,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1924,
"end": 1935,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1924,
"end": 1928,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1929,
"end": 1935,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1936,
"end": 1941,
"ctxt": 0
},
"value": "debug",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1957,
"end": 1995,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1957,
"end": 1994,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1957,
"end": 1970,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1957,
"end": 1961,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1962,
"end": 1970,
"ctxt": 0
},
"value": "_warning",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1973,
"end": 1994,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1973,
"end": 1992,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1973,
"end": 1984,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1973,
"end": 1977,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1978,
"end": 1984,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1985,
"end": 1992,
"ctxt": 0
},
"value": "warning",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2008,
"end": 2042,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2008,
"end": 2041,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2008,
"end": 2019,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2008,
"end": 2012,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2013,
"end": 2019,
"ctxt": 0
},
"value": "_error",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 2022,
"end": 2041,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2022,
"end": 2039,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 2022,
"end": 2033,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2022,
"end": 2026,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2027,
"end": 2033,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2034,
"end": 2039,
"ctxt": 0
},
"value": "error",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2055,
"end": 2089,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2055,
"end": 2088,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2055,
"end": 2066,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2055,
"end": 2059,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2060,
"end": 2066,
"ctxt": 0
},
"value": "_fatal",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 2069,
"end": 2088,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2069,
"end": 2086,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 2069,
"end": 2080,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2069,
"end": 2073,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2074,
"end": 2080,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2081,
"end": 2086,
"ctxt": 0
},
"value": "fatal",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 2110,
"end": 2169,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2117,
"end": 2128,
"ctxt": 0
},
"value": "information",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2110,
"end": 2169,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2140,
"end": 2169,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2142,
"end": 2167,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2149,
"end": 2166,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2149,
"end": 2153,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2154,
"end": 2166,
"ctxt": 0
},
"value": "_information",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2130,
"end": 2139,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2132,
"end": 2139,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2178,
"end": 2225,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2185,
"end": 2190,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2178,
"end": 2225,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2202,
"end": 2225,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2204,
"end": 2223,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2211,
"end": 2222,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2211,
"end": 2215,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2216,
"end": 2222,
"ctxt": 0
},
"value": "_debug",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2192,
"end": 2201,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2194,
"end": 2201,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2234,
"end": 2285,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2241,
"end": 2248,
"ctxt": 0
},
"value": "warning",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2234,
"end": 2285,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2260,
"end": 2285,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2262,
"end": 2283,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2269,
"end": 2282,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2269,
"end": 2273,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2274,
"end": 2282,
"ctxt": 0
},
"value": "_warning",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2250,
"end": 2259,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2252,
"end": 2259,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2294,
"end": 2341,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2301,
"end": 2306,
"ctxt": 0
},
"value": "error",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2294,
"end": 2341,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2318,
"end": 2341,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2320,
"end": 2339,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2327,
"end": 2338,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2327,
"end": 2331,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2332,
"end": 2338,
"ctxt": 0
},
"value": "_error",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2308,
"end": 2317,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2310,
"end": 2317,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2350,
"end": 2397,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2357,
"end": 2362,
"ctxt": 0
},
"value": "fatal",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2350,
"end": 2397,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2374,
"end": 2397,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2376,
"end": 2395,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2383,
"end": 2394,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2383,
"end": 2387,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2388,
"end": 2394,
"ctxt": 0
},
"value": "_fatal",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2364,
"end": 2373,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2366,
"end": 2373,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2406,
"end": 2477,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2413,
"end": 2416,
"ctxt": 0
},
"value": "log",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 2417,
"end": 2426,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2417,
"end": 2426,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2418,
"end": 2426,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2420,
"end": 2426,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2406,
"end": 2477,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2434,
"end": 2477,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2448,
"end": 2467,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2448,
"end": 2466,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2448,
"end": 2463,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 2448,
"end": 2459,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2448,
"end": 2452,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2453,
"end": 2459,
"ctxt": 0
},
"value": "logger",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2460,
"end": 2463,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2464,
"end": 2465,
"ctxt": 0
},
"value": "s",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2427,
"end": 2433,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2429,
"end": 2433,
"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": 1607,
"end": 1614,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1607,
"end": 1614,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"typeArguments": null
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2489,
"end": 2921,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2502,
"end": 2516,
"ctxt": 0
},
"value": "BufferedLogger",
"optional": false
},
"declare": false,
"span": {
"start": 2496,
"end": 2921,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 2546,
"end": 2570,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2553,
"end": 2564,
"ctxt": 0
},
"value": "logContents",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 2567,
"end": 2569,
"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": 2580,
"end": 2627,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2587,
"end": 2598,
"ctxt": 0
},
"value": "information",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2580,
"end": 2627,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2610,
"end": 2627,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2612,
"end": 2625,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 2619,
"end": 2624,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2600,
"end": 2609,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2602,
"end": 2609,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2636,
"end": 2677,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2643,
"end": 2648,
"ctxt": 0
},
"value": "debug",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2636,
"end": 2677,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2660,
"end": 2677,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2662,
"end": 2675,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 2669,
"end": 2674,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2650,
"end": 2659,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2652,
"end": 2659,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2686,
"end": 2729,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2693,
"end": 2700,
"ctxt": 0
},
"value": "warning",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2686,
"end": 2729,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2712,
"end": 2729,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2714,
"end": 2727,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 2721,
"end": 2726,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2702,
"end": 2711,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2704,
"end": 2711,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2738,
"end": 2779,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2745,
"end": 2750,
"ctxt": 0
},
"value": "error",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2738,
"end": 2779,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2762,
"end": 2779,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2764,
"end": 2777,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 2771,
"end": 2776,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2752,
"end": 2761,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2754,
"end": 2761,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2788,
"end": 2829,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2795,
"end": 2800,
"ctxt": 0
},
"value": "fatal",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2788,
"end": 2829,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2812,
"end": 2829,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2814,
"end": 2827,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 2821,
"end": 2826,
"ctxt": 0
},
"value": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2802,
"end": 2811,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2804,
"end": 2811,
"ctxt": 0
},
"kind": "boolean"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 2838,
"end": 2915,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2845,
"end": 2848,
"ctxt": 0
},
"value": "log",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 2849,
"end": 2858,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2849,
"end": 2858,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2850,
"end": 2858,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2852,
"end": 2858,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2838,
"end": 2915,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2866,
"end": 2915,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2880,
"end": 2905,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2880,
"end": 2904,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2880,
"end": 2901,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 2880,
"end": 2896,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2880,
"end": 2884,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2885,
"end": 2896,
"ctxt": 0
},
"value": "logContents",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2897,
"end": 2901,
"ctxt": 0
},
"value": "push",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2902,
"end": 2903,
"ctxt": 0
},
"value": "s",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2859,
"end": 2865,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2861,
"end": 2865,
"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": 2528,
"end": 2535,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2528,
"end": 2535,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"typeArguments": null
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2927,
"end": 3224,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2943,
"end": 2955,
"ctxt": 0
},
"value": "timeFunction",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2956,
"end": 2971,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2956,
"end": 2971,
"ctxt": 0
},
"value": "logger",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2962,
"end": 2971,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2964,
"end": 2971,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2964,
"end": 2971,
"ctxt": 0
},
"value": "ILogger",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2973,
"end": 2996,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2973,
"end": 2996,
"ctxt": 0
},
"value": "funcDescription",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2988,
"end": 2996,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2990,
"end": 2996,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2998,
"end": 3012,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2998,
"end": 3012,
"ctxt": 0
},
"value": "func",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3002,
"end": 3012,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 3004,
"end": 3012,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3007,
"end": 3012,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3009,
"end": 3012,
"ctxt": 0
},
"kind": "any"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 2934,
"end": 3224,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3019,
"end": 3224,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3029,
"end": 3053,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3033,
"end": 3052,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3033,
"end": 3038,
"ctxt": 0
},
"value": "start",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UnaryExpression",
"span": {
"start": 3041,
"end": 3052,
"ctxt": 0
},
"operator": "+",
"argument": {
"type": "NewExpression",
"span": {
"start": 3042,
"end": 3052,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3046,
"end": 3050,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3062,
"end": 3082,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3066,
"end": 3081,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3066,
"end": 3072,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 3075,
"end": 3081,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3075,
"end": 3079,
"ctxt": 0
},
"value": "func",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3091,
"end": 3113,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3095,
"end": 3112,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3095,
"end": 3098,
"ctxt": 0
},
"value": "end",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UnaryExpression",
"span": {
"start": 3101,
"end": 3112,
"ctxt": 0
},
"operator": "+",
"argument": {
"type": "NewExpression",
"span": {
"start": 3102,
"end": 3112,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3106,
"end": 3110,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 3122,
"end": 3195,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 3122,
"end": 3194,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 3122,
"end": 3132,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3122,
"end": 3128,
"ctxt": 0
},
"value": "logger",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3129,
"end": 3132,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BinaryExpression",
"span": {
"start": 3133,
"end": 3193,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 3133,
"end": 3183,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 3133,
"end": 3167,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "Identifier",
"span": {
"start": 3133,
"end": 3148,
"ctxt": 0
},
"value": "funcDescription",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3151,
"end": 3167,
"ctxt": 0
},
"value": " completed in ",
"raw": "\" completed in \""
}
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 3170,
"end": 3183,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 3171,
"end": 3182,
"ctxt": 0
},
"operator": "-",
"left": {
"type": "Identifier",
"span": {
"start": 3171,
"end": 3174,
"ctxt": 0
},
"value": "end",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 3177,
"end": 3182,
"ctxt": 0
},
"value": "start",
"optional": false
}
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3186,
"end": 3193,
"ctxt": 0
},
"value": " msec",
"raw": "\" msec\""
}
}
}
],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 3204,
"end": 3218,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 3211,
"end": 3217,
"ctxt": 0
},
"value": "result",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 3013,
"end": 3018,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3015,
"end": 3018,
"ctxt": 0
},
"kind": "any"
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 3230,
"end": 4813,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3246,
"end": 3261,
"ctxt": 0
},
"value": "stringToLiteral",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3262,
"end": 3275,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3262,
"end": 3275,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3267,
"end": 3275,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3269,
"end": 3275,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 3277,
"end": 3291,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3277,
"end": 3291,
"ctxt": 0
},
"value": "length",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3283,
"end": 3291,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3285,
"end": 3291,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 3237,
"end": 4813,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3301,
"end": 4813,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3311,
"end": 3327,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3315,
"end": 3326,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3315,
"end": 3321,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 3324,
"end": 3326,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3337,
"end": 4386,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3341,
"end": 4386,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3341,
"end": 3348,
"ctxt": 0
},
"value": "addChar",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 3351,
"end": 4386,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3352,
"end": 3365,
"ctxt": 0
},
"value": "index",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3357,
"end": 3365,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3359,
"end": 3365,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 3370,
"end": 4386,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3384,
"end": 3417,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3388,
"end": 3416,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3388,
"end": 3390,
"ctxt": 0
},
"value": "ch",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 3393,
"end": 3416,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 3393,
"end": 3409,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3393,
"end": 3398,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3399,
"end": 3409,
"ctxt": 0
},
"value": "charCodeAt",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 3410,
"end": 3415,
"ctxt": 0
},
"value": "index",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "SwitchStatement",
"span": {
"start": 3430,
"end": 4376,
"ctxt": 0
},
"discriminant": {
"type": "Identifier",
"span": {
"start": 3438,
"end": 3440,
"ctxt": 0
},
"value": "ch",
"optional": false
},
"cases": [
{
"type": "SwitchCase",
"span": {
"start": 3460,
"end": 3541,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3465,
"end": 3469,
"ctxt": 0
},
"value": 9.0,
"raw": "0x09"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 3498,
"end": 3514,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3498,
"end": 3513,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 3498,
"end": 3504,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3508,
"end": 3513,
"ctxt": 0
},
"value": "\\t",
"raw": "\"\\\\t\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 3535,
"end": 3541,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 3558,
"end": 3645,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3563,
"end": 3567,
"ctxt": 0
},
"value": 10.0,
"raw": "0x0a"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 3602,
"end": 3618,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3602,
"end": 3617,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 3602,
"end": 3608,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3612,
"end": 3617,
"ctxt": 0
},
"value": "\\n",
"raw": "\"\\\\n\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 3639,
"end": 3645,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 3662,
"end": 3752,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3667,
"end": 3671,
"ctxt": 0
},
"value": 11.0,
"raw": "0x0b"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 3709,
"end": 3725,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3709,
"end": 3724,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 3709,
"end": 3715,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3719,
"end": 3724,
"ctxt": 0
},
"value": "\\v",
"raw": "\"\\\\v\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 3746,
"end": 3752,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 3769,
"end": 3856,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3774,
"end": 3778,
"ctxt": 0
},
"value": 12.0,
"raw": "0x0c"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 3813,
"end": 3829,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3813,
"end": 3828,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 3813,
"end": 3819,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3823,
"end": 3828,
"ctxt": 0
},
"value": "\\f",
"raw": "\"\\\\f\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 3850,
"end": 3856,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 3873,
"end": 3966,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3878,
"end": 3882,
"ctxt": 0
},
"value": 13.0,
"raw": "0x0d"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 3923,
"end": 3939,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3923,
"end": 3938,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 3923,
"end": 3929,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3933,
"end": 3938,
"ctxt": 0
},
"value": "\\r",
"raw": "\"\\\\r\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 3960,
"end": 3966,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 3983,
"end": 4075,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 3988,
"end": 3992,
"ctxt": 0
},
"value": 34.0,
"raw": "0x22"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 4031,
"end": 4048,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4031,
"end": 4047,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 4031,
"end": 4037,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 4041,
"end": 4047,
"ctxt": 0
},
"value": "\\\"",
"raw": "\"\\\\\\\"\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 4069,
"end": 4075,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 4092,
"end": 4183,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 4097,
"end": 4101,
"ctxt": 0
},
"value": 39.0,
"raw": "0x27"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 4139,
"end": 4156,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4139,
"end": 4155,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 4139,
"end": 4145,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 4149,
"end": 4155,
"ctxt": 0
},
"value": "\\'",
"raw": "\"\\\\\\'\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 4177,
"end": 4183,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 4200,
"end": 4286,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 4205,
"end": 4209,
"ctxt": 0
},
"value": 92.0,
"raw": "0x5c"
},
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 4244,
"end": 4259,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4244,
"end": 4258,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 4244,
"end": 4250,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 4254,
"end": 4258,
"ctxt": 0
},
"value": "\\",
"raw": "\"\\\\\""
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 4280,
"end": 4286,
"ctxt": 0
},
"label": null
}
]
},
{
"type": "SwitchCase",
"span": {
"start": 4303,
"end": 4362,
"ctxt": 0
},
"test": null,
"consequent": [
{
"type": "ExpressionStatement",
"span": {
"start": 4332,
"end": 4362,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4332,
"end": 4361,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 4332,
"end": 4338,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "CallExpression",
"span": {
"start": 4342,
"end": 4361,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 4342,
"end": 4354,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4342,
"end": 4347,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4348,
"end": 4354,
"ctxt": 0
},
"value": "charAt",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4355,
"end": 4360,
"ctxt": 0
},
"value": "index",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
}
]
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4396,
"end": 4434,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4400,
"end": 4433,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4400,
"end": 4407,
"ctxt": 0
},
"value": "tooLong",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ParenthesisExpression",
"span": {
"start": 4410,
"end": 4433,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 4411,
"end": 4432,
"ctxt": 0
},
"operator": ">",
"left": {
"type": "MemberExpression",
"span": {
"start": 4411,
"end": 4423,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4411,
"end": 4416,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4417,
"end": 4423,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 4426,
"end": 4432,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "IfStatement",
"span": {
"start": 4443,
"end": 4784,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 4447,
"end": 4454,
"ctxt": 0
},
"value": "tooLong",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 4456,
"end": 4667,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 4470,
"end": 4492,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4474,
"end": 4491,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4474,
"end": 4477,
"ctxt": 0
},
"value": "mid",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 4480,
"end": 4491,
"ctxt": 0
},
"operator": ">>",
"left": {
"type": "Identifier",
"span": {
"start": 4480,
"end": 4486,
"ctxt": 0
},
"value": "length",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 4490,
"end": 4491,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
"definite": false
}
]
},
{
"type": "ForStatement",
"span": {
"start": 4505,
"end": 4546,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 4510,
"end": 4519,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4514,
"end": 4519,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4514,
"end": 4515,
"ctxt": 0
},
"value": "i",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 4518,
"end": 4519,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 4521,
"end": 4528,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Identifier",
"span": {
"start": 4521,
"end": 4522,
"ctxt": 0
},
"value": "i",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 4525,
"end": 4528,
"ctxt": 0
},
"value": "mid",
"optional": false
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 4530,
"end": 4533,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"span": {
"start": 4530,
"end": 4531,
"ctxt": 0
},
"value": "i",
"optional": false
}
},
"body": {
"type": "ExpressionStatement",
"span": {
"start": 4535,
"end": 4546,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 4535,
"end": 4545,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4535,
"end": 4542,
"ctxt": 0
},
"value": "addChar",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4543,
"end": 4544,
"ctxt": 0
},
"value": "i",
"optional": false
}
}
],
"typeArguments": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 4559,
"end": 4577,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4559,
"end": 4576,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "Identifier",
"span": {
"start": 4559,
"end": 4565,
"ctxt": 0
},
"value": "result",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 4569,
"end": 4576,
"ctxt": 0
},
"value": "(...)",
"raw": "\"(...)\""
}
}
},
{
"type": "ForStatement",
"span": {
"start": 4590,
"end": 4657,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 4595,
"end": 4621,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4599,
"end": 4621,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4599,
"end": 4600,
"ctxt": 0
},
"value": "i",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 4603,
"end": 4621,
"ctxt": 0
},
"operator": "-",
"left": {
"type": "MemberExpression",
"span": {
"start": 4603,
"end": 4615,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4603,
"end": 4608,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4609,
"end": 4615,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 4618,
"end": 4621,
"ctxt": 0
},
"value": "mid",
"optional": false
}
},
"definite": false
}
]
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 4623,
"end": 4639,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Identifier",
"span": {
"start": 4623,
"end": 4624,
"ctxt": 0
},
"value": "i",
"optional": false
},
"right": {
"type": "MemberExpression",
"span": {
"start": 4627,
"end": 4639,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4627,
"end": 4632,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4633,
"end": 4639,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 4641,
"end": 4644,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"span": {
"start": 4641,
"end": 4642,
"ctxt": 0
},
"value": "i",
"optional": false
}
},
"body": {
"type": "ExpressionStatement",
"span": {
"start": 4646,
"end": 4657,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 4646,
"end": 4656,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4646,
"end": 4653,
"ctxt": 0
},
"value": "addChar",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4654,
"end": 4655,
"ctxt": 0
},
"value": "i",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 4681,
"end": 4784,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 4695,
"end": 4717,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4695,
"end": 4716,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 4695,
"end": 4701,
"ctxt": 0
},
"value": "length",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 4704,
"end": 4716,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4704,
"end": 4709,
"ctxt": 0
},
"value": "value",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4710,
"end": 4716,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
},
{
"type": "ForStatement",
"span": {
"start": 4730,
"end": 4774,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 4735,
"end": 4744,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4739,
"end": 4744,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4739,
"end": 4740,
"ctxt": 0
},
"value": "i",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 4743,
"end": 4744,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 4746,
"end": 4756,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Identifier",
"span": {
"start": 4746,
"end": 4747,
"ctxt": 0
},
"value": "i",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 4750,
"end": 4756,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 4758,
"end": 4761,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"span": {
"start": 4758,
"end": 4759,
"ctxt": 0
},
"value": "i",
"optional": false
}
},
"body": {
"type": "ExpressionStatement",
"span": {
"start": 4763,
"end": 4774,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 4763,
"end": 4773,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4763,
"end": 4770,
"ctxt": 0
},
"value": "addChar",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4771,
"end": 4772,
"ctxt": 0
},
"value": "i",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4793,
"end": 4807,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 4800,
"end": 4806,
"ctxt": 0
},
"value": "result",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 3292,
"end": 3300,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3294,
"end": 3300,
"ctxt": 0
},
"kind": "string"
}
}
}
}
]
}
}
],
"interpreter": null
}