Class RetractedComparatorUseOrError

All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, EK9Listener

final class RetractedComparatorUseOrError extends ScopeStackConsistencyListener
PRE_IR_CHECKS use-site check for a RETRACTED bare default comparison operator.

DefaultComparatorRecheckOrError retracts a bare-inferred <=>,<,<=,>,>= when a field's type is not orderable, so the operator is not generated. A use of that operator (holderA <=> holderB) was resolved back in FULL_RESOLUTION (before the retraction), so its bound CallSymbol still points at the now-retracted operator. This listener reports that as OPERATOR_NOT_DEFINED (E07620) - the SAME outcome as a direct list <=> list: a comparison that cannot work is not available, so ordering the wrapper is a compile error. Must run AFTER the retraction pass. Holds no shared state - safe in the phase's parallel per-source walk.