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

Method inFunction

packages/babel-parser/src/util/scope.ts:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 return (this.currentScope().flags & ScopeFlag.PROGRAM) > 0;
41 }
42 get inFunction() {
43 return (this.currentVarScopeFlags() & ScopeFlag.FUNCTION_BASE) > 0;
44 }
45 get allowSuper() {
46 return (this.currentThisScopeFlags() & ScopeFlag.SUPER) > 0;
47 }

Callers

nothing calls this directly

Calls 1

currentVarScopeFlagsMethod · 0.95

Tested by

no test coverage detected