{ "type": "Module", "span": { "start": 115, "end": 320, "ctxt": 0 }, "body": [ { "type": "TsImportEqualsDeclaration", "span": { "start": 115, "end": 147, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 122, "end": 127, "ctxt": 0 }, "value": "React", "optional": false }, "moduleRef": { "type": "TsExternalModuleReference", "span": { "start": 130, "end": 146, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 138, "end": 145, "ctxt": 0 }, "value": "react", "raw": "'react'" } } }, { "type": "TsInterfaceDeclaration", "span": { "start": 149, "end": 183, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 159, "end": 163, "ctxt": 0 }, "value": "Prop", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 164, "end": 183, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 170, "end": 181, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 170, "end": 171, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 171, "end": 180, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 173, "end": 180, "ctxt": 0 }, "kind": "boolean" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 190, "end": 198, "ctxt": 0 }, "value": "Poisoned", "optional": false }, "declare": false, "span": { "start": 184, "end": 290, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 239, "end": 288, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 239, "end": 245, "ctxt": 0 }, "value": "render", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 239, "end": 288, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 248, "end": 288, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 258, "end": 282, "ctxt": 0 }, "argument": { "type": "JSXElement", "span": { "start": 265, "end": 281, "ctxt": 0 }, "opening": { "type": "JSXOpeningElement", "name": { "type": "Identifier", "span": { "start": 266, "end": 269, "ctxt": 0 }, "value": "div", "optional": false }, "span": { "start": 265, "end": 270, "ctxt": 0 }, "attributes": [], "selfClosing": false, "typeArguments": null }, "children": [ { "type": "JSXText", "span": { "start": 270, "end": 275, "ctxt": 0 }, "value": "Hello", "raw": "Hello" } ], "closing": { "type": "JSXClosingElement", "span": { "start": 275, "end": 281, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 277, "end": 280, "ctxt": 0 }, "value": "div", "optional": false } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": { "type": "MemberExpression", "span": { "start": 207, "end": 222, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 207, "end": 212, "ctxt": 0 }, "value": "React", "optional": false }, "property": { "type": "Identifier", "span": { "start": 213, "end": 222, "ctxt": 0 }, "value": "Component", "optional": false } }, "isAbstract": false, "typeParams": null, "superTypeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 222, "end": 232, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 223, "end": 227, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 223, "end": 227, "ctxt": 0 }, "value": "Prop", "optional": false }, "typeParams": null }, { "type": "TsTypeLiteral", "span": { "start": 229, "end": 231, "ctxt": 0 }, "members": [] } ] }, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 298, "end": 320, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 302, "end": 319, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 302, "end": 303, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": null }, "init": { "type": "JSXElement", "span": { "start": 306, "end": 319, "ctxt": 0 }, "opening": { "type": "JSXOpeningElement", "name": { "type": "Identifier", "span": { "start": 307, "end": 315, "ctxt": 0 }, "value": "Poisoned", "optional": false }, "span": { "start": 306, "end": 319, "ctxt": 0 }, "attributes": [ { "type": "JSXAttribute", "span": { "start": 316, "end": 317, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 316, "end": 317, "ctxt": 0 }, "value": "x", "optional": false }, "value": null } ], "selfClosing": true, "typeArguments": null }, "children": [], "closing": null }, "definite": false } ] } ], "interpreter": null }