{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "superClass": null, "implements": [], "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": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Number", "decorators": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 17 } } }, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 18 } } }, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 18 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 9 } } } ], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 18 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 18 } } }, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 18 } } } ], "returnType": { "type": "TSThisType", "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 24 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ThisExpression", "loc": { "start": { "line": 17, "column": 34 }, "end": { "line": 17, "column": 38 } } }, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 39 } } } ], "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 41 } } }, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 41 } } }, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 41 } } }, "overloads": [ { "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": "TSThisType", "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 24 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "property": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ReturnStatement", "argument": { "type": "ThisExpression", "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": 618, "column": 1 }, "end": { "line": 618, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 1, "column": 1 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 41 } } }, { "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": 18, "column": 2 }, "end": { "line": 18, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 18, "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": 20, "column": 10 }, "end": { "line": 20, "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": 20, "column": 10 }, "end": { "line": 20, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 25 } } }, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 25 } } }, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 25 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 25 } } } ], "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": 21, "column": 1 } } }