{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "xyz", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "xyz", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 22 } } }, "declare": true, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 17 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } } ], "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "xyz2", "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "xyz2", "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 16 } } }, "declare": true, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 17 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 18 } } } ], "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 23, "column": 6 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 23, "column": 6 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 23, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 23, "column": 6 } } } ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 24, "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": 26, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 26, "column": 7 }, "end": { "line": 26, "column": 8 } } }, "superClass": null, "implements": [ { "type": "TSClassImplements", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "I", "decorators": [], "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 21 } } }, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 23 } } }, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 23 } } }, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 23 } } } ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "xyz2", "decorators": [], "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 18 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "xyz2", "decorators": [], "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 18 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 25 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 10, "loc": { "start": { "line": 28, "column": 16 }, "end": { "line": 28, "column": 18 } } }, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 19 } } } ], "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 29, "column": 6 } } }, "loc": { "start": { "line": 27, "column": 18 }, "end": { "line": 29, "column": 6 } } }, "loc": { "start": { "line": 27, "column": 18 }, "end": { "line": 29, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 29, "column": 6 } } }, { "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": 30, "column": 2 }, "end": { "line": 30, "column": 2 } } } ], "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 30, "column": 2 } } }, "loc": { "start": { "line": 26, "column": 1 }, "end": { "line": 30, "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": 32, "column": 10 }, "end": { "line": 32, "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": 32, "column": 10 }, "end": { "line": 32, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "I", "decorators": [], "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 6 } } }, "property": { "type": "Identifier", "name": "xyz", "decorators": [], "loc": { "start": { "line": 33, "column": 7 }, "end": { "line": 33, "column": 10 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 10 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 12 } } }, "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "I", "decorators": [], "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 13 } } }, "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 15 } } }, "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 10 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 34, "column": 20 }, "end": { "line": 34, "column": 21 } } }, "loc": { "start": { "line": 34, "column": 20 }, "end": { "line": 34, "column": 22 } } }, "loc": { "start": { "line": 34, "column": 20 }, "end": { "line": 34, "column": 22 } } }, "arguments": [], "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 24 } } }, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 24 } } } ], "kind": "let", "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 24 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 6 } } }, "property": { "type": "Identifier", "name": "xyz2", "decorators": [], "loc": { "start": { "line": 35, "column": 7 }, "end": { "line": 35, "column": 11 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 11 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 13 } } }, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 14 } } } ], "loc": { "start": { "line": 32, "column": 23 }, "end": { "line": 36, "column": 2 } } }, "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 36, "column": 2 } } }, "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 36, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 36, "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": 37, "column": 1 } } }