swc/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortionES6.json

83 lines
1.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 16,
"end": 75,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 75,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 16,
"end": 75,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"value": 10.0
},
{
"type": "NumericLiteral",
"span": {
"start": 55,
"end": 57,
"ctxt": 0
},
"value": 20.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 17,
"end": 27,
"ctxt": 0
},
"tail": false,
"cooked": " /**head ",
"raw": " /**head "
},
{
"type": "TemplateElement",
"span": {
"start": 34,
"end": 52,
"ctxt": 0
},
"tail": false,
"cooked": " // still middle ",
"raw": " // still middle "
},
{
"type": "TemplateElement",
"span": {
"start": 59,
"end": 74,
"ctxt": 0
},
"tail": true,
"cooked": " /* still tail ",
"raw": " /* still tail "
}
]
}
}
],
"interpreter": null
}