{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 14 } } }, "id": { "type": "Identifier", "name": "I", "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "extends": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 14 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 10 } } }, "in": false, "out": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 11 } } } ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 11 } } }, "superClass": null, "implements": [ { "type": "TSClassImplements", "expression": { "type": "Identifier", "name": "I", "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 24 } } }, "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 26 } } } ], "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": [], "annotations": [], "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 20, "column": 2 } } }, "body": [], "indexSignatures": [ { "type": "TSIndexSignature", "parameters": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 12 } } }, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 5 } } }, "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } }, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 15 } } }, "readonly": false, "static": false, "loc": { "start": { "line": 19, "column": 3 }, "end": { "line": 19, "column": 15 } } } ], "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 20, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": false, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 20, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 10 } } }, "in": false, "out": false, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 11 } } } ], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 11 } } }, "superClass": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 21 } } }, "superTypeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 23 } } }, "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 23 } } } ], "loc": { "start": { "line": 21, "column": 21 }, "end": { "line": 21, "column": 24 } } }, "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": [ { "type": "RestElement", "argument": { "type": "Identifier", "name": "args", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "SpreadElement", "argument": { "type": "Identifier", "name": "args", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "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 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 22, "column": 2 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 22, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": false, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 22, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 23, "column": 1 } } }