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