mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
184 lines
4.6 KiB
JSON
184 lines
4.6 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 80,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 80,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 79,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 79,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 35,
|
|
"ctxt": 0
|
|
},
|
|
"value": " ",
|
|
"raw": "\" \""
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 37,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
}
|
|
]
|
|
},
|
|
"consequent": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 44,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 51,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"value": " ",
|
|
"raw": "\" \""
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 45,
|
|
"end": 48,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
}
|
|
]
|
|
},
|
|
"alternate": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 79,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 70,
|
|
"end": 73,
|
|
"ctxt": 0
|
|
},
|
|
"value": " ",
|
|
"raw": "\" \""
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 64,
|
|
"end": 67,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|