mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
367 lines
11 KiB
JSON
367 lines
11 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 90,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 90,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 20,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 20,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 24,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 39,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"value": " | ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": true
|
|
}
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"value": "456 ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"value": "456 ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"value": " 654",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"value": " 654",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 83,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 71,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"value": " | ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": true
|
|
}
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 64,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 64,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"value": "456 ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 64,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"value": "456 ",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 82,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 82,
|
|
"ctxt": 0
|
|
},
|
|
"value": " 654",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 82,
|
|
"ctxt": 0
|
|
},
|
|
"value": " 654",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"value": "123",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"value": "123",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"value": "321 123",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"value": "321 123",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 85,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 85,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"value": "321",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 85,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"value": "321",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|