{ "type": "Script", "span": { "start": 20, "end": 473, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 26, "end": 32, "ctxt": 0 }, "value": "Parent", "optional": false }, "declare": false, "span": { "start": 20, "end": 260, "ctxt": 0 }, "decorators": [], "body": [ { "type": "PrivateProperty", "span": { "start": 42, "end": 51, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 42, "end": 46, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 43, "end": 46, "ctxt": 0 }, "value": "foo", "optional": false } }, "value": { "type": "NumericLiteral", "span": { "start": 49, "end": 50, "ctxt": 0 }, "value": 3.0 }, "typeAnnotation": null, "isStatic": false, "decorators": [], "computed": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "definite": false }, { "type": "PrivateProperty", "span": { "start": 56, "end": 72, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 63, "end": 67, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 64, "end": 67, "ctxt": 0 }, "value": "bar", "optional": false } }, "value": { "type": "NumericLiteral", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": 5.0 }, "typeAnnotation": null, "isStatic": true, "decorators": [], "computed": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 77, "end": 258, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 77, "end": 93, "ctxt": 0 }, "value": "accessChildProps", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 77, "end": 258, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 96, "end": 258, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 106, "end": 131, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 106, "end": 130, "ctxt": 0 }, "object": { "type": "NewExpression", "span": { "start": 106, "end": 125, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 110, "end": 115, "ctxt": 0 }, "value": "Child", "optional": false }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 115, "end": 123, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 116, "end": 122, "ctxt": 0 }, "kind": "string" } ] } }, "property": { "type": "PrivateName", "span": { "start": 126, "end": 130, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 127, "end": 130, "ctxt": 0 }, "value": "foo", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 215, "end": 226, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 215, "end": 225, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 215, "end": 220, "ctxt": 0 }, "value": "Child", "optional": false }, "property": { "type": "PrivateName", "span": { "start": 221, "end": 225, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 222, "end": 225, "ctxt": 0 }, "value": "bar", "optional": false } } } } ] }, "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": 32, "end": 35, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 33, "end": 34, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 33, "end": 34, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 268, "end": 273, "ctxt": 0 }, "value": "Child", "optional": false }, "declare": false, "span": { "start": 262, "end": 431, "ctxt": 0 }, "decorators": [], "body": [ { "type": "PrivateProperty", "span": { "start": 301, "end": 314, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 301, "end": 305, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 302, "end": 305, "ctxt": 0 }, "value": "foo", "optional": false } }, "value": { "type": "StringLiteral", "span": { "start": 308, "end": 313, "ctxt": 0 }, "value": "foo", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null, "isStatic": false, "decorators": [], "computed": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "definite": false }, { "type": "PrivateProperty", "span": { "start": 404, "end": 417, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 404, "end": 408, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 405, "end": 408, "ctxt": 0 }, "value": "bar", "optional": false } }, "value": { "type": "StringLiteral", "span": { "start": 411, "end": 416, "ctxt": 0 }, "value": "bar", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null, "isStatic": false, "decorators": [], "computed": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "definite": false } ], "superClass": { "type": "Identifier", "span": { "start": 285, "end": 291, "ctxt": 0 }, "value": "Parent", "optional": false }, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 273, "end": 276, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 274, "end": 275, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 274, "end": 275, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "superTypeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 291, "end": 294, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 292, "end": 293, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 292, "end": 293, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] }, "implements": [] }, { "type": "ExpressionStatement", "span": { "start": 433, "end": 473, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 433, "end": 472, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 433, "end": 470, "ctxt": 0 }, "object": { "type": "NewExpression", "span": { "start": 433, "end": 453, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 437, "end": 443, "ctxt": 0 }, "value": "Parent", "optional": false }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 443, "end": 451, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 444, "end": 450, "ctxt": 0 }, "kind": "number" } ] } }, "property": { "type": "Identifier", "span": { "start": 454, "end": 470, "ctxt": 0 }, "value": "accessChildProps", "optional": false } }, "arguments": [], "typeArguments": null } } ], "interpreter": null }