receiveDot method
Receive a dot, indicating the user wants to compose a decimal constant value.
Implementation
@override
DartBlockValueTreeAlgebraicNode receiveDot() {
if (parent != null) {
/// Convert to constant node 0., with a pending dot.
final newConstantNode = DartBlockValueTreeAlgebraicConstantNode.init(
0,
true,
parent,
specificNodeKey: nodeKey,
);
parent!.replaceChild(this, newConstantNode);
return newConstantNode;
} else {
return DartBlockValueTreeAlgebraicConstantNode.init(0, true, null);
}
}