Class TextMethodAtCursor

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

public final class TextMethodAtCursor extends Object
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.
  • 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.