{ "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": "regularFunc1", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "regularFunc1", "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "param", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 36 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 36 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 36 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 36 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 46 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 54 } } } ], "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 55 } } }, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 57 } } }, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 57 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 19 } } }, "property": { "type": "Identifier", "name": "resolve", "decorators": [], "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 27 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 27 } } }, "arguments": [ { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 18, "column": 37 }, "end": { "line": 18, "column": 41 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 35 } } } ], "loc": { "start": { "line": 18, "column": 27 }, "end": { "line": 18, "column": 36 } } }, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 42 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 43 } } } ], "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 19, "column": 4 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 4 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 4 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "regularFunc1", "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "regularFunc1", "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 26 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 16 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 17 } } } ], "loc": { "start": { "line": 21, "column": 27 }, "end": { "line": 23, "column": 4 } } }, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 23, "column": 4 } } }, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 23, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 23, "column": 4 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 19, "column": 4 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "regularFunc2", "decorators": [], "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 21 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "regularFunc2", "decorators": [], "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 21 } } }, "generator": false, "async": true, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "param", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 25, "column": 35 }, "end": { "line": 25, "column": 42 } } }, "loc": { "start": { "line": 25, "column": 29 }, "end": { "line": 25, "column": 42 } } }, "decorators": [], "loc": { "start": { "line": 25, "column": 22 }, "end": { "line": 25, "column": 42 } } }, "loc": { "start": { "line": 25, "column": 22 }, "end": { "line": 25, "column": 42 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 25, "column": 45 }, "end": { "line": 25, "column": 52 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSPrimitiveType", "loc": { "start": { "line": 25, "column": 53 }, "end": { "line": 25, "column": 60 } } } ], "loc": { "start": { "line": 25, "column": 52 }, "end": { "line": 25, "column": 61 } } }, "loc": { "start": { "line": 25, "column": 45 }, "end": { "line": 25, "column": 63 } } }, "loc": { "start": { "line": 25, "column": 45 }, "end": { "line": 25, "column": 63 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 19 } } }, "property": { "type": "Identifier", "name": "resolve", "decorators": [], "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 27 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 27 } } }, "arguments": [ { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 26, "column": 37 }, "end": { "line": 26, "column": 41 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSPrimitiveType", "loc": { "start": { "line": 26, "column": 28 }, "end": { "line": 26, "column": 35 } } } ], "loc": { "start": { "line": 26, "column": 27 }, "end": { "line": 26, "column": 36 } } }, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 42 } } }, "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 43 } } } ], "loc": { "start": { "line": 25, "column": 62 }, "end": { "line": 27, "column": 4 } } }, "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 27, "column": 4 } } }, "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 27, "column": 4 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "regularFunc2", "decorators": [], "loc": { "start": { "line": 29, "column": 3 }, "end": { "line": 29, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "regularFunc2", "decorators": [], "loc": { "start": { "line": 29, "column": 3 }, "end": { "line": 29, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 29, "column": 19 }, "end": { "line": 29, "column": 26 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 16 } } }, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 17 } } } ], "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 31, "column": 4 } } }, "loc": { "start": { "line": 29, "column": 15 }, "end": { "line": 31, "column": 4 } } }, "loc": { "start": { "line": 29, "column": 15 }, "end": { "line": 31, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 29, "column": 3 }, "end": { "line": 31, "column": 4 } } } ], "decorators": [], "loc": { "start": { "line": 25, "column": 3 }, "end": { "line": 27, "column": 4 } } }, { "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": 32, "column": 2 }, "end": { "line": 32, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 32, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 32, "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 } } } ], "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": 33, "column": 1 } } }