Class CopyRetentionRules

java.lang.Object
org.ek9lang.compiler.support.retention.CopyRetentionRules
All Implemented Interfaces:
BiPredicate<ScopedSymbol, ScopedSymbol>

final class CopyRetentionRules extends Object implements BiPredicate<ScopedSymbol, ScopedSymbol>
THE copy of every RETAINS rule of one callable onto another, parameters matched BY POSITION and re-named as the target declares them: return <- receiver-interior as it is, a kept receiver's destination re-named, a returned or kept parameter (or a part of one) by the target's parameter at the same position. Both directions of the derivation's unions are this one step: MarkOverriddenBy copies an OVERRIDE's rules UP onto the declaration a call may dispatch through (D61), MarkInheritedRules copies a SUPER function's rules DOWN onto a body-less dynamic function that forwards to it (option B slice B, 2026-11-13). Marks only add; answers true when the target gained a rule. Package-private: hold one of the two signposts, never this directly.