swc/ecmascript/parser/tests/jsx/basic/custom/tpl/input.js.json

93 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"body": [
{
"type": "TemplateLiteral",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expressions": [
{
"type": "Identifier",
"span": {
"start": 3,
"end": 6,
"ctxt": 0
},
"value": "foo",
"typeAnnotation": null,
"optional": false
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"value": "",
"hasEscape": false
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"value": "",
"hasEscape": false
}
},
{
"type": "TemplateElement",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"value": "<bar>",
"hasEscape": false
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"value": "<bar>",
"hasEscape": false
}
}
]
}
],
"interpreter": null
}