Class RetentionDerivation
java.lang.Object
org.ek9lang.compiler.phase5.RetentionDerivation
- All Implemented Interfaces:
BiConsumer<Collection<MutatedOnlyVariables.ReturningCallable>, Collection<ScopedSymbol>>
final class RetentionDerivation
extends Object
implements BiConsumer<Collection<MutatedOnlyVariables.ReturningCallable>, Collection<ScopedSymbol>>
THE joint fixpoint of the two RETAINS derivations (option B slice D, Steve 2026-11-13): what a user callable
RETURNS (
ReceiverInteriorReturns - a parameter, its receiver's interior, through locals, wrappers and
captures) and what it KEEPS (CloseableArgumentKeeping - a parameter kept in a property, another argument,
ambiently, or handed back), with every body-less dynamic function inheriting its super's rules
(InheritedRules) and the dispatch unions (D61) inside the same loop. They were two fixpoints run in
sequence, so a return <- p the keep side wrote for a wrapper was never seen by a caller's return origins,
and the return side's wrapper rule reads the keep side's constructor verdicts (fateOf) - one loop, alternating
passes until neither side changes a mark. Marks only add, so it terminates; the result is the same in any order.
After it: the keep side's E81062 report (CloseableArgumentKeeping.finish()). Writes squirrelled data: run under
the program lock. Hold one.-
Constructor Summary
ConstructorsConstructorDescriptionRetentionDerivation(ReceiverInteriorReturns returns, CloseableArgumentKeeping keeping) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Collection<MutatedOnlyVariables.ReturningCallable> callables, Collection<ScopedSymbol> inheriting) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
RetentionDerivation
RetentionDerivation(ReceiverInteriorReturns returns, CloseableArgumentKeeping keeping)
-
-
Method Details
-
accept
public void accept(Collection<MutatedOnlyVariables.ReturningCallable> callables, Collection<ScopedSymbol> inheriting) - Specified by:
acceptin interfaceBiConsumer<Collection<MutatedOnlyVariables.ReturningCallable>, Collection<ScopedSymbol>>- Parameters:
callables- every walked callable with a returning variable, with its sourcesinheriting- every walked dynamic function with no body of its own
-