mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
332061f44d
swc: - make parser respect `jsc.target`.
103 lines
2.1 KiB
JSON
103 lines
2.1 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "JSXElement",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 8,
|
|
"ctxt": 0
|
|
},
|
|
"value": "AbC-def",
|
|
"typeAnnotation": null,
|
|
"optional": false
|
|
},
|
|
"span": {
|
|
"start": 1,
|
|
"end": 33,
|
|
"ctxt": 0
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 32,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"value": "test",
|
|
"typeAnnotation": null,
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 32,
|
|
"ctxt": 0
|
|
},
|
|
"value": "&&",
|
|
"hasEscape": false
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": false,
|
|
"typeArguments": null
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXText",
|
|
"span": {
|
|
"start": 33,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"value": "\n\r\nbar\n\r\nbaz\n\r\n",
|
|
"raw": "\n\r\nbar\n\r\nbaz\n\r\n"
|
|
}
|
|
],
|
|
"closing": {
|
|
"type": "JSXClosingElement",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"value": "AbC-def",
|
|
"typeAnnotation": null,
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|