Class StringLiteralAtCursor
java.lang.Object
org.ek9lang.compiler.repair.expressions.StringLiteralAtCursor
THE smallest expression that both contains the cursor and is a single string literal (
IsSingleStringLiteral;
was StringExpressionClassifier.findEnclosingStringLiteralExpression). Used by the IDE's right-click "Extract
to Localized Text..." - the user clicks anywhere inside the literal and the literal itself is extracted.
A literal that is an operand of a + chain IS returned (it is the smallest single-literal match); the
IDE's menu builder routes that case through the rewrite-first flow by also checking that no enclosing concat exists
(ConcatAtCursor). Null when no single-string-literal expression spans the cursor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The smallest single string literal round the cursor, or null.
-
Constructor Details
-
StringLiteralAtCursor
public StringLiteralAtCursor()
-
-
Method Details
-
apply
public EK9Parser.ExpressionContext apply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The smallest single string literal round the cursor, or null.
-