mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
153 lines
3.8 KiB
JSON
153 lines
3.8 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "BinaryExpression",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "in",
|
|
"left": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 33,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hi",
|
|
"raw": "\"hi\""
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": "",
|
|
"raw": ""
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 35,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": "",
|
|
"raw": ""
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hi",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 48,
|
|
"ctxt": 0
|
|
},
|
|
"value": 10.0,
|
|
"raw": "10"
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 50,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hello",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 57,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"value": 20.0,
|
|
"raw": "20"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|