swc/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedCommentsES6.json
2022-04-05 12:46:35 +00:00

85 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 126,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 126,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 16,
"end": 125,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 47,
"end": 49,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
{
"type": "NumericLiteral",
"span": {
"start": 95,
"end": 97,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 17,
"end": 21,
"ctxt": 0
},
"tail": false,
"cooked": "head",
"raw": "head"
},
{
"type": "TemplateElement",
"span": {
"start": 51,
"end": 58,
"ctxt": 0
},
"tail": false,
"cooked": "\nmiddle",
"raw": "\nmiddle"
},
{
"type": "TemplateElement",
"span": {
"start": 119,
"end": 124,
"ctxt": 0
},
"tail": true,
"cooked": "\ntail",
"raw": "\ntail"
}
]
}
}
],
"interpreter": null
}