Class ExpressionAtCursor
java.lang.Object
org.ek9lang.compiler.repair.expressions.ExpressionAtCursor
THE smallest
EK9Parser.ExpressionContext whose token range CONTAINS the cursor (line, col), 1-based - "what
expression is the cursor inside" without an explicit selection (was
StringExpressionClassifier.findExpressionAtCursor; ExpressionSpanningSelection is the exact-range
form). Null when no expression contains the position (whitespace, a comment, indentation).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The smallest expression containing the cursor, or null.
-
Constructor Details
-
ExpressionAtCursor
public ExpressionAtCursor()
-
-
Method Details
-
apply
public EK9Parser.ExpressionContext apply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The smallest expression containing the cursor, or null.
-