swc/crates/swc_ecma_parser/tests/jsx/basic/issue-2264/input.js.json

97 lines
2.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 1,
"end": 46
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 46
},
"ctxt": 0,
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 7,
"end": 46
},
"id": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8
},
"ctxt": 0,
"value": "t",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 11,
"end": 46
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 12,
"end": 18
},
"ctxt": 0,
"value": "Switch",
"optional": false
},
"span": {
"start": 11,
"end": 19
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 19,
"end": 37
},
"value": "\n // 1\n /* 2 */\n",
"raw": "\n // 1\n /* 2 */\n"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 37,
"end": 46
},
"name": {
"type": "Identifier",
"span": {
"start": 39,
"end": 45
},
"ctxt": 0,
"value": "Switch",
"optional": false
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}