{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 1, "column": 1, "program": "async_with_lambda.ets" } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "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, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 1, "column": 1, "program": "async_with_lambda.ets" } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "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, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "loc": { "start": { "line": 1, "column": 1, "program": null }, "end": { "line": 1, "column": 1, "program": null } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 1, "column": 1, "program": "async_with_lambda.ets" } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "global", "decorators": [], "loc": { "start": { "line": 16, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 16, "column": 11, "program": "async_with_lambda.ets" } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 16, "column": 16, "program": "async_with_lambda.ets" } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 16, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 16, "column": 11, "program": "async_with_lambda.ets" } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "func", "decorators": [], "loc": { "start": { "line": 18, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 20, "program": "async_with_lambda.ets" } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func", "decorators": [], "loc": { "start": { "line": 18, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 20, "program": "async_with_lambda.ets" } } }, "generator": false, "async": true, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "param", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 31, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 21, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 31, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 21, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 31, "program": "async_with_lambda.ets" } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 18, "column": 34, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 41, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "String", "decorators": [], "loc": { "start": { "line": 18, "column": 42, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 48, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 42, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 50, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 42, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 50, "program": "async_with_lambda.ets" } } }, { "type": "ETSNullType", "loc": { "start": { "line": 18, "column": 51, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 55, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 18, "column": 42, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 55, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 18, "column": 41, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 56, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 34, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 58, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 34, "program": "async_with_lambda.ets" }, "end": { "line": 18, "column": 58, "program": "async_with_lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "local", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 19, "column": 19, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 19, "column": 14, "program": "async_with_lambda.ets" } } }, "init": null, "loc": { "start": { "line": 19, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 19, "column": 14, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 19, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 19, "column": 20, "program": "async_with_lambda.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "lambda", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 23, "program": "async_with_lambda.ets" }, "end": { "line": 20, "column": 27, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 17, "program": "async_with_lambda.ets" }, "end": { "line": 20, "column": 27, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 20, "column": 15, "program": "async_with_lambda.ets" } } }, "init": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 34, "program": "async_with_lambda.ets" }, "end": { "line": 20, "column": 38, "program": "async_with_lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "param", "decorators": [], "loc": { "start": { "line": 21, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 21, "column": 14, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 21, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 21, "column": 15, "program": "async_with_lambda.ets" } } }, { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "local", "decorators": [], "loc": { "start": { "line": 22, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 22, "column": 14, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 22, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 22, "column": 15, "program": "async_with_lambda.ets" } } }, { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "global", "decorators": [], "loc": { "start": { "line": 23, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 23, "column": 15, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 23, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 23, "column": 16, "program": "async_with_lambda.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 24, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 24, "column": 14, "program": "async_with_lambda.ets" } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 24, "column": 17, "program": "async_with_lambda.ets" }, "end": { "line": 24, "column": 18, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 24, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 24, "column": 18, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 24, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 24, "column": 19, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 20, "column": 42, "program": "async_with_lambda.ets" }, "end": { "line": 25, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 30, "program": "async_with_lambda.ets" }, "end": { "line": 25, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 30, "program": "async_with_lambda.ets" }, "end": { "line": 25, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 25, "column": 6, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 25, "column": 6, "program": "async_with_lambda.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "async_lambda", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 26, "column": 29, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 36, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 26, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 43, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 45, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 45, "program": "async_with_lambda.ets" } } }, { "type": "ETSNullType", "loc": { "start": { "line": 26, "column": 46, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 50, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 26, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 50, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 26, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 51, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 29, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 53, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 29, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 53, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 23, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 53, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 26, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 21, "program": "async_with_lambda.ets" } } }, "init": { "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": 26, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 71, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 26, "column": 72, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 78, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 72, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 80, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 72, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 80, "program": "async_with_lambda.ets" } } }, { "type": "ETSNullType", "loc": { "start": { "line": 26, "column": 81, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 85, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 26, "column": 72, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 85, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 26, "column": 71, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 86, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 89, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 26, "column": 89, "program": "async_with_lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "param", "decorators": [], "loc": { "start": { "line": 27, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 27, "column": 14, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 27, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 27, "column": 15, "program": "async_with_lambda.ets" } } }, { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "local", "decorators": [], "loc": { "start": { "line": 28, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 28, "column": 14, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 28, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 28, "column": 15, "program": "async_with_lambda.ets" } } }, { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "global", "decorators": [], "loc": { "start": { "line": 29, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 29, "column": 15, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 29, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 29, "column": 16, "program": "async_with_lambda.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 30, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 30, "column": 14, "program": "async_with_lambda.ets" } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 30, "column": 17, "program": "async_with_lambda.ets" }, "end": { "line": 30, "column": 18, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 30, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 30, "column": 18, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 30, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 30, "column": 19, "program": "async_with_lambda.ets" } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 31, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 31, "column": 20, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 31, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 31, "column": 21, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 26, "column": 90, "program": "async_with_lambda.ets" }, "end": { "line": 32, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 60, "program": "async_with_lambda.ets" }, "end": { "line": 32, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 60, "program": "async_with_lambda.ets" }, "end": { "line": 32, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 26, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 32, "column": 6, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 26, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 32, "column": 6, "program": "async_with_lambda.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "asyncLambda", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 33, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 35, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 33, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 42, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 43, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 43, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 33, "column": 35, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 43, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 45, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 45, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 22, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 45, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 33, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 20, "program": "async_with_lambda.ets" } } }, "init": { "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": 33, "column": 56, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 63, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 33, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 70, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 71, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 64, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 71, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 33, "column": 63, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 71, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 56, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 74, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 56, "program": "async_with_lambda.ets" }, "end": { "line": 33, "column": 74, "program": "async_with_lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Promise", "decorators": [], "loc": { "start": { "line": 34, "column": 20, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 27, "program": "async_with_lambda.ets" } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 34, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 34, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 35, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 28, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 35, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 34, "column": 27, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 35, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 20, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 36, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 20, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 36, "program": "async_with_lambda.ets" } } }, "arguments": [ { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "resolve", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 34, "column": 54, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 60, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 54, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 61, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 54, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 61, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 47, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 61, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 47, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 61, "program": "async_with_lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 34, "column": 65, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 69, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 46, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 69, "program": "async_with_lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 69, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 37, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 69, "program": "async_with_lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 34, "column": 72, "program": "async_with_lambda.ets" }, "end": { "line": 34, "column": 76, "program": "async_with_lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "resolve", "decorators": [], "loc": { "start": { "line": 35, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 20, "program": "async_with_lambda.ets" } } }, "arguments": [ { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 35, "column": 25, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 31, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 35, "column": 25, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 32, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 35, "column": 25, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 32, "program": "async_with_lambda.ets" } } }, "arguments": [], "loc": { "start": { "line": 35, "column": 21, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 34, "program": "async_with_lambda.ets" } } } ], "optional": false, "loc": { "start": { "line": 35, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 34, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 35, "column": 13, "program": "async_with_lambda.ets" }, "end": { "line": 35, "column": 35, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 34, "column": 80, "program": "async_with_lambda.ets" }, "end": { "line": 36, "column": 10, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 36, "column": 10, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 36, "program": "async_with_lambda.ets" }, "end": { "line": 36, "column": 10, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 34, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 36, "column": 12, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 34, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 36, "column": 12, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 33, "column": 75, "program": "async_with_lambda.ets" }, "end": { "line": 37, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 52, "program": "async_with_lambda.ets" }, "end": { "line": 37, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 52, "program": "async_with_lambda.ets" }, "end": { "line": 37, "column": 6, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 33, "column": 9, "program": "async_with_lambda.ets" }, "end": { "line": 37, "column": 6, "program": "async_with_lambda.ets" } } } ], "kind": "let", "loc": { "start": { "line": 33, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 37, "column": 6, "program": "async_with_lambda.ets" } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 38, "column": 12, "program": "async_with_lambda.ets" }, "end": { "line": 38, "column": 16, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 38, "column": 5, "program": "async_with_lambda.ets" }, "end": { "line": 38, "column": 17, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 18, "column": 57, "program": "async_with_lambda.ets" }, "end": { "line": 39, "column": 2, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 39, "column": 2, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 18, "column": 16, "program": "async_with_lambda.ets" }, "end": { "line": 39, "column": 2, "program": "async_with_lambda.ets" } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 39, "column": 2, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 1, "column": 1, "program": "async_with_lambda.ets" } } }, "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 1, "column": 1, "program": "async_with_lambda.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "async_with_lambda.ets" }, "end": { "line": 40, "column": 1, "program": "async_with_lambda.ets" } } }