receiveConstant method

  1. @override
DartBlockValueTreeBooleanNode receiveConstant(
  1. bool constant
)
override

Implementation

@override
DartBlockValueTreeBooleanNode receiveConstant(bool constant) {
  if (rightChild == null) {
    if (operator != null) {
      rightChild = DartBlockValueTreeBooleanConstantNode.init(constant, this);
    } else {
      leftChild?.receiveConstant(constant);
    }

    return this;
  } else {
    return rightChild!.receiveConstant(constant);
  }
}