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

67 lines
1.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 38,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 28,
"end": 33,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 28,
"end": 33,
"ctxt": 0
},
"value": "yield",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 17,
"end": 38,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 35,
"end": 38,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}