Class WholeAddChain
java.lang.Object
org.ek9lang.compiler.repair.expressions.WholeAddChain
- All Implemented Interfaces:
Function<EK9Parser.ExpressionContext, EK9Parser.ExpressionContext>, UnaryOperator<EK9Parser.ExpressionContext>
public final class WholeAddChain
extends Object
implements UnaryOperator<EK9Parser.ExpressionContext>
THE whole
+ chain a + expression is part of - use it, never a private climb: + groups left
to right, so "Hello " + name + "!" is ("Hello " + name) + "!", and the chain is the outermost
+ reached by climbing while the parent is still one. A parenthesised operand is a chain of its own (was
StringExpressionClassifier.wholeChain).-
Constructor Details
-
WholeAddChain
public WholeAddChain()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<EK9Parser.ExpressionContext, EK9Parser.ExpressionContext>
-