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

73 lines
1.5 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 1,
"end": 20,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "TemplateLiteral",
"span": {
"start": 8,
"end": 20,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 9,
"end": 12,
"ctxt": 0
},
"tail": false,
"cooked": "abc",
"raw": "abc"
},
{
"type": "TemplateElement",
"span": {
"start": 16,
"end": 19,
"ctxt": 0
},
"tail": true,
"cooked": "abc",
"raw": "abc"
}
]
}
}
}
],
"interpreter": null
}