{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 11 } } }, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 12 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 12 } } }, "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": 16, "column": 1 }, "end": { "line": 17, "column": 2 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 17, "column": 2 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 17, "column": 2 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 9 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSFunctionType", "params": [], "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 12 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 13 } } } ], "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 13 } } }, "returnType": { "type": "TSTypeLiteral", "members": [], "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 21 } } }, "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 21 } } } ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 22 } } }, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 9 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 19, "column": 29 }, "end": { "line": 19, "column": 30 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSFunctionType", "params": [], "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 19, "column": 32 }, "end": { "line": 19, "column": 33 } } }, "loc": { "start": { "line": 19, "column": 32 }, "end": { "line": 19, "column": 34 } } } ], "loc": { "start": { "line": 19, "column": 31 }, "end": { "line": 19, "column": 34 } } }, "returnType": { "type": "TSTypeLiteral", "members": [], "loc": { "start": { "line": 19, "column": 40 }, "end": { "line": 19, "column": 42 } } }, "loc": { "start": { "line": 19, "column": 31 }, "end": { "line": 19, "column": 42 } } } ], "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 19, "column": 43 } } }, "arguments": [], "loc": { "start": { "line": 19, "column": 25 }, "end": { "line": 19, "column": 45 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 45 } } } ], "kind": "var", "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 45 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 21, "column": 1 } } }