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

46 lines
807 B
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 16,
"end": 36,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "yield",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 16,
"end": 36,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}