swc/crates/swc_ecma_parser/tests/tsc/YieldStarExpression4_es6.json

73 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 50,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "g",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 17,
"end": 50,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 31,
"end": 50,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 37,
"end": 48,
"ctxt": 0
},
"expression": {
"type": "YieldExpression",
"span": {
"start": 37,
"end": 47,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 45,
"end": 47,
"ctxt": 0
},
"elements": []
},
"delegate": true
}
}
]
},
"generator": true,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}