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

85 lines
1.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 111,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 111,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 1,
"end": 110,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
{
"type": "NumericLiteral",
"span": {
"start": 80,
"end": 82,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 2,
"end": 6,
"ctxt": 0
},
"tail": false,
"cooked": "head",
"raw": "head"
},
{
"type": "TemplateElement",
"span": {
"start": 36,
"end": 43,
"ctxt": 0
},
"tail": false,
"cooked": "\nmiddle",
"raw": "\nmiddle"
},
{
"type": "TemplateElement",
"span": {
"start": 104,
"end": 109,
"ctxt": 0
},
"tail": true,
"cooked": "\ntail",
"raw": "\ntail"
}
]
}
}
],
"interpreter": null
}