Class ExpressionSpanningSelection
java.lang.Object
org.ek9lang.compiler.repair.expressions.ExpressionSpanningSelection
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.antlr.v4.runtime.tree.ParseTree root, int startLine, int startCol, int endLine, int endCol) The smallest expression spanning exactly the selection, or null.
-
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.
-