Class Environment.AbstractFrameVarRef
java.lang.Object
com.oracle.truffle.js.parser.env.Environment.VarRef
com.oracle.truffle.js.parser.env.Environment.AbstractFrameVarRef
- Direct Known Subclasses:
Environment.FrameSlotVarRef, Environment.MappedArgumentVarRef
- Enclosing class:
Environment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final Environmentprotected final intFields inherited from class Environment.VarRef
name -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFrameVarRef(int scopeLevel, int frameLevel, Object name, Environment resolvedEnv) -
Method Summary
Methods inherited from class Environment.VarRef
createCompoundAssignNode, createReadNode, createWriteNode, getFrameSlot, getName, hasBeenDeclared, hasTDZCheck, isConst, isFrameVar, setHasBeenDeclared, toString, withRequired, withTDZCheck
-
Field Details
-
scopeLevel
protected final int scopeLevel -
frameLevel
protected final int frameLevel -
resolvedEnv
-
-
Constructor Details
-
AbstractFrameVarRef
-
-
Method Details
-
getScopeLevel
public int getScopeLevel() -
getFrameLevel
public int getFrameLevel() -
isFunctionLocal
public boolean isFunctionLocal()- Overrides:
isFunctionLocalin classEnvironment.VarRef
-
isGlobal
public boolean isGlobal()- Overrides:
isGlobalin classEnvironment.VarRef
-
createDeleteNode
- Specified by:
createDeleteNodein classEnvironment.VarRef
-
createScopeFrameNode
-
isInCurrentFunctionFrame
protected boolean isInCurrentFunctionFrame()
-