{ "type": "Script", "span": { "start": 69, "end": 171, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 84, "end": 87, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 69, "end": 171, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 105, "end": 171, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 156, "end": 169, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 160, "end": 168, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 160, "end": 161, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 161, "end": 168, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 163, "end": 168, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 163, "end": 168, "ctxt": 0 }, "value": "await", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 89, "end": 104, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 91, "end": 104, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 91, "end": 98, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 98, "end": 104, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 99, "end": 103, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }