mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
234 lines
5.4 KiB
JSON
234 lines
5.4 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 103,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "SwitchStatement",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 103,
|
|
"ctxt": 0
|
|
},
|
|
"discriminant": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 15,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"value": 0.0,
|
|
"raw": "0"
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 10,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
}
|
|
]
|
|
},
|
|
"cases": [
|
|
{
|
|
"type": "SwitchCase",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 34,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
}
|
|
]
|
|
},
|
|
"consequent": []
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"span": {
|
|
"start": 45,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 50,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 51,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "123",
|
|
"raw": "123"
|
|
}
|
|
]
|
|
},
|
|
"consequent": []
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 101,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 66,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 72,
|
|
"end": 73,
|
|
"ctxt": 0
|
|
},
|
|
"value": 0.0,
|
|
"raw": "0"
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 67,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 74,
|
|
"end": 77,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
}
|
|
]
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 88,
|
|
"end": 101,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 88,
|
|
"end": 100,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 94,
|
|
"end": 95,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 89,
|
|
"end": 92,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 96,
|
|
"end": 99,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|