{ "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": "f", "decorators": [], "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 11 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "f", "decorators": [], "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 11 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "n", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "number", "decorators": [], "loc": { "start": { "line": 16, "column": 15 }, "end": { "line": 16, "column": 21 } } }, "loc": { "start": { "line": 16, "column": 15 }, "end": { "line": 16, "column": 22 } } }, "loc": { "start": { "line": 16, "column": 15 }, "end": { "line": 16, "column": 22 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 22 } } }, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 22 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 24 }, "end": { "line": 16, "column": 27 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "UnaryExpression", "operator": "!", "prefix": true, "argument": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 11 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 17 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 19, "column": 6 } } }, "alternate": null, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 13 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 14 } } } ], "loc": { "start": { "line": 16, "column": 28 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 21, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 21, "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": 22, "column": 1 } } }