{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 1, "column": 1, "program": "lambda-lambda.ets" } } }, "superClass": null, "implements": [], "body": [ { "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": "lambda-lambda.ets" }, "end": { "line": 1, "column": 1, "program": "lambda-lambda.ets" } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 16, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 13, "program": "lambda-lambda.ets" } } }, "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": 16, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 13, "program": "lambda-lambda.ets" } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "callback", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "resolve", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "val", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 40, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 43, "program": "lambda-lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 35, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 43, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 35, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 43, "program": "lambda-lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 48, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 52, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 34, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 52, "program": "lambda-lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 25, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 52, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 25, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 52, "program": "lambda-lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 57, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 61, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 24, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 61, "program": "lambda-lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 14, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 61, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 14, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 61, "program": "lambda-lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 64, "program": "lambda-lambda.ets" }, "end": { "line": 16, "column": 68, "program": "lambda-lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 16, "column": 69, "program": "lambda-lambda.ets" }, "end": { "line": 17, "column": 2, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 17, "column": 2, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 16, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 17, "column": 2, "program": "lambda-lambda.ets" } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 17, "column": 2, "program": "lambda-lambda.ets" } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 19, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 19, "column": 14, "program": "lambda-lambda.ets" } } }, "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": 19, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 19, "column": 14, "program": "lambda-lambda.ets" } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 18, "program": "lambda-lambda.ets" }, "end": { "line": 19, "column": 22, "program": "lambda-lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 20, "column": 5, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 8, "program": "lambda-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": "val", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 25, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 28, "program": "lambda-lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 20, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 28, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 20, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 28, "program": "lambda-lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 33, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 37, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 19, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 37, "program": "lambda-lambda.ets" } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 37, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 37, "program": "lambda-lambda.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 40, "program": "lambda-lambda.ets" }, "end": { "line": 20, "column": 44, "program": "lambda-lambda.ets" } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 20, "column": 48, "program": "lambda-lambda.ets" }, "end": { "line": 21, "column": 6, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 9, "program": "lambda-lambda.ets" }, "end": { "line": 21, "column": 6, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 9, "program": "lambda-lambda.ets" }, "end": { "line": 21, "column": 6, "program": "lambda-lambda.ets" } } } ], "optional": false, "loc": { "start": { "line": 20, "column": 5, "program": "lambda-lambda.ets" }, "end": { "line": 21, "column": 7, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 20, "column": 5, "program": "lambda-lambda.ets" }, "end": { "line": 21, "column": 8, "program": "lambda-lambda.ets" } } } ], "loc": { "start": { "line": 19, "column": 23, "program": "lambda-lambda.ets" }, "end": { "line": 22, "column": 2, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 19, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 22, "column": 2, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 19, "column": 10, "program": "lambda-lambda.ets" }, "end": { "line": 22, "column": 2, "program": "lambda-lambda.ets" } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 22, "column": 2, "program": "lambda-lambda.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 1, "column": 1, "program": "lambda-lambda.ets" } } }, "loc": { "start": { "line": 1, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 1, "column": 1, "program": "lambda-lambda.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "lambda-lambda.ets" }, "end": { "line": 24, "column": 1, "program": "lambda-lambda.ets" } } }