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, typedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.javascript.rhino.StaticScope
getTopmostScopeOfEventualDeclaration
-
Method Details
-
untyped
- Overrides:
untypedin classAbstractScope<Scope,Var>
-
getDepth
public int getDepth()Description copied from class:AbstractScopeThe depth of the scope. The global scope has depth 0.- Specified by:
getDepthin classAbstractScope<Scope,Var>
-
getParent
Description copied from class:AbstractScopeReturns the parent scope, or null if this is the global scope.- Specified by:
getParentin classAbstractScope<Scope,Var>
-