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

Function allowsUsing

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

Source from the content-addressed store, hash-verified

329 }
330
331 allowsUsing(): boolean {
332 return (
333 (this.scope.inModule || !this.scope.inTopLevel) &&
334 !this.scope.inBareCaseStatement
335 );
336 }
337
338 // https://tc39.es/ecma262/#prod-ModuleItem
339 parseModuleItem(this: Parser) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected