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.