Class WithEnvironment
java.lang.Object
com.oracle.truffle.js.parser.env.Environment
com.oracle.truffle.js.parser.env.DerivedEnvironment
com.oracle.truffle.js.parser.env.WithEnvironment
This environment stores "with" blocks. Actually, this is just a marker in the chain (tree) of
environments.
-
Nested Class Summary
Nested classes/interfaces inherited from class Environment
Environment.AbstractFrameVarRef, Environment.FrameSlotVarRef, Environment.GlobalLexVarRef, Environment.GlobalVarRef, Environment.MappedArgumentVarRef, Environment.VarRef, Environment.WrappedVarRef -
Field Summary
Fields inherited from class Environment
context, factory -
Constructor Summary
ConstructorsConstructorDescriptionWithEnvironment(Environment parent, NodeFactory factory, JSContext context, Object withVarIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnvironment chain contains a dynamic scope (eval or with) that may shadow variables.Methods inherited from class DerivedEnvironment
declareInternalSlot, getBlockFrameDescriptor, getCurrentBlockScopeSlot, getScopeLevelMethods inherited from class Environment
addFrameSlotFromSymbol, addFrameSlotsFromSymbols, addFrameSlotsFromSymbols, createLocal, createTempVar, declareLocalVar, findActiveModule, findArgumentsVar, findAsyncContextVar, findAsyncResultVar, findBlockFrameSlot, findBlockScopedVar, findDynamicScopeVar, findFunctionFrameSlot, findInternalSlot, findInternalSlot, findInternalSlot, findLocalVar, findNewTargetVar, findSuperVar, findTempVar, findThisVar, findVar, findVar, findVar, findYieldValueVar, function, getBlockScopeSlot, getFunctionFrameDescriptor, getParent, getParentAt, getScope, getVariableEnvironment, hasLocalVar, hasScopeFrame, isDynamicallyScoped, isStrictMode, joinElements, reserveArgumentsSlot, reserveDynamicScopeSlot, reserveNewTargetSlot, reserveSuperSlot, reserveThisSlot, toString, toStringImpl
-
Constructor Details
-
WithEnvironment
public WithEnvironment(Environment parent, NodeFactory factory, JSContext context, Object withVarIdentifier)
-
-
Method Details
-
getWithVarIdentifier
-
isDynamicScopeContext
public boolean isDynamicScopeContext()Description copied from class:EnvironmentEnvironment chain contains a dynamic scope (eval or with) that may shadow variables.- Overrides:
isDynamicScopeContextin classEnvironment
-