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

Method currentVarScopeFlags

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

Source from the content-addressed store, hash-verified

212 }
213
214 currentVarScopeFlags(): ScopeFlag {
215 for (let i = this.scopeStack.length - 1; ; i--) {
216 const { flags } = this.scopeStack[i];
217 if (flags & ScopeFlag.VAR) {
218 return flags;
219 }
220 }
221 }
222
223 // Could be useful for `arguments`, `this`, `new.target`, `super()`, `super.property`, and `super[property]`.
224 currentThisScopeFlags(): ScopeFlag {

Callers 1

inFunctionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected