public static final class SymbolTable.SymbolScope
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getIndexOfSymbol(SymbolTable.Symbol sym)
Gets a unique index for the symbol in this scope.
|
SymbolTable.SymbolScope |
getParentScope() |
SymbolTable.Symbol |
getQualifiedSlot(java.lang.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 |
getScopeDepth() |
SymbolTable.Symbol |
getSlot(java.lang.String name) |
JSType |
getTypeOfThis() |
boolean |
isDocScope()
Returns whether this is a doc scope.
|
boolean |
isGlobalScope() |
boolean |
isLexicalScope() |
boolean |
isPropertyScope() |
java.lang.String |
toString() |
public int getIndexOfSymbol(SymbolTable.Symbol sym)
public SymbolTable.SymbolScope getParentScope()
public SymbolTable.Symbol getQualifiedSlot(java.lang.String name)
public SymbolTable.Symbol getSlot(java.lang.String name)
public JSType getTypeOfThis()
public boolean isGlobalScope()
public boolean isDocScope()
public boolean isPropertyScope()
public boolean isLexicalScope()
public int getScopeDepth()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2018 Google. All Rights Reserved.