Package com.google.javascript.jscomp
Class Scope
- All Implemented Interfaces:
StaticScope
,Serializable
Scope contains information about a variable scope in JavaScript. Scopes can be nested, a scope
points back to its parent scope. A Scope contains information about variables defined in that
scope.
- See Also:
-
Method Summary
Methods inherited from class com.google.javascript.jscomp.AbstractScope
getAllAccessibleVariables, getAllSymbols, getArgumentsVar, getClosestCfgRootScope, getClosestContainerScope, getClosestHoistScope, getGlobalScope, getOwnSlot, getParentScope, getRootNode, getSlot, getVar, getVarCount, getVarIterable, hasOwnImplicitSlot, hasOwnSlot, hasSlot, isBlockScope, isCatchScope, isCfgRootScope, isComputedFieldDefRhsScope, isFunctionBlockScope, isFunctionScope, isGlobal, isLocal, isMemberFieldDefScope, isModuleScope, isStaticBlockScope, toString, typed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.javascript.rhino.StaticScope
getTopmostScopeOfEventualDeclaration
-
Method Details
-
untyped
- Overrides:
untyped
in classAbstractScope<Scope,
Var>
-
getDepth
public int getDepth()Description copied from class:AbstractScope
The depth of the scope. The global scope has depth 0.- Specified by:
getDepth
in classAbstractScope<Scope,
Var>
-
getParent
Description copied from class:AbstractScope
Returns the parent scope, or null if this is the global scope.- Specified by:
getParent
in classAbstractScope<Scope,
Var>
-