Class IsRemovedCoalescingOperator

java.lang.Object
org.ek9lang.compiler.phase1.IsRemovedCoalescingOperator
All Implemented Interfaces:
Predicate<org.antlr.v4.runtime.Token>

final class IsRemovedCoalescingOperator extends Object implements Predicate<org.antlr.v4.runtime.Token>
THE "is this token one of the removed coalescing operators?" - <=?, >=? (E01095), ?? or ??= (E01096), all reported by RemovedCoalescingOperatorOrError. A phase-1 check that would report AT such a token for another reason (E08269 reports a coalescing operand from the enclosing expression, before this one is entered) asks this and leaves the place to that error, so the first error at the place says what is wrong. Was RemovedCoalescingOperatorOrError.isRemoved (no-statics lane P1, 2026-10-29).
  • Constructor Details

    • IsRemovedCoalescingOperator

      IsRemovedCoalescingOperator()
  • Method Details

    • test

      public boolean test(org.antlr.v4.runtime.Token operator)
      Specified by:
      test in interface Predicate<org.antlr.v4.runtime.Token>