swc/ecmascript/parser/tests/jsx/basic/fragment-2/input.js.json
David Sherret 0d67d5d855 Fix JSX opening, closing, spread child, and expression container spans (#582)
swc_ecma_parser:
 - fix opening and closing jsx spans.
 - fix JSX expression.
 - fix JSX spread child.
2020-01-14 12:37:29 +09:00

56 lines
1.0 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 0,
"end": 2,
"ctxt": 0
}
},
"children": [
{
"type": "JSXText",
"span": {
"start": 2,
"end": 19,
"ctxt": 0
},
"value": "Hi, I'm a string!",
"raw": "Hi, I'm a string!"
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
}
}
}
}
],
"interpreter": null
}