{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Baz", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 10 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "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": "s", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 27 } } }, "optional": true, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 18 } } }, { "type": "Identifier", "name": "n", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 39 } } }, "optional": true, "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 30 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 13 } } }, "property": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 21, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 15 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 19 } } }, "right": { "type": "StringLiteral", "value": "", "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 25 } } }, "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 25 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 25 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 13 } } }, "property": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 15 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 22, "column": 18 }, "end": { "line": 22, "column": 19 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 22, "column": 23 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 18 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 13 } } }, "property": { "type": "Identifier", "name": "f", "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 15 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 17 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 18 } } } ], "loc": { "start": { "line": 20, "column": 41 }, "end": { "line": 24, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 24, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 24, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 24, "column": 6 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "s", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "f", "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "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": 25, "column": 10 }, "end": { "line": 25, "column": 14 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 13 } } }, "property": { "type": "Identifier", "name": "n", "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 15 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 15 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 17 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 18 } } } ], "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 27, "column": 6 } } }, "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 27, "column": 6 } } }, "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 27, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 27, "column": 6 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 28, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 28, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 29, "column": 1 } } }