Class IsSmallerSpan

java.lang.Object
org.ek9lang.compiler.repair.expressions.IsSmallerSpan
All Implemented Interfaces:
BiPredicate<org.antlr.v4.runtime.ParserRuleContext, org.antlr.v4.runtime.ParserRuleContext>

final class IsSmallerSpan extends Object implements BiPredicate<org.antlr.v4.runtime.ParserRuleContext, org.antlr.v4.runtime.ParserRuleContext>
Does the first rule's character span lie within the second's and differ from it - is it strictly smaller? (Was two identical private copies in StringExpressionClassifier.) By character index, not by tree ancestry - that is IsWithin.
  • Constructor Details

    • IsSmallerSpan

      IsSmallerSpan()
  • Method Details

    • test

      public boolean test(org.antlr.v4.runtime.ParserRuleContext a, org.antlr.v4.runtime.ParserRuleContext b)
      Specified by:
      test in interface BiPredicate<org.antlr.v4.runtime.ParserRuleContext, org.antlr.v4.runtime.ParserRuleContext>