{ "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": "arr", "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 8 } } }, "right": { "type": "TSAsExpression", "expression": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 27 } } }, { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 16, "column": 29 }, "end": { "line": 16, "column": 30 } } }, { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 16, "column": 32 }, "end": { "line": 16, "column": 33 } } } ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Int", "decorators": [], "loc": { "start": { "line": 16, "column": 38 }, "end": { "line": 16, "column": 41 } } }, "loc": { "start": { "line": 16, "column": 38 }, "end": { "line": 16, "column": 42 } } }, "loc": { "start": { "line": 16, "column": 38 }, "end": { "line": 16, "column": 42 } } }, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 44 } } }, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 34 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 34 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 34 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "test", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "right": { "type": "LogicalExpression", "operator": "??", "left": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 20 } } }, "property": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 19 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 20 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, "right": { "type": "StringLiteral", "value": "unknown", "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 33 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 33 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "test2", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 10 } } }, "right": { "type": "LogicalExpression", "operator": "??", "left": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "arr2", "decorators": [], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 17 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 24 } } }, "property": { "type": "NumberLiteral", "value": 100, "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 23 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 24 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, "right": { "type": "StringLiteral", "value": "unknown2", "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 38 } } }, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 38 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 38 } } } ], "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": "arr", "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 8 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Int", "decorators": [], "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 13 } } }, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 14 } } }, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 14 } } }, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 17 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 22 } } } ], "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 22 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 34 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "test", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "value": { "type": "LogicalExpression", "operator": "??", "left": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 20 } } }, "property": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 19 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 20 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, "right": { "type": "StringLiteral", "value": "unknown", "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 33 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 33 } } }, "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": 33 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "arr2", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 9 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "String", "decorators": [], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 17 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 18 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 18 } } }, "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 21 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 26 } } } ], "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 26 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 9 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "test2", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 10 } } }, "value": { "type": "LogicalExpression", "operator": "??", "left": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "arr2", "decorators": [], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 17 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 24 } } }, "property": { "type": "NumberLiteral", "value": 100, "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 23 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 24 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, "right": { "type": "StringLiteral", "value": "unknown2", "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 38 } } }, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 38 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 38 } } } ], "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 } } }