Class ActivationScopes
java.lang.Object
org.ek9lang.compiler.phase9.ActivationScopes
THE record of which scopes are entered in which ACTIVATION during an
IRStructureWalk: the operation body is
one activation, and every per-iteration list (CompositeInstr.Activation.PER_ITERATION) starts a new one for
as long as it is walked. Shared by the stage-0 rules (LoopActivationOwnership) and the ownership verifier
(OwnershipVerifier) so "is this scope in the current activation" has one answer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ObjectThe current activation's identity (compared by identity), for rules that compare where two instructions are.(package private) booleanenteredInCurrentActivation(String scopeId) True when the scope was entered in the activation now being walked.(package private) booleanenteredInEnclosingActivation(String scopeId) True when the scope was entered in this activation or one that encloses it.(package private) void(package private) void(package private) booleaninLoop()True while inside at least one per-iteration list.(package private) voidinstruction(IRInstr instruction) Track one instruction (only SCOPE_ENTER matters).
-
Constructor Details
-
ActivationScopes
ActivationScopes()
-
-
Method Details
-
instruction
Track one instruction (only SCOPE_ENTER matters). -
enterList
-
exitList
-
inLoop
boolean inLoop()True while inside at least one per-iteration list. -
enteredInCurrentActivation
True when the scope was entered in the activation now being walked. -
enteredInEnclosingActivation
True when the scope was entered in this activation or one that encloses it. -
currentActivation
Object currentActivation()The current activation's identity (compared by identity), for rules that compare where two instructions are.
-