{ "type": "Script", "span": { "start": 54, "end": 291, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 60, "end": 61, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 54, "end": 96, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 68, "end": 94, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 72, "end": 73, "ctxt": 0 }, "value": "p", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 68, "end": 94, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 76, "end": 94, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 78, "end": 92, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 85, "end": 92, "ctxt": 0 }, "value": "oh no", "raw": "'oh no'" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 103, "end": 104, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 97, "end": 141, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 121, "end": 130, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 121, "end": 122, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 125, "end": 130, "ctxt": 0 }, "value": "yep", "raw": "'yep'" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": { "type": "Identifier", "span": { "start": 113, "end": 114, "ctxt": 0 }, "value": "A", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 148, "end": 149, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 142, "end": 248, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 156, "end": 168, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 156, "end": 163, "ctxt": 0 }, "value": "_secret", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 166, "end": 168, "ctxt": 0 }, "value": 11.0, "raw": "11" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 173, "end": 204, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 177, "end": 178, "ctxt": 0 }, "value": "p", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 173, "end": 204, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 181, "end": 204, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 183, "end": 202, "ctxt": 0 }, "argument": { "type": "MemberExpression", "span": { "start": 190, "end": 202, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 190, "end": 194, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 195, "end": 202, "ctxt": 0 }, "value": "_secret", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 209, "end": 246, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 213, "end": 214, "ctxt": 0 }, "value": "p", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 215, "end": 220, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 215, "end": 220, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 209, "end": 246, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 222, "end": 246, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 224, "end": 244, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 224, "end": 244, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 224, "end": 236, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 224, "end": 228, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 229, "end": 236, "ctxt": 0 }, "value": "_secret", "optional": false } }, "right": { "type": "Identifier", "span": { "start": 239, "end": 244, "ctxt": 0 }, "value": "value", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "setter", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 255, "end": 256, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 249, "end": 291, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 273, "end": 280, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 273, "end": 274, "ctxt": 0 }, "value": "p", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 277, "end": 280, "ctxt": 0 }, "value": 101.0, "raw": "101" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": { "type": "Identifier", "span": { "start": 265, "end": 266, "ctxt": 0 }, "value": "C", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }