{ "type": "Script", "span": { "start": 133, "end": 433, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 133, "end": 253, "ctxt": 0 }, "declare": true, "global": false, "id": { "type": "Identifier", "span": { "start": 151, "end": 152, "ctxt": 0 }, "value": "N", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 153, "end": 253, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 159, "end": 205, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 169, "end": 170, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 171, "end": 205, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 181, "end": 199, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 181, "end": 188, "ctxt": 0 }, "value": "mNumber", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 190, "end": 198, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 192, "end": 198, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 210, "end": 251, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 220, "end": 222, "ctxt": 0 }, "value": "AT", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 222, "end": 225, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 223, "end": 224, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 223, "end": 224, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 226, "end": 251, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 236, "end": 245, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 236, "end": 239, "ctxt": 0 }, "value": "gen", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 241, "end": 244, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 243, "end": 244, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 243, "end": 244, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 303, "end": 304, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 297, "end": 348, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 311, "end": 346, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 311, "end": 318, "ctxt": 0 }, "value": "mNumber", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 311, "end": 346, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 321, "end": 346, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 331, "end": 340, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 338, "end": 339, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 389, "end": 392, "ctxt": 0 }, "value": "BAT", "optional": false }, "declare": false, "span": { "start": 383, "end": 433, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 399, "end": 431, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 399, "end": 402, "ctxt": 0 }, "value": "gen", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 399, "end": 431, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 405, "end": 431, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 415, "end": 425, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 422, "end": 424, "ctxt": 0 }, "value": "", "raw": "\"\"" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }