mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
114 lines
2.7 KiB
JSON
114 lines
2.7 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"value": true
|
|
},
|
|
"consequent": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 39,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"value": false
|
|
},
|
|
"alternate": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"value": " ",
|
|
"raw": "\" \""
|
|
}
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "abc",
|
|
"raw": "abc"
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "def",
|
|
"raw": "def"
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|