{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Test", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 11 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 21 } } }, "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": 17, "column": 18 }, "end": { "line": 17, "column": 21 } } }, "generator": false, "async": true, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 32 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 39 } } }, "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 41 } } }, "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 41 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 17, "column": 42 }, "end": { "line": 17, "column": 46 } } } ], "loc": { "start": { "line": 17, "column": 33 }, "end": { "line": 17, "column": 46 } } } ], "loc": { "start": { "line": 17, "column": 32 }, "end": { "line": 17, "column": 47 } } }, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 49 } } }, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 49 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 61 } } }, "loc": { "start": { "line": 17, "column": 50 }, "end": { "line": 17, "column": 62 } } } ], "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 64 } } }, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 64 } } }, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 64 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 64 } } }, { "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": 12 }, "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": "main", "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": "main", "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": "_$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": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "lambda", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 11 } } }, "right": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": true, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 61 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 22, "column": 62 }, "end": { "line": 22, "column": 68 } } }, "loc": { "start": { "line": 22, "column": 62 }, "end": { "line": 22, "column": 70 } } }, "loc": { "start": { "line": 22, "column": 62 }, "end": { "line": 22, "column": 70 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 22, "column": 71 }, "end": { "line": 22, "column": 75 } } } ], "loc": { "start": { "line": 22, "column": 62 }, "end": { "line": 22, "column": 75 } } } ], "loc": { "start": { "line": 22, "column": 61 }, "end": { "line": 22, "column": 76 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 79 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 79 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 22, "column": 89 }, "end": { "line": 22, "column": 93 } } }, "loc": { "start": { "line": 22, "column": 82 }, "end": { "line": 22, "column": 94 } } } ], "loc": { "start": { "line": 22, "column": 80 }, "end": { "line": 22, "column": 96 } } }, "loc": { "start": { "line": 22, "column": 50 }, "end": { "line": 22, "column": 96 } } }, "loc": { "start": { "line": 22, "column": 50 }, "end": { "line": 22, "column": 96 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 96 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 96 } } } ], "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": "foo", "decorators": [], "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 19 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 19 } } }, "generator": false, "async": true, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 30 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 37 } } }, "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 39 } } }, "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 39 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 20, "column": 40 }, "end": { "line": 20, "column": 44 } } } ], "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 44 } } } ], "loc": { "start": { "line": 20, "column": 30 }, "end": { "line": 20, "column": 45 } } }, "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 47 } } }, "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 47 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 20, "column": 55 }, "end": { "line": 20, "column": 59 } } }, "loc": { "start": { "line": 20, "column": 48 }, "end": { "line": 20, "column": 60 } } } ], "loc": { "start": { "line": 20, "column": 46 }, "end": { "line": 20, "column": 62 } } }, "loc": { "start": { "line": 20, "column": 19 }, "end": { "line": 20, "column": 62 } } }, "loc": { "start": { "line": 20, "column": 19 }, "end": { "line": 20, "column": 62 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 62 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "lambda", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 11 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 26 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 22, "column": 27 }, "end": { "line": 22, "column": 33 } } }, "loc": { "start": { "line": 22, "column": 27 }, "end": { "line": 22, "column": 35 } } }, "loc": { "start": { "line": 22, "column": 27 }, "end": { "line": 22, "column": 35 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 22, "column": 40 } } } ], "loc": { "start": { "line": 22, "column": 27 }, "end": { "line": 22, "column": 40 } } } ], "loc": { "start": { "line": 22, "column": 26 }, "end": { "line": 22, "column": 41 } } }, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 43 } } }, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 43 } } }, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 43 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 96 } } } ], "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": 23, "column": 1 } } }