{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.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": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 16, "column": 10, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 16, "column": 14, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.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": 16, "column": 10, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 16, "column": 14, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 18, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 16, "column": 22, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 15, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 18, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 13, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 18, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 13, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 18, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 23, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 26, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 20, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 26, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 20, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 26, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 31, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 34, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 12, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 34, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 10, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "init": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": true, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 40, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 43, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 38, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 43, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 38, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 43, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 48, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 51, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 45, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 51, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 45, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 51, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 54, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 57, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 61, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 62, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "right": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 17, "column": 63, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 64, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 61, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 64, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "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": 17, "column": 37, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 64, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 37, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 64, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 17, "column": 9, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 64, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 5, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 17, "column": 65, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "test_variable", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 24, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 27, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 9, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 22, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 18, "column": 30, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 31, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "arguments": [ { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 18, "column": 32, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 33, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 18, "column": 34, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 35, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 30, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 36, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 18, "column": 9, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 36, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 5, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 18, "column": 37, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "loc": { "start": { "line": 16, "column": 23, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 19, "column": 2, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 16, "column": 10, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 19, "column": 2, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 16, "column": 10, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 19, "column": 2, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 19, "column": 2, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }, "loc": { "start": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } } ], "loc": { "start": { "line": 1, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" }, "end": { "line": 20, "column": 1, "program": "lambdaExpressionWithoutBlockStatementWithFunctionParameters.ets" } } }