public class WithEnvironment extends Environment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRefARGUMENTS_NAME, context, factory, NEW_TARGET_NAME, SUPER_NAME, THIS_NAME| Constructor and Description |
|---|
WithEnvironment(Environment parent,
NodeFactory factory,
JSContext context,
String withVarName) |
| Modifier and Type | Method and Description |
|---|---|
protected com.oracle.truffle.api.frame.FrameSlot |
findBlockFrameSlot(String name) |
FunctionEnvironment |
function() |
com.oracle.truffle.api.frame.FrameSlot[] |
getParentSlots() |
int |
getScopeLevel() |
String |
getWithVarName() |
boolean |
isDynamicScopeContext()
Environment chain contains a dynamic scope (eval or with) that may shadow variables.
|
addFrameSlotFromSymbol, addFrameSlotsFromSymbols, addFrameSlotsFromSymbols, createLocal, createLocal, createTempVar, declareLocalVar, declareVar, findArgumentsVar, findAsyncContextVar, findAsyncResultVar, findDynamicScopeVar, findInternalSlot, findInternalSlot, findLocalVar, findNewTargetVar, findSuperVar, findTempVar, findThisVar, findVar, findVar, findYieldValueVar, getBlockFrameDescriptor, getFunctionFrameDescriptor, getParent, getParentAt, getParentSlots, getVariableEnvironment, hasLocalVar, isDynamicallyScoped, isStrictModepublic WithEnvironment(Environment parent, NodeFactory factory, JSContext context, String withVarName)
public String getWithVarName()
public FunctionEnvironment function()
function in class Environmentpublic int getScopeLevel()
getScopeLevel in class Environmentprotected com.oracle.truffle.api.frame.FrameSlot findBlockFrameSlot(String name)
findBlockFrameSlot in class Environmentpublic boolean isDynamicScopeContext()
EnvironmentisDynamicScopeContext in class Environmentpublic com.oracle.truffle.api.frame.FrameSlot[] getParentSlots()
getParentSlots in class Environment