MCPcopy Create free account
hub / github.com/babel/babel / isAsyncFunction

Function isAsyncFunction

packages/babel-parser/src/parser/statement.ts:2496–2500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2494 }
2495
2496 isAsyncFunction(): boolean {
2497 if (!this.isContextual(tt._async)) return false;
2498 const next = this.nextTokenInLineStart();
2499 return this.isUnparsedContextual(next, "function");
2500 }
2501
2502 parseExportDefaultExpression(
2503 this: Parser,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected