{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "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": 16, "column": 11 }, "end": { "line": 16, "column": 11 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 11 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 11 } } }, { "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": 18, "column": 10 }, "end": { "line": 18, "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": 18, "column": 10 }, "end": { "line": 18, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "xo", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 20 } } }, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 21 } } }, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 21 } } }, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 23 } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 11 } } }, "init": null, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 11 } } } ], "kind": "let", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 23 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "an", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 15 } } }, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 24 } } } ], "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 11 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 33 } } }, "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 34 } } }, "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 34 } } }, "arguments": [], "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 36 } } }, { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 20, "column": 42 } } }, "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 20, "column": 43 } } }, "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 20, "column": 43 } } }, "arguments": [], "loc": { "start": { "line": 20, "column": 37 }, "end": { "line": 20, "column": 45 } } } ], "loc": { "start": { "line": 20, "column": 27 }, "end": { "line": 20, "column": 45 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 45 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 46 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "xo", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 7 } } }, "right": { "type": "Identifier", "name": "an", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 12 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 12 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 13 } } } ], "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 23, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 23, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 23, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 23, "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": 24, "column": 1 } } }