Class ExpressionSpanningSelection

java.lang.Object
org.ek9lang.compiler.repair.expressions.ExpressionSpanningSelection

public final class ExpressionSpanningSelection extends Object
THE smallest EK9Parser.ExpressionContext whose token range exactly matches a selection - its TokenRangeOf is [startLine, startCol, endLine, endCol], all 1-based (was StringExpressionClassifier.findSmallestEnclosingExpression). Null when no expression spans precisely the selection (typical when the range covers part of a token, crosses statement boundaries, or selects whitespace).
  • Constructor Details

    • ExpressionSpanningSelection

      public ExpressionSpanningSelection()
  • Method Details

    • apply

      public EK9Parser.ExpressionContext apply(org.antlr.v4.runtime.tree.ParseTree root, int startLine, int startCol, int endLine, int endCol)
      The smallest expression spanning exactly the selection, or null.