receiveOperator method
Receive an operator (+, -, *, /)
Implementation
@override
DartBlockValueTreeAlgebraicNode receiveOperator(
DartBlockAlgebraicOperator operator,
) {
/// If it has no right child, add or replace its operator and return the same
/// node.
if (rightChild == null) {
this.operator = operator;
return this;
} else {
/// Otherwise, use the normal behavior, i.e. wrap it in a new
/// ArithmeticOperatorNode.
return super.receiveOperator(operator);
}
}