internal void AddParameter(QueryNode queryNode) => _parameters.Add(queryNode);
/// <summary> /// Initialises a new instance of the <see cref="BinaryOperatorNode"/> class. /// </summary> /// <param name="left">The left query node.</param> /// <param name="operatorKind">Kind of the operator.</param> /// <param name="right">The right query node.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="left"/> is null.</exception> internal BinaryOperatorNode(QueryNode left, BinaryOperatorKind operatorKind, QueryNode right) { Left = left ?? throw new ArgumentNullException(nameof(left)); OperatorKind = operatorKind; Right = right; }
/// <summary> /// Initialises a new instance of the <see cref="UnaryOperatorNode"/> class. /// </summary> /// <param name="operand">The operand of the unary operator.</param> /// <param name="operatorKind">Kind of the operator.</param> internal UnaryOperatorNode(QueryNode operand, UnaryOperatorKind operatorKind) { Operand = operand ?? throw new ArgumentNullException(nameof(operand)); OperatorKind = operatorKind; }