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

66 lines
1.3 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 3,
"end": 30,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 3,
"end": 30,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 7,
"end": 29,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TemplateLiteral",
"span": {
"start": 11,
"end": 29,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 12,
"end": 28,
"ctxt": 0
},
"tail": true,
"cooked": "\u001f\u001f 1F 1f",
"raw": "\\x1F\\u001f 1F 1f"
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}