Class ConcatAtCursor

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

public final class ConcatAtCursor extends Object
THE whole + chain (WholeAddChain) round the cursor: the smallest binary + expression containing it, then its chain (was StringExpressionClassifier.findEnclosingConcatExpression). Used by the IDE's right-click "Rewrite to Backtick Interpolation": the user clicks anywhere inside the concat (including on an operand) and the enclosing concat is rewritten, not the operand - and all of it: the smallest alone wrote `Hello ${name}` + "!". Null when no concat spans the cursor.
  • Constructor Details

    • ConcatAtCursor

      public ConcatAtCursor()
  • Method Details

    • apply

      public EK9Parser.ExpressionContext apply(org.antlr.v4.runtime.tree.ParseTree root, int line, int col)
      The whole concat chain round the cursor, or null.