{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 8 } } }, "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": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "value": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 19 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 19 } } } ], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 19, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "init": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": true, "params": [], "body": { "type": "TSTypeAssertion", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, "expression": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 24 } } }, "value": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 20, "column": 26 }, "end": { "line": 20, "column": 27 } } }, "kind": "init", "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 27 } } } ], "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 30 } } }, "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 32 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 32 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 32 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 32 } } } ], "kind": "var", "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 33 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 22, "column": 1 } } }