{ "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": 21 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 12 } } }, "init": { "type": "StringLiteral", "value": "", "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 17 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 17 } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 17 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "arr", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Long", "decorators": [], "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 18 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 19 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 19 } } }, "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 22 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 12 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Long", "decorators": [], "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 32 } } }, "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 33 } } }, "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 33 } } }, "arguments": [ { "type": "TSAsExpression", "expression": { "type": "NumberLiteral", "value": 10, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 35 } } }, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 39 }, "end": { "line": 18, "column": 43 } } }, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 35 } } } ], "loc": { "start": { "line": 18, "column": 24 }, "end": { "line": 18, "column": 45 } } }, { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Long", "decorators": [], "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 54 } } }, "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 55 } } }, "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 55 } } }, "arguments": [ { "type": "TSAsExpression", "expression": { "type": "NumberLiteral", "value": 12, "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 57 } } }, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 61 }, "end": { "line": 18, "column": 65 } } }, "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 57 } } } ], "loc": { "start": { "line": 18, "column": 46 }, "end": { "line": 18, "column": 67 } } }, { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Long", "decorators": [], "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 76 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 77 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 77 } } }, "arguments": [ { "type": "TSAsExpression", "expression": { "type": "NumberLiteral", "value": 33, "loc": { "start": { "line": 18, "column": 77 }, "end": { "line": 18, "column": 79 } } }, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 83 }, "end": { "line": 18, "column": 87 } } }, "loc": { "start": { "line": 18, "column": 77 }, "end": { "line": 18, "column": 79 } } } ], "loc": { "start": { "line": 18, "column": 68 }, "end": { "line": 18, "column": 89 } } } ], "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 89 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 89 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 89 } } }, { "type": "ForOfStatement", "await": false, "left": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 21 } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } }, "init": null, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } } ], "kind": "let", "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 15 } } }, "right": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 19, "column": 25 }, "end": { "line": 19, "column": 28 } } }, "body": { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 33 } } }, "right": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 19, "column": 37 }, "end": { "line": 19, "column": 38 } } }, "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 38 } } }, "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 38 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 38 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 12 } } }, "right": { "type": "StringLiteral", "value": "101233", "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 24 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 24 } } }, "consequent": { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 34 } } }, "loc": { "start": { "line": 20, "column": 26 }, "end": { "line": 20, "column": 35 } } }, "alternate": null, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 35 } } }, { "type": "ReturnStatement", "argument": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 13 } } }, "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 14 } } } ], "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 22, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 22, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 22, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 22, "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": 23, "column": 1 } } }