receiveDot method

  1. @override
DartBlockValueTreeAlgebraicNode receiveDot()
override

Receive a dot, indicating the user wants to compose a decimal constant value.

Implementation

@override
DartBlockValueTreeAlgebraicNode receiveDot() {
  if (rightChild == null) {
    if (operator != null) {
      rightChild = DartBlockValueTreeAlgebraicConstantNode.init(
        0,
        true,
        this,
      );
    } else {
      leftChild?.receiveDot();
    }

    return this;
  } else {
    return rightChild!.receiveDot();
  }
}