2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 1,
|
|
|
|
"end": 103,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "SwitchStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 1,
|
|
|
|
"end": 103,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"discriminant": {
|
|
|
|
"type": "TemplateLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 9,
|
|
|
|
"end": 21,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [
|
|
|
|
{
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 15,
|
|
|
|
"end": 16,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 0.0,
|
|
|
|
"raw": "0"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"quasis": [
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 10,
|
|
|
|
"end": 13,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": false,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "abc",
|
|
|
|
"raw": "abc"
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 17,
|
|
|
|
"end": 20,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": true,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "abc",
|
|
|
|
"raw": "abc"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"cases": [
|
|
|
|
{
|
|
|
|
"type": "SwitchCase",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 29,
|
|
|
|
"end": 40,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "TemplateLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 34,
|
|
|
|
"end": 39,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [],
|
|
|
|
"quasis": [
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 35,
|
|
|
|
"end": 38,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": true,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "abc",
|
|
|
|
"raw": "abc"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"consequent": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SwitchCase",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 45,
|
|
|
|
"end": 56,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "TemplateLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 50,
|
|
|
|
"end": 55,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [],
|
|
|
|
"quasis": [
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 51,
|
|
|
|
"end": 54,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": true,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "123",
|
|
|
|
"raw": "123"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"consequent": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SwitchCase",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 61,
|
|
|
|
"end": 101,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "TemplateLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 66,
|
|
|
|
"end": 78,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [
|
|
|
|
{
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 72,
|
|
|
|
"end": 73,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 0.0,
|
|
|
|
"raw": "0"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"quasis": [
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 67,
|
|
|
|
"end": 70,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": false,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "abc",
|
|
|
|
"raw": "abc"
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 74,
|
|
|
|
"end": 77,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": true,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "abc",
|
|
|
|
"raw": "abc"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"consequent": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 88,
|
|
|
|
"end": 101,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "TemplateLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 88,
|
|
|
|
"end": 100,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [
|
|
|
|
{
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 94,
|
|
|
|
"end": 95,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 1.0,
|
|
|
|
"raw": "1"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"quasis": [
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 89,
|
|
|
|
"end": 92,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": false,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "def",
|
|
|
|
"raw": "def"
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TemplateElement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 96,
|
|
|
|
"end": 99,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"tail": true,
|
2022-03-22 10:54:08 +03:00
|
|
|
"cooked": "def",
|
|
|
|
"raw": "def"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|