{ "type": "Script", "span": { "start": 0, "end": 514, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 0, "end": 271, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 7, "end": 8, "ctxt": 0 }, "value": "A", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 9, "end": 271, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 15, "end": 79, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 28, "end": 29, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 22, "end": 79, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 40, "end": 51, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 40, "end": 42, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 42, "end": 50, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 44, "end": 50, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 60, "end": 73, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 60, "end": 64, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 64, "end": 72, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 66, "end": 72, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } }, { "type": "ExportDeclaration", "span": { "start": 85, "end": 145, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 98, "end": 100, "ctxt": 0 }, "value": "AG", "optional": false }, "declare": false, "span": { "start": 92, "end": 145, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 116, "end": 122, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 116, "end": 118, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 118, "end": 121, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 120, "end": 121, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 120, "end": 121, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 131, "end": 139, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 131, "end": 135, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 135, "end": 138, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 137, "end": 138, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 137, "end": 138, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 100, "end": 106, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 101, "end": 102, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 101, "end": 102, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null }, { "type": "TsTypeParameter", "span": { "start": 104, "end": 105, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 104, "end": 105, "ctxt": 0 }, "value": "U", "optional": false }, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 157, "end": 159, "ctxt": 0 }, "value": "A2", "optional": false }, "declare": false, "span": { "start": 151, "end": 209, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 170, "end": 181, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 170, "end": 172, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 172, "end": 180, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 174, "end": 180, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 190, "end": 203, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 190, "end": 194, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 194, "end": 202, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 196, "end": 202, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 221, "end": 224, "ctxt": 0 }, "value": "AG2", "optional": false }, "declare": false, "span": { "start": 215, "end": 269, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 240, "end": 246, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 240, "end": 242, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 242, "end": 245, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 244, "end": 245, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 244, "end": 245, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 255, "end": 263, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 255, "end": 259, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 259, "end": 262, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 261, "end": 262, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 261, "end": 262, "ctxt": 0 }, "value": "U", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 224, "end": 230, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 225, "end": 226, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 225, "end": 226, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null }, { "type": "TsTypeParameter", "span": { "start": 228, "end": 229, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 228, "end": 229, "ctxt": 0 }, "value": "U", "optional": false }, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] } ] } }, { "type": "VariableDeclaration", "span": { "start": 319, "end": 355, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 323, "end": 354, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 323, "end": 324, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 324, "end": 354, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 326, "end": 354, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 328, "end": 339, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 328, "end": 330, "ctxt": 0 }, "value": "id", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 330, "end": 338, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 332, "end": 338, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 340, "end": 352, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 340, "end": 344, "ctxt": 0 }, "value": "name", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 344, "end": 352, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 346, "end": 352, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 356, "end": 374, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 360, "end": 373, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 360, "end": 361, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 364, "end": 373, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 368, "end": 371, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 368, "end": 369, "ctxt": 0 }, "value": "A", "optional": false }, "property": { "type": "Identifier", "span": { "start": 370, "end": 371, "ctxt": 0 }, "value": "A", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 376, "end": 411, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 380, "end": 411, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 380, "end": 382, "ctxt": 0 }, "value": "AG", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 385, "end": 411, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 389, "end": 393, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 389, "end": 390, "ctxt": 0 }, "value": "A", "optional": false }, "property": { "type": "Identifier", "span": { "start": 391, "end": 393, "ctxt": 0 }, "value": "AG", "optional": false } }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 393, "end": 409, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 394, "end": 400, "ctxt": 0 }, "kind": "number" }, { "type": "TsKeywordType", "span": { "start": 402, "end": 408, "ctxt": 0 }, "kind": "string" } ] } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 456, "end": 476, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 460, "end": 475, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 460, "end": 462, "ctxt": 0 }, "value": "a2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 465, "end": 475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 469, "end": 473, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 469, "end": 470, "ctxt": 0 }, "value": "A", "optional": false }, "property": { "type": "Identifier", "span": { "start": 471, "end": 473, "ctxt": 0 }, "value": "A2", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 477, "end": 514, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 481, "end": 513, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 481, "end": 484, "ctxt": 0 }, "value": "ag2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 487, "end": 513, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 491, "end": 495, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 491, "end": 492, "ctxt": 0 }, "value": "A", "optional": false }, "property": { "type": "Identifier", "span": { "start": 493, "end": 495, "ctxt": 0 }, "value": "A2", "optional": false } }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 495, "end": 511, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 496, "end": 502, "ctxt": 0 }, "kind": "string" }, { "type": "TsKeywordType", "span": { "start": 504, "end": 510, "ctxt": 0 }, "kind": "number" } ] } }, "definite": false } ] } ], "interpreter": null }