{ "type": "Program", "statements": [ { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "TNumberStringPair", "decorators": [], "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 23 } } }, "typeAnnotation": { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "number", "decorators": [], "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 33 } } }, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 34 } } }, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 34 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "string", "decorators": [], "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 41 } } }, "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 42 } } }, "loc": { "start": { "line": 16, "column": 35 }, "end": { "line": 16, "column": 42 } } } ], "spreadType": null, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 43 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 43 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "TTupleUnion", "decorators": [], "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 17 } } }, "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "TNumberStringPair", "decorators": [], "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 37 } } }, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 38 } } }, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 38 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 17, "column": 38 }, "end": { "line": 17, "column": 47 } } } ], "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 47 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 48 } } }, { "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": 19, "column": 10 }, "end": { "line": 19, "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": 19, "column": 10 }, "end": { "line": 19, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "TNumberStringPair", "decorators": [], "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 28 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 30 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 9 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 12, "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 36 } } }, { "type": "StringLiteral", "value": "Hello World", "loc": { "start": { "line": 20, "column": 38 }, "end": { "line": 20, "column": 51 } } } ], "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 52 } } }, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 52 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 53 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "TTupleUnion", "decorators": [], "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 22 } } }, "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 24 } } }, "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 9 } } }, "init": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "column": 34 } } }, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 34 } } } ], "kind": "let", "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 35 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 12 } } }, "property": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 14 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 15 } } }, "right": { "type": "NumberLiteral", "value": 12, "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 23 } } }, "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 23 } } }, "second": null, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 24 } } } ], "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 24, "column": 2 } } }, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 24, "column": 2 } } }, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 24, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 24, "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": 25, "column": 1 } } }