{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Class1", "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 21 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 16 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 26 } } }, "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 18 } } } ], "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 28 } } }, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 28 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 28 } } }, "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 9 } } }, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 9 } } }, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 9 } } }, "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 9 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 22, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 22, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Class2", "loc": { "start": { "line": 24, "column": 7 }, "end": { "line": 24, "column": 13 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "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": 24, "column": 1 }, "end": { "line": 44, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 6 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 6 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 9 } } }, "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "a", "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 8 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "s", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 19 } } }, "optional": true, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 10 } } } ], "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 21 } } }, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 21 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 21 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "a", "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 8 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 11 } } }, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 11 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 30, "column": 6 }, "end": { "line": 30, "column": 9 } } }, "loc": { "start": { "line": 30, "column": 6 }, "end": { "line": 30, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "s", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 31, "column": 11 }, "end": { "line": 31, "column": 17 } } }, "optional": true, "loc": { "start": { "line": 31, "column": 7 }, "end": { "line": 31, "column": 8 } } }, { "type": "Identifier", "name": "n", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 31, "column": 23 }, "end": { "line": 31, "column": 29 } } }, "optional": true, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 20 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 13 } } }, "property": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 32, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 15 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 19 } } }, "right": { "type": "StringLiteral", "value": "", "loc": { "start": { "line": 32, "column": 23 }, "end": { "line": 32, "column": 25 } } }, "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 25 } } }, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 25 } } }, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 13 } } }, "property": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 33, "column": 14 }, "end": { "line": 33, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 15 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 19 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 33, "column": 23 }, "end": { "line": 33, "column": 24 } } }, "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 24 } } }, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 24 } } }, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 13 } } }, "property": { "type": "Identifier", "name": "f", "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 15 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 17 } } }, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 18 } } } ], "loc": { "start": { "line": 31, "column": 31 }, "end": { "line": 35, "column": 6 } } }, "loc": { "start": { "line": 31, "column": 6 }, "end": { "line": 35, "column": 6 } } }, "loc": { "start": { "line": 31, "column": 6 }, "end": { "line": 35, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 35, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "1", "loc": { "start": { "line": 36, "column": 5 }, "end": { "line": 36, "column": 8 } } }, "kind": "method", "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": 8 }, "end": { "line": 36, "column": 11 } } }, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 36, "column": 5 }, "end": { "line": 36, "column": 11 } } }, { "type": "MethodDefinition", "key": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 37, "column": 6 }, "end": { "line": 37, "column": 9 } } }, "loc": { "start": { "line": 37, "column": 6 }, "end": { "line": 37, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 38, "column": 6 }, "end": { "line": 38, "column": 9 } } }, "loc": { "start": { "line": 38, "column": 6 }, "end": { "line": 38, "column": 9 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 9 } } }, { "type": "MethodDefinition", "key": { "type": "StringLiteral", "value": "1", "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 8 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 11 } } }, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 11 } } }, { "type": "MethodDefinition", "key": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 6 } } }, "kind": "method", "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": 40, "column": 9 }, "end": { "line": 40, "column": 12 } } }, "loc": { "start": { "line": 40, "column": 6 }, "end": { "line": 40, "column": 12 } } }, "loc": { "start": { "line": 40, "column": 6 }, "end": { "line": 40, "column": 12 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 12 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "f", "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 6 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "TSVoidKeyword", "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 14 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 42, "column": 9 }, "end": { "line": 42, "column": 13 } } }, "property": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 42, "column": 14 }, "end": { "line": 42, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 42, "column": 9 }, "end": { "line": 42, "column": 15 } } }, "loc": { "start": { "line": 42, "column": 9 }, "end": { "line": 42, "column": 17 } } }, "loc": { "start": { "line": 42, "column": 9 }, "end": { "line": 42, "column": 18 } } } ], "loc": { "start": { "line": 41, "column": 15 }, "end": { "line": 43, "column": 6 } } }, "loc": { "start": { "line": 41, "column": 6 }, "end": { "line": 43, "column": 6 } } }, "loc": { "start": { "line": 41, "column": 6 }, "end": { "line": 43, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 43, "column": 6 } } } ], "indexSignatures": [], "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 44, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 24, "column": 1 }, "end": { "line": 44, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 45, "column": 1 } } }