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

67 lines
1.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 80,
"end": 85,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 80,
"end": 85,
"ctxt": 0
},
"value": "await",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 87,
"end": 90,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}