{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 14 } } }, "declare": true, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 14 } } }, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 14 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 15 } } } ], "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 18, "column": 2 } } }, "id": { "type": "Identifier", "name": "I1", "decorators": [], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 13 } } }, "extends": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 20, "column": 10 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 14 } } }, "declare": true, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 17 } } }, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 17 } } }, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 17 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 17 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 14 } } }, "declare": true, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 14 } } }, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 14 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 14 } } } ], "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 23, "column": 2 } } }, "id": { "type": "Identifier", "name": "I2", "decorators": [], "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 13 } } }, "extends": [ { "type": "TSInterfaceHeritage", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "I1", "decorators": [], "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 24 } } }, "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 26 } } }, "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 26 } } }, "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 26 } } } ], "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 25, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 25, "column": 7 }, "end": { "line": 25, "column": 8 } } }, "superClass": null, "implements": [ { "type": "TSClassImplements", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "I2", "decorators": [], "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 22 } } }, "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 24 } } }, "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 24 } } }, "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 24 } } } ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 26, "column": 3 }, "end": { "line": 26, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 26, "column": 3 }, "end": { "line": 26, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 26, "column": 10 }, "end": { "line": 26, "column": 14 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 26, "column": 15 }, "end": { "line": 26, "column": 17 } } }, "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 17 } } }, "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 17 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 26, "column": 3 }, "end": { "line": 26, "column": 17 } } }, { "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": 27, "column": 2 }, "end": { "line": 27, "column": 2 } } } ], "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 27, "column": 2 } } }, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 27, "column": 2 } } }, { "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 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 14 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 30, "column": 2 } } }, "loc": { "start": { "line": 29, "column": 14 }, "end": { "line": 30, "column": 2 } } }, "loc": { "start": { "line": 29, "column": 14 }, "end": { "line": 30, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 29, "column": 1 }, "end": { "line": 30, "column": 2 } } } ], "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": 31, "column": 1 } } }