swc/crates/swc_ecma_parser/tests/tsc/jsxJsxsCjsTransformChildren.json

115 lines
2.5 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 114,
"end": 152,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 114,
"end": 140,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 120,
"end": 139,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 124,
"end": 139,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 124,
"end": 129,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 129,
"end": 133,
"ctxt": 0
},
"value": "text",
"raw": "text"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 133,
"end": 139,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 135,
"end": 138,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 142,
"end": 152,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}