{ "type": "Script", "span": { "start": 64, "end": 458, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 64, "end": 154, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 78, "end": 101, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 78, "end": 89, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 90, "end": 99, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 90, "end": 99, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 91, "end": 99, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 93, "end": 99, "ctxt": 0 }, "kind": "string" } } } } ], "body": null, "accessibility": null, "isOptional": false }, { "type": "Constructor", "span": { "start": 106, "end": 129, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 106, "end": 117, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 118, "end": 127, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 118, "end": 127, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 119, "end": 127, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 121, "end": 127, "ctxt": 0 }, "kind": "number" } } } } ], "body": null, "accessibility": null, "isOptional": false }, { "type": "Constructor", "span": { "start": 134, "end": 152, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 134, "end": 145, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 146, "end": 147, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 146, "end": 147, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null } } ], "body": { "type": "BlockStatement", "span": { "start": 149, "end": 152, "ctxt": 0 }, "stmts": [] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 162, "end": 163, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 156, "end": 249, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 173, "end": 196, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 173, "end": 184, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 185, "end": 194, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 185, "end": 194, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 186, "end": 194, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 188, "end": 194, "ctxt": 0 }, "kind": "string" } } } } ], "body": null, "accessibility": null, "isOptional": false }, { "type": "Constructor", "span": { "start": 201, "end": 224, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 201, "end": 212, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 213, "end": 222, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 213, "end": 222, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 214, "end": 222, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 216, "end": 222, "ctxt": 0 }, "kind": "number" } } } } ], "body": null, "accessibility": null, "isOptional": false }, { "type": "Constructor", "span": { "start": 229, "end": 247, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 229, "end": 240, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 241, "end": 242, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 241, "end": 242, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null } } ], "body": { "type": "BlockStatement", "span": { "start": 244, "end": 247, "ctxt": 0 }, "stmts": [] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 163, "end": 166, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 164, "end": 165, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 251, "end": 312, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 255, "end": 311, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 255, "end": 256, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 256, "end": 307, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 258, "end": 307, "ctxt": 0 }, "members": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 264, "end": 282, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 268, "end": 277, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 269, "end": 277, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 271, "end": 277, "ctxt": 0 }, "kind": "string" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 278, "end": 281, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 280, "end": 281, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 280, "end": 281, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } }, "typeParams": null }, { "type": "TsConstructSignatureDeclaration", "span": { "start": 287, "end": 305, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 291, "end": 300, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 292, "end": 300, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 294, "end": 300, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 301, "end": 304, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 303, "end": 304, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 303, "end": 304, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } }, "init": { "type": "Identifier", "span": { "start": 310, "end": 311, "ctxt": 0 }, "value": "C", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 314, "end": 382, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 318, "end": 381, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 318, "end": 320, "ctxt": 0 }, "value": "f2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 320, "end": 377, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 322, "end": 377, "ctxt": 0 }, "members": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 328, "end": 349, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 335, "end": 344, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 336, "end": 344, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 338, "end": 344, "ctxt": 0 }, "kind": "string" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 345, "end": 348, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 347, "end": 348, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 347, "end": 348, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 331, "end": 334, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 332, "end": 333, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 332, "end": 333, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] } }, { "type": "TsConstructSignatureDeclaration", "span": { "start": 354, "end": 375, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 361, "end": 370, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 362, "end": 370, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 364, "end": 370, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 371, "end": 374, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 373, "end": 374, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 373, "end": 374, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 357, "end": 360, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 358, "end": 359, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 358, "end": 359, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] } } ] } } }, "init": { "type": "Identifier", "span": { "start": 380, "end": 381, "ctxt": 0 }, "value": "C", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 384, "end": 458, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 388, "end": 457, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 388, "end": 390, "ctxt": 0 }, "value": "f3", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 390, "end": 453, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 392, "end": 453, "ctxt": 0 }, "members": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 398, "end": 422, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 405, "end": 414, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 406, "end": 414, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 408, "end": 414, "ctxt": 0 }, "kind": "string" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 415, "end": 421, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 417, "end": 421, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 417, "end": 418, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 418, "end": 421, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 419, "end": 420, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 419, "end": 420, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 401, "end": 404, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 402, "end": 403, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 402, "end": 403, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] } }, { "type": "TsConstructSignatureDeclaration", "span": { "start": 427, "end": 451, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 434, "end": 443, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 435, "end": 443, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 437, "end": 443, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 444, "end": 450, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 446, "end": 450, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 446, "end": 447, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 447, "end": 450, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 448, "end": 449, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 448, "end": 449, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 430, "end": 433, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 431, "end": 432, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 431, "end": 432, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] } } ] } } }, "init": { "type": "Identifier", "span": { "start": 456, "end": 457, "ctxt": 0 }, "value": "D", "optional": false }, "definite": false } ] } ], "interpreter": null }