{ "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": "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": "throws", "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 11 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 15 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 15 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 15 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "rethrows", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 13 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 17 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 17 } } } ], "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": "ClassProperty", "key": { "type": "Identifier", "name": "throws", "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 11 } } }, "value": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 15 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 15 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "rethrows", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 13 } } }, "value": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 17 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "testFunction", "decorators": [], "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 22 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "testFunction", "decorators": [], "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 22 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 19, "column": 30 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 19, "column": 38 }, "end": { "line": 19, "column": 40 } } } "throwMarker": "throws", "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 40 } } }, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 40 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 40 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "testFunction2", "decorators": [], "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 23 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "testFunction2", "decorators": [], "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 23 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "f", "typeAnnotation": { "type": "ETSFunctionType", "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 37 } } } "throwMarker": "throws", "loc": { "start": { "line": 20, "column": 27 }, "end": { "line": 20, "column": 37 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 37 } } }, "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 37 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 47 }, "end": { "line": 20, "column": 51 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 20, "column": 61 }, "end": { "line": 20, "column": 63 } } } "throwMarker": "rethrows", "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 63 } } }, "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 63 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 63 } } } ], "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": 21, "column": 1 } } }