Class UndeclaredExternResult

java.lang.Object
org.ek9lang.compiler.support.retention.UndeclaredExternResult
All Implemented Interfaces:
Predicate<ScopedSymbol>

public final class UndeclaredExternResult extends Object implements Predicate<ScopedSymbol>
THE fail-closed default of the RESULT side of the retention trust boundary (D7', Steve 2026-11-12; the master plan's M1): an externally implemented callable that declares NO @Ek9Retains at all, whose result type can reach a user object (MayHoldUserObject), hands back something that MAY alias its receiver or an argument. Its body cannot be walked, and absence is only safe on the side the audit covers (Ek9RetainsAnnotationTest holds every such core member to a declaration - a view declares return <- receiver-interior or return <- <parameter>, a new object return <- fresh); so an un-annotated one is read the conservative way, never as "fresh". The PARAMETER side keeps the opposite default (absent = keeps nothing): that is the audited promise. A user callable is never read here: phase 5 derives its rules, and nothing derived means nothing kept. Read by MayAlias; hold one.
  • Constructor Details

    • UndeclaredExternResult

      public UndeclaredExternResult()
  • Method Details