{ "type": "Script", "span": { "start": 44, "end": 146, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 59, "end": 62, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 44, "end": 146, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 80, "end": 146, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 131, "end": 144, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 135, "end": 143, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 135, "end": 136, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 136, "end": 143, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 138, "end": 143, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 138, "end": 143, "ctxt": 0 }, "value": "await", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 64, "end": 79, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 66, "end": 79, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 66, "end": 73, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 73, "end": 79, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 74, "end": 78, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }