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

78 lines
1.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 43,
"end": 65,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 43,
"end": 65,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 47,
"end": 65,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 51,
"end": 65,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 52,
"end": 57,
"ctxt": 0
},
"value": "await",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 65,
"ctxt": 0
},
"stmts": []
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
],
"interpreter": null
}