{ "type": "Script", "span": { "start": 69, "end": 118, "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": 118, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 105, "end": 118, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 109, "end": 116, "ctxt": 0 }, "argument": null } ] }, "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 }