Class TextMethodAtCursor
java.lang.Object
org.ek9lang.compiler.repair.expressions.TextMethodAtCursor
THE text method round the cursor: the smallest
EK9Parser.TextBodyDeclarationContext containing it, with the
name of its enclosing EK9Parser.TextDeclarationContext (was
StringExpressionClassifier.findEnclosingTextMethodDeclaration). Used by the IDE's right-click "Remove Text
Method..." in an i18n file: the cursor inside a mainWelcome() block surfaces the action with both names
resolved, so the MCP dispatch is one step. Null when no text body declaration contains the cursor, or the enclosing
text type's name cannot be resolved.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe resolved text-type and method names, ready to feed straight intoek9_edit_localized_textastextTypeName/methodName. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The text method round the cursor (1-based line and column), or null.
-
Constructor Details
-
TextMethodAtCursor
public TextMethodAtCursor()
-
-
Method Details
-
apply
public TextMethodAtCursor.TextMethodTarget apply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col) The text method round the cursor (1-based line and column), or null.
-