{ "type": "Script", "span": { "start": 39, "end": 295, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 39, "end": 137, "ctxt": 0 }, "declare": true, "global": false, "id": { "type": "Identifier", "span": { "start": 54, "end": 57, "ctxt": 0 }, "value": "JSX", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 58, "end": 137, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 61, "end": 82, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 71, "end": 78, "ctxt": 0 }, "value": "Element", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 79, "end": 82, "ctxt": 0 }, "body": [] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 84, "end": 135, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 94, "end": 111, "ctxt": 0 }, "value": "IntrinsicElements", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 112, "end": 135, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 116, "end": 132, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 116, "end": 121, "ctxt": 0 }, "value": "test1", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 121, "end": 131, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 123, "end": 131, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 123, "end": 131, "ctxt": 0 }, "value": "Attribs1", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 138, "end": 181, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 148, "end": 156, "ctxt": 0 }, "value": "Attribs1", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 157, "end": 181, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 160, "end": 179, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 160, "end": 161, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 162, "end": 171, "ctxt": 0 }, "value": "n", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 163, "end": 171, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 165, "end": 171, "ctxt": 0 }, "kind": "string" } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 172, "end": 178, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 174, "end": 178, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } }, { "type": "ExpressionStatement", "span": { "start": 189, "end": 220, "ctxt": 0 }, "expression": { "type": "JSXElement", "span": { "start": 189, "end": 219, "ctxt": 0 }, "opening": { "type": "JSXOpeningElement", "name": { "type": "Identifier", "span": { "start": 190, "end": 195, "ctxt": 0 }, "value": "test1", "optional": false }, "span": { "start": 189, "end": 219, "ctxt": 0 }, "attributes": [ { "type": "SpreadElement", "spread": { "start": 197, "end": 200, "ctxt": 0 }, "arguments": { "type": "ObjectExpression", "span": { "start": 201, "end": 214, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 202, "end": 203, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "ArrowFunctionExpression", "span": { "start": 205, "end": 213, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 206, "end": 207, "ctxt": 0 }, "value": "n", "optional": false, "typeAnnotation": null } ], "body": { "type": "NumericLiteral", "span": { "start": 212, "end": 213, "ctxt": 0 }, "value": 0.0 }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ] } } ], "selfClosing": true, "typeArguments": null }, "children": [], "closing": null } }, { "type": "ExpressionStatement", "span": { "start": 260, "end": 295, "ctxt": 0 }, "expression": { "type": "JSXElement", "span": { "start": 260, "end": 294, "ctxt": 0 }, "opening": { "type": "JSXOpeningElement", "name": { "type": "Identifier", "span": { "start": 261, "end": 266, "ctxt": 0 }, "value": "test1", "optional": false }, "span": { "start": 260, "end": 294, "ctxt": 0 }, "attributes": [ { "type": "SpreadElement", "spread": { "start": 268, "end": 271, "ctxt": 0 }, "arguments": { "type": "ObjectExpression", "span": { "start": 272, "end": 289, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 273, "end": 274, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "ArrowFunctionExpression", "span": { "start": 276, "end": 288, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 277, "end": 278, "ctxt": 0 }, "value": "n", "optional": false, "typeAnnotation": null } ], "body": { "type": "MemberExpression", "span": { "start": 283, "end": 288, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 283, "end": 284, "ctxt": 0 }, "value": "n", "optional": false }, "property": { "type": "Identifier", "span": { "start": 285, "end": 288, "ctxt": 0 }, "value": "len", "optional": false } }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ] } } ], "selfClosing": true, "typeArguments": null }, "children": [], "closing": null } } ], "interpreter": null }