Class OverriddenDeclarations

java.lang.Object
org.ek9lang.compiler.support.OverriddenDeclarations
All Implemented Interfaces:
BiFunction<IAggregateSymbol, MethodSymbol, List<MethodSymbol>>

public final class OverriddenDeclarations extends Object implements BiFunction<IAggregateSymbol, MethodSymbol, List<MethodSymbol>>
THE parent declarations a method overrides - hold one and apply it, do not re-derive it.

A method overrides exactly the parent declarations (the super class's and each trait's, IAggregateSymbol.getDirectSupertypes()) with EXACTLY its signature: the same name and exactly the same parameter types (MethodSymbol.hasSameSignatureAs(MethodSymbol); Steve, 2026-10-02, N06), taken from each parent's getAllEffectiveMethods() - the override-collapsed view, where a declaration further down a parent's own chain replaces what it overrides.

Two decisions read it, and must agree: phase 3's override rule (MethodOverridesOrError: is 'override' required, is it wrong) and phase 7's covariant bridges (NarrowedReturnTypes, N07: the return types a back end must also make the override reachable under, since a JVM method's identity includes its return type).