{ "type": "Script", "span": { "start": 1, "end": 1119, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 7, "end": 8, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 1, "end": 23, "ctxt": 0 }, "decorators": [], "body": [], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 40, "end": 41, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 25, "end": 115, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 48, "end": 84, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 48, "end": 51, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 48, "end": 84, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 62, "end": 84, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 64, "end": 82, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 71, "end": 81, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 71, "end": 79, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 71, "end": 75, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 76, "end": 79, "ctxt": 0 }, "value": "bar", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 53, "end": 61, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 55, "end": 61, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 89, "end": 113, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 98, "end": 101, "ctxt": 0 }, "value": "bar", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 89, "end": 113, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 104, "end": 112, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 106, "end": 112, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ExpressionStatement", "span": { "start": 117, "end": 123, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 117, "end": 122, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 121, "end": 122, "ctxt": 0 }, "value": "B", "optional": false }, "arguments": null, "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 134, "end": 155, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 138, "end": 154, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 138, "end": 140, "ctxt": 0 }, "value": "BB", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 140, "end": 150, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 142, "end": 150, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 149, "end": 150, "ctxt": 0 }, "value": "B", "optional": false }, "typeArguments": null } } }, "init": { "type": "Identifier", "span": { "start": 153, "end": 154, "ctxt": 0 }, "value": "B", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 156, "end": 178, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 160, "end": 177, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 160, "end": 162, "ctxt": 0 }, "value": "AA", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 162, "end": 172, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 164, "end": 172, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 171, "end": 172, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": null } } }, "init": { "type": "Identifier", "span": { "start": 175, "end": 177, "ctxt": 0 }, "value": "BB", "optional": false }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 217, "end": 224, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 217, "end": 223, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 221, "end": 223, "ctxt": 0 }, "value": "AA", "optional": false }, "arguments": null, "typeArguments": null } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 235, "end": 245, "ctxt": 0 }, "value": "constructB", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 246, "end": 264, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 246, "end": 264, "ctxt": 0 }, "value": "Factory", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 254, "end": 264, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 256, "end": 264, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 263, "end": 264, "ctxt": 0 }, "value": "B", "optional": false }, "typeArguments": null } } } } ], "decorators": [], "span": { "start": 226, "end": 327, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 266, "end": 327, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 272, "end": 284, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 272, "end": 283, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 276, "end": 283, "ctxt": 0 }, "value": "Factory", "optional": false }, "arguments": null, "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "VariableDeclaration", "span": { "start": 329, "end": 340, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 333, "end": 339, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 333, "end": 335, "ctxt": 0 }, "value": "BB", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 338, "end": 339, "ctxt": 0 }, "value": "B", "optional": false }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 341, "end": 348, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 341, "end": 347, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 345, "end": 347, "ctxt": 0 }, "value": "BB", "optional": false }, "arguments": null, "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 386, "end": 402, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 390, "end": 401, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 390, "end": 391, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 392, "end": 397, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 394, "end": 397, "ctxt": 0 }, "kind": "any" } } }, "init": { "type": "Identifier", "span": { "start": 400, "end": 401, "ctxt": 0 }, "value": "C", "optional": false }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 403, "end": 409, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 403, "end": 408, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 407, "end": 408, "ctxt": 0 }, "value": "x", "optional": false }, "arguments": null, "typeArguments": null } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 458, "end": 459, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 452, "end": 473, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "Identifier", "span": { "start": 468, "end": 469, "ctxt": 0 }, "value": "B", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 524, "end": 525, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 509, "end": 539, "ctxt": 0 }, "decorators": [], "body": [], "superClass": { "type": "Identifier", "span": { "start": 534, "end": 535, "ctxt": 0 }, "value": "B", "optional": false }, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 555, "end": 556, "ctxt": 0 }, "value": "E", "optional": false }, "declare": false, "span": { "start": 549, "end": 632, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 611, "end": 630, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 611, "end": 614, "ctxt": 0 }, "value": "bar", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 611, "end": 630, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 617, "end": 630, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 619, "end": 628, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 626, "end": 627, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ] }, "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": 565, "end": 566, "ctxt": 0 }, "value": "B", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 649, "end": 650, "ctxt": 0 }, "value": "F", "optional": false }, "declare": false, "span": { "start": 634, "end": 717, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 667, "end": 691, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 676, "end": 679, "ctxt": 0 }, "value": "foo", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 667, "end": 691, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 682, "end": 690, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 684, "end": 690, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 696, "end": 715, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 696, "end": 699, "ctxt": 0 }, "value": "bar", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 696, "end": 715, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 702, "end": 715, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 704, "end": 713, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 711, "end": 712, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] }, "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": 659, "end": 660, "ctxt": 0 }, "value": "B", "optional": false }, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 734, "end": 735, "ctxt": 0 }, "value": "G", "optional": false }, "declare": false, "span": { "start": 719, "end": 1043, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 742, "end": 776, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 751, "end": 754, "ctxt": 0 }, "value": "qux", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 755, "end": 765, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 755, "end": 765, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 757, "end": 765, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 759, "end": 765, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 742, "end": 776, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 767, "end": 775, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 769, "end": 775, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 781, "end": 805, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 790, "end": 793, "ctxt": 0 }, "value": "qux", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 781, "end": 805, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 796, "end": 804, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 798, "end": 804, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false }, { "type": "ClassProperty", "span": { "start": 810, "end": 821, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 810, "end": 811, "ctxt": 0 }, "value": "y", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 812, "end": 820, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 814, "end": 820, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 826, "end": 873, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 835, "end": 838, "ctxt": 0 }, "value": "quz", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 839, "end": 849, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 839, "end": 849, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 841, "end": 849, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 843, "end": 849, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 851, "end": 861, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 851, "end": 861, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 853, "end": 861, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 855, "end": 861, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 826, "end": 873, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 863, "end": 872, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 865, "end": 872, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 921, "end": 945, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 930, "end": 933, "ctxt": 0 }, "value": "nom", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 921, "end": 945, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 935, "end": 944, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 937, "end": 944, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 950, "end": 975, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 950, "end": 953, "ctxt": 0 }, "value": "nom", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 954, "end": 964, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 954, "end": 964, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 956, "end": 964, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 958, "end": 964, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 950, "end": 975, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 965, "end": 974, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 967, "end": 974, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": true, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 1051, "end": 1052, "ctxt": 0 }, "value": "H", "optional": false }, "declare": false, "span": { "start": 1045, "end": 1119, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 1093, "end": 1117, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1102, "end": 1105, "ctxt": 0 }, "value": "baz", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 1093, "end": 1117, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1108, "end": 1116, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1110, "end": 1116, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": true, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }