Package com.google.javascript.jscomp
Class SymbolTable.SymbolScope
java.lang.Object
com.google.javascript.jscomp.SymbolTable.SymbolScope
- Enclosing class:
SymbolTable
Scope of a symbol
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Gets a unique index for the symbol in this scope.@Nullable SymbolTable.Symbol
getQualifiedSlot
(String name) Get the slot for a fully-qualified name (e.g., "a.b.c") by trying to find property scopes at each part of the path.int
@Nullable SymbolTable.Symbol
boolean
boolean
Returns whether this is a doc scope.boolean
boolean
boolean
boolean
toString()
-
Method Details
-
getIndexOfSymbol
Gets a unique index for the symbol in this scope. -
getParentScope
-
getQualifiedSlot
Get the slot for a fully-qualified name (e.g., "a.b.c") by trying to find property scopes at each part of the path. -
getSlot
-
getTypeOfThis
-
isGlobalScope
public boolean isGlobalScope() -
isModuleScope
public boolean isModuleScope() -
isDocScope
public boolean isDocScope()Returns whether this is a doc scope. A doc scope is a table for symbols that are documented solely within a JSDoc comment. -
isPropertyScope
public boolean isPropertyScope() -
isLexicalScope
public boolean isLexicalScope() -
isBlockScope
public boolean isBlockScope() -
getScopeDepth
public int getScopeDepth() -
getIndexInParent
public int getIndexInParent() -
toString
-