public abstract class Environment.AbstractFrameVarRef extends Environment.VarRef
Modifier and Type | Field and Description |
---|---|
protected int |
frameLevel |
protected Environment |
resolvedEnv |
protected int |
scopeLevel |
name
Constructor and Description |
---|
AbstractFrameVarRef(int scopeLevel,
int frameLevel,
Object name,
Environment resolvedEnv) |
Modifier and Type | Method and Description |
---|---|
JavaScriptNode |
createDeleteNode() |
ScopeFrameNode |
createScopeFrameNode() |
int |
getFrameLevel() |
int |
getScopeLevel() |
boolean |
isFunctionLocal() |
boolean |
isGlobal() |
protected boolean |
isInCurrentFunctionFrame() |
createCompoundAssignNode, createReadNode, createWriteNode, getFrameSlot, getName, hasBeenDeclared, hasTDZCheck, isConst, isFrameVar, setHasBeenDeclared, toString, withRequired, withTDZCheck
protected final int scopeLevel
protected final int frameLevel
protected final Environment resolvedEnv
public AbstractFrameVarRef(int scopeLevel, int frameLevel, Object name, Environment resolvedEnv)
public int getScopeLevel()
public int getFrameLevel()
public boolean isFunctionLocal()
isFunctionLocal
in class Environment.VarRef
public boolean isGlobal()
isGlobal
in class Environment.VarRef
public JavaScriptNode createDeleteNode()
createDeleteNode
in class Environment.VarRef
public ScopeFrameNode createScopeFrameNode()
protected boolean isInCurrentFunctionFrame()