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

83 lines
1.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 16,
"end": 53,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 29,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 16,
"end": 53,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 32,
"end": 53,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 36,
"end": 42,
"ctxt": 0
},
"expression": {
"type": "YieldExpression",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"argument": null,
"delegate": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 45,
"end": 51,
"ctxt": 0
},
"expression": {
"type": "YieldExpression",
"span": {
"start": 45,
"end": 50,
"ctxt": 0
},
"argument": null,
"delegate": false
}
}
]
},
"generator": true,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}