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

46 lines
802 B
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 27,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 1,
"end": 27,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}