{ "type": "Script", "span": { "start": 103, "end": 413, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 109, "end": 110, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 103, "end": 141, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 120, "end": 139, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 120, "end": 123, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 124, "end": 128, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 124, "end": 128, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 125, "end": 128, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 127, "end": 128, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 127, "end": 128, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 130, "end": 134, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 130, "end": 134, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 131, "end": 134, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 133, "end": 134, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 133, "end": 134, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 120, "end": 139, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 136, "end": 139, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 110, "end": 113, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 111, "end": 112, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 111, "end": 112, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 149, "end": 150, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 143, "end": 213, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 173, "end": 186, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 173, "end": 176, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 177, "end": 181, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 177, "end": 181, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 178, "end": 181, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 180, "end": 181, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 180, "end": 181, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 173, "end": 186, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 183, "end": 186, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 162, "end": 163, "ctxt": 0 }, "value": "C", "optional": false }, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 150, "end": 153, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 151, "end": 152, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 151, "end": 152, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "superTypeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 163, "end": 166, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 164, "end": 165, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] }, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 221, "end": 222, "ctxt": 0 }, "value": "E", "optional": false }, "declare": false, "span": { "start": 215, "end": 305, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 245, "end": 270, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 245, "end": 248, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 249, "end": 253, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 249, "end": 253, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 250, "end": 253, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 252, "end": 253, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 252, "end": 253, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 255, "end": 265, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 255, "end": 265, "ctxt": 0 }, "value": "y", "optional": true, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 257, "end": 265, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 259, "end": 265, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 245, "end": 270, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 267, "end": 270, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "Identifier", "span": { "start": 234, "end": 235, "ctxt": 0 }, "value": "D", "optional": false }, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 222, "end": 225, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 223, "end": 224, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 223, "end": 224, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "superTypeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 235, "end": 238, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 236, "end": 237, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 236, "end": 237, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] }, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 307, "end": 324, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 311, "end": 323, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 311, "end": 312, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 312, "end": 323, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 314, "end": 323, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 314, "end": 315, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 315, "end": 323, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 316, "end": 322, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 325, "end": 342, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 329, "end": 341, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 329, "end": 330, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 330, "end": 341, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 332, "end": 341, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 332, "end": 333, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 333, "end": 341, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 334, "end": 340, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 343, "end": 360, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 347, "end": 359, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 347, "end": 348, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 348, "end": 359, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 350, "end": 359, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 350, "end": 351, "ctxt": 0 }, "value": "E", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 351, "end": 359, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 352, "end": 358, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 361, "end": 367, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 361, "end": 366, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 361, "end": 362, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 365, "end": 366, "ctxt": 0 }, "value": "e", "optional": false } } }, { "type": "VariableDeclaration", "span": { "start": 368, "end": 390, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 372, "end": 389, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 372, "end": 373, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 376, "end": 389, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 376, "end": 381, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 376, "end": 377, "ctxt": 0 }, "value": "c", "optional": false }, "property": { "type": "Identifier", "span": { "start": 378, "end": 381, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 382, "end": 384, "ctxt": 0 }, "value": "", "raw": "''" } }, { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 386, "end": 388, "ctxt": 0 }, "value": "", "raw": "''" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 391, "end": 413, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 395, "end": 412, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 395, "end": 397, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 400, "end": 412, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 400, "end": 405, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 400, "end": 401, "ctxt": 0 }, "value": "e", "optional": false }, "property": { "type": "Identifier", "span": { "start": 402, "end": 405, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 406, "end": 408, "ctxt": 0 }, "value": "", "raw": "''" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 410, "end": 411, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }