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

Function isAwaitUsing

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

Source from the content-addressed store, hash-verified

234 }
235
236 isAwaitUsing(): boolean {
237 if (!this.isContextual(tt._await)) {
238 return false;
239 }
240 let next = this.nextTokenInLineStart();
241 if (this.isUnparsedContextual(next, "using")) {
242 next = this.nextTokenInLineStartSince(next + 5);
243 const nextCh = this.codePointAtPos(next);
244 if (this.chStartsBindingIdentifier(nextCh, next)) {
245 return true;
246 }
247 }
248 return false;
249 }
250
251 chStartsBindingIdentifier(ch: number, pos: number) {
252 if (isIdentifierStart(ch)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected