mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
0d67d5d855
swc_ecma_parser: - fix opening and closing jsx spans. - fix JSX expression. - fix JSX spread child.
56 lines
1.0 KiB
JSON
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
|
|
}
|