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

86 lines
1.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 43,
"end": 72,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 54,
"end": 67,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 54,
"end": 67,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 54,
"end": 59,
"ctxt": 0
},
"value": "await",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "await",
"optional": false
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 43,
"end": 72,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}