mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
183 lines
5.2 KiB
JSON
183 lines
5.2 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 132,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"value": "gen",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 16,
|
|
"end": 132,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 132,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 100,
|
|
"end": 130,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 105,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "TemplateLiteral",
|
|
"span": {
|
|
"start": 108,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "YieldExpression",
|
|
"span": {
|
|
"start": 115,
|
|
"end": 123,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 121,
|
|
"end": 123,
|
|
"ctxt": 0
|
|
},
|
|
"value": 10.0
|
|
},
|
|
"delegate": false
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"tail": false,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"value": "abc",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"value": "abc",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 128,
|
|
"ctxt": 0
|
|
},
|
|
"tail": true,
|
|
"cooked": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 128,
|
|
"ctxt": 0
|
|
},
|
|
"value": "def",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
},
|
|
"raw": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 128,
|
|
"ctxt": 0
|
|
},
|
|
"value": "def",
|
|
"hasEscape": false,
|
|
"kind": {
|
|
"type": "normal",
|
|
"containsQuote": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|