{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 5 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 5 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 12 } } }, "declare": true, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 12 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 12 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 13 } } } ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 18, "column": 2 } } }, "id": { "type": "Identifier", "name": "I", "decorators": [], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 12 } } }, "extends": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 20, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 12 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 12 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 19 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 42, "loc": { "start": { "line": 21, "column": 29 }, "end": { "line": 21, "column": 31 } } }, "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 32 } } } ], "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 34 } } }, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 34 } } }, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 34 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 34 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 2 }, "end": { "line": 22, "column": 2 } } } ], "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 22, "column": 2 } } }, "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 22, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 24, "column": 16 }, "end": { "line": 24, "column": 17 } } }, "superClass": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 27 } } }, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 38 } } }, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 38 } } }, "implements": [ { "type": "TSClassImplements", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "I", "decorators": [], "loc": { "start": { "line": 24, "column": 39 }, "end": { "line": 24, "column": 40 } } }, "loc": { "start": { "line": 24, "column": 39 }, "end": { "line": 24, "column": 42 } } }, "loc": { "start": { "line": 24, "column": 39 }, "end": { "line": 24, "column": 42 } } }, "loc": { "start": { "line": 24, "column": 39 }, "end": { "line": 24, "column": 42 } } } ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 24, "column": 44 }, "end": { "line": 24, "column": 44 } } } ], "loc": { "start": { "line": 24, "column": 41 }, "end": { "line": 24, "column": 44 } } }, "loc": { "start": { "line": 24, "column": 10 }, "end": { "line": 24, "column": 44 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 25, "column": 1 } } }