{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var1", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "init": null, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var2", "decorators": [], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 17 } } }, "init": null, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 17 } } } ], "kind": "var", "declare": true, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var3", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 9 } } }, "init": null, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 9 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var4", "decorators": [], "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 17 } } }, "init": null, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 17 } } } ], "kind": "let", "declare": true, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 18 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var5", "decorators": [], "loc": { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 15 } } }, "loc": { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 15 } } } ], "kind": "const", "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 16 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var6", "decorators": [], "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 23 } } }, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 23 } } } ], "kind": "const", "declare": true, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 24 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "var7", "decorators": [], "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 19 } } }, "init": null, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 19 } } } ], "kind": "const", "declare": true, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 20 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "type1", "decorators": [], "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 11 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 20 } } }, { "type": "TSStringKeyword", "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 29 } } } ], "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 29 } } }, "loc": { "start": { "line": 27, "column": 1 }, "end": { "line": 27, "column": 30 } } }, { "type": "EmptyStatement", "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 30 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "type2", "decorators": [], "loc": { "start": { "line": 28, "column": 14 }, "end": { "line": 28, "column": 19 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSNumberKeyword", "loc": { "start": { "line": 28, "column": 22 }, "end": { "line": 28, "column": 28 } } }, { "type": "TSStringKeyword", "loc": { "start": { "line": 28, "column": 31 }, "end": { "line": 28, "column": 37 } } } ], "loc": { "start": { "line": 28, "column": 22 }, "end": { "line": 28, "column": 37 } } }, "declare": true, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 38 } } }, { "type": "EmptyStatement", "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 38 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func1", "decorators": [], "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 30, "column": 18 }, "end": { "line": 30, "column": 21 } } }, "loc": { "start": { "line": 30, "column": 1 }, "end": { "line": 30, "column": 21 } } }, "loc": { "start": { "line": 30, "column": 1 }, "end": { "line": 30, "column": 21 } } }, { "type": "EmptyStatement", "loc": { "start": { "line": 30, "column": 21 }, "end": { "line": 30, "column": 22 } } }, { "type": "TSDeclareFunction", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "func2", "decorators": [], "loc": { "start": { "line": 31, "column": 18 }, "end": { "line": 31, "column": 23 } } }, "generator": false, "async": false, "expression": false, "params": [], "declare": true, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 26 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "func2", "decorators": [], "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 6 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 8 } } }, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 9 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Class1", "decorators": [], "loc": { "start": { "line": 34, "column": 15 }, "end": { "line": 34, "column": 21 } } }, "superClass": null, "implements": [], "constructor": { "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": null, "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": 45, "column": 2 }, "end": { "line": 45, "column": 2 } } }, "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 35, "column": 24 }, "end": { "line": 35, "column": 25 } } }, "kind": "get", "accessibility": "private", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 35, "column": 25 }, "end": { "line": 36, "column": 11 } } }, "loc": { "start": { "line": 35, "column": 25 }, "end": { "line": 36, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 36, "column": 11 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "g", "decorators": [], "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 13 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 37, "column": 11 } } }, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 37, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 36, "column": 5 }, "end": { "line": 37, "column": 11 } } }, { "type": "ClassProperty", "key": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 37, "column": 30 }, "end": { "line": 37, "column": 31 } } }, "static": true, "readonly": true, "declare": true, "optional": false, "computed": true, "definite": false, "decorators": [], "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 31 } } }, { "type": "ClassProperty", "key": { "type": "StringLiteral", "value": "b", "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 33 } } }, "static": true, "readonly": true, "declare": true, "optional": false, "computed": true, "definite": false, "decorators": [], "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 33 } } }, { "type": "ClassProperty", "key": { "type": "NumberLiteral", "value": 67, "loc": { "start": { "line": 39, "column": 29 }, "end": { "line": 39, "column": 31 } } }, "static": true, "readonly": true, "declare": true, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 31 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 40, "column": 29 }, "end": { "line": 40, "column": 30 } } }, "static": true, "readonly": true, "declare": true, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 30 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "private", "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 12 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 12 } } }, { "type": "MethodDefinition", "key": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 17 } } }, "kind": "method", "accessibility": "protected", "static": false, "optional": false, "computed": true, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 43, "column": 11 } } }, "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 43, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 43, "column": 11 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 43, "column": 19 }, "end": { "line": 43, "column": 20 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 43, "column": 5 }, "end": { "line": 43, "column": 20 } } }, { "type": "ClassProperty", "key": { "type": "PrivateIdentifier", "name": "o", "decorators": [], "loc": { "start": { "line": 44, "column": 6 }, "end": { "line": 44, "column": 7 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 44, "column": 5 }, "end": { "line": 44, "column": 7 } } } ], "loc": { "start": { "line": 34, "column": 22 }, "end": { "line": 45, "column": 2 } } }, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 45, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 45, "column": 2 } } }