swc/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration3_es2017.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

85 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 44,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 55,
"end": 68,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 55,
"end": 68,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 55,
"end": 60,
"ctxt": 0
},
"value": "await",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 63,
"end": 68,
"ctxt": 0
},
"value": "await",
"optional": false
}
}
}
],
"decorators": [],
"span": {
"start": 44,
"end": 73,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 70,
"end": 73,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}