static string Group(SignalExpressionPart signalExpression) { if (signalExpression.Kind == SignalExpressionKind.Signal) { return(signalExpression.ToString()); } return($"({signalExpression})"); }
public static SignalExpressionPart Union(SignalExpressionPart left, SignalExpressionPart right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } return(new SignalExpressionPart { Kind = SignalExpressionKind.Union, Left = left, Right = right }); }