swc/crates/swc_ecma_parser/tests/tsc/templateStringInWhileES6.json
2022-03-22 07:54:08 +00:00

124 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 58,
"ctxt": 0
},
"body": [
{
"type": "WhileStatement",
"span": {
"start": 16,
"end": 58,
"ctxt": 0
},
"test": {
"type": "TemplateLiteral",
"span": {
"start": 23,
"end": 35,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"tail": false,
"cooked": "abc",
"raw": "abc"
},
{
"type": "TemplateElement",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"tail": true,
"cooked": "abc",
"raw": "abc"
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 37,
"end": 58,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 43,
"end": 56,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 43,
"end": 55,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": 1.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"tail": false,
"cooked": "def",
"raw": "def"
},
{
"type": "TemplateElement",
"span": {
"start": 51,
"end": 54,
"ctxt": 0
},
"tail": true,
"cooked": "def",
"raw": "def"
}
]
}
}
]
}
}
],
"interpreter": null
}