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

85 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 127,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 17,
"end": 127,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 17,
"end": 126,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 48,
"end": 50,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
{
"type": "NumericLiteral",
"span": {
"start": 96,
"end": 98,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 18,
"end": 22,
"ctxt": 0
},
"tail": false,
"cooked": "head",
"raw": "head"
},
{
"type": "TemplateElement",
"span": {
"start": 52,
"end": 59,
"ctxt": 0
},
"tail": false,
"cooked": "\nmiddle",
"raw": "\nmiddle"
},
{
"type": "TemplateElement",
"span": {
"start": 120,
"end": 125,
"ctxt": 0
},
"tail": true,
"cooked": "\ntail",
"raw": "\ntail"
}
]
}
}
],
"interpreter": null
}