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

46 lines
804 B
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 37,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 17,
"end": 37,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 34,
"end": 37,
"ctxt": 0
},
"stmts": []
},
"generator": true,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}