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

652 lines
14 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 301,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 17,
"end": 301,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 17,
"end": 301,
"ctxt": 0
},
"expressions": [
{
"type": "StringLiteral",
"span": {
"start": 22,
"end": 25,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 49,
"end": 52,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 67,
"end": 70,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 76,
"end": 79,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 85,
"end": 88,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 103,
"end": 106,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 113,
"end": 116,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 123,
"end": 126,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 143,
"end": 146,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 163,
"end": 166,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 173,
"end": 176,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 183,
"end": 186,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 193,
"end": 196,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 203,
"end": 206,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 213,
"end": 216,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 237,
"end": 240,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 249,
"end": 252,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 276,
"end": 279,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 285,
"end": 288,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
},
{
"type": "StringLiteral",
"span": {
"start": 294,
"end": 297,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"tail": false,
"cooked": "0",
"raw": "0"
},
{
"type": "TemplateElement",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"tail": false,
"cooked": "1",
"raw": "1"
},
{
"type": "TemplateElement",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"tail": false,
"cooked": "2",
"raw": "2"
},
{
"type": "TemplateElement",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"tail": false,
"cooked": "3",
"raw": "3"
},
{
"type": "TemplateElement",
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"tail": false,
"cooked": "4",
"raw": "4"
},
{
"type": "TemplateElement",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"tail": false,
"cooked": "5",
"raw": "5"
},
{
"type": "TemplateElement",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"tail": false,
"cooked": "6",
"raw": "6"
},
{
"type": "TemplateElement",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"tail": false,
"cooked": "7",
"raw": "7"
},
{
"type": "TemplateElement",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"tail": false,
"cooked": "8",
"raw": "8"
},
{
"type": "TemplateElement",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"tail": false,
"cooked": "9",
"raw": "9"
},
{
"type": "TemplateElement",
"span": {
"start": 108,
"end": 110,
"ctxt": 0
},
"tail": false,
"cooked": "10",
"raw": "10"
},
{
"type": "TemplateElement",
"span": {
"start": 118,
"end": 120,
"ctxt": 0
},
"tail": false,
"cooked": "11",
"raw": "11"
},
{
"type": "TemplateElement",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"tail": false,
"cooked": "12",
"raw": "12"
},
{
"type": "TemplateElement",
"span": {
"start": 138,
"end": 140,
"ctxt": 0
},
"tail": false,
"cooked": "13",
"raw": "13"
},
{
"type": "TemplateElement",
"span": {
"start": 148,
"end": 150,
"ctxt": 0
},
"tail": false,
"cooked": "14",
"raw": "14"
},
{
"type": "TemplateElement",
"span": {
"start": 158,
"end": 160,
"ctxt": 0
},
"tail": false,
"cooked": "15",
"raw": "15"
},
{
"type": "TemplateElement",
"span": {
"start": 168,
"end": 170,
"ctxt": 0
},
"tail": false,
"cooked": "16",
"raw": "16"
},
{
"type": "TemplateElement",
"span": {
"start": 178,
"end": 180,
"ctxt": 0
},
"tail": false,
"cooked": "17",
"raw": "17"
},
{
"type": "TemplateElement",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"tail": false,
"cooked": "18",
"raw": "18"
},
{
"type": "TemplateElement",
"span": {
"start": 198,
"end": 200,
"ctxt": 0
},
"tail": false,
"cooked": "19",
"raw": "19"
},
{
"type": "TemplateElement",
"span": {
"start": 208,
"end": 210,
"ctxt": 0
},
"tail": false,
"cooked": "20",
"raw": "20"
},
{
"type": "TemplateElement",
"span": {
"start": 218,
"end": 222,
"ctxt": 0
},
"tail": false,
"cooked": "2028",
"raw": "2028"
},
{
"type": "TemplateElement",
"span": {
"start": 230,
"end": 234,
"ctxt": 0
},
"tail": false,
"cooked": "2029",
"raw": "2029"
},
{
"type": "TemplateElement",
"span": {
"start": 242,
"end": 246,
"ctxt": 0
},
"tail": false,
"cooked": "0085",
"raw": "0085"
},
{
"type": "TemplateElement",
"span": {
"start": 254,
"end": 255,
"ctxt": 0
},
"tail": false,
"cooked": "t",
"raw": "t"
},
{
"type": "TemplateElement",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"tail": false,
"cooked": "v",
"raw": "v"
},
{
"type": "TemplateElement",
"span": {
"start": 272,
"end": 273,
"ctxt": 0
},
"tail": false,
"cooked": "f",
"raw": "f"
},
{
"type": "TemplateElement",
"span": {
"start": 281,
"end": 282,
"ctxt": 0
},
"tail": false,
"cooked": "b",
"raw": "b"
},
{
"type": "TemplateElement",
"span": {
"start": 290,
"end": 291,
"ctxt": 0
},
"tail": false,
"cooked": "r",
"raw": "r"
},
{
"type": "TemplateElement",
"span": {
"start": 299,
"end": 300,
"ctxt": 0
},
"tail": true,
"cooked": "n",
"raw": "n"
}
]
}
}
],
"interpreter": null
}