public CodeCompoundAssignmentExpression(CodeExpression left, CodeCompoundAssignmentOperatorType op, CodeExpression right) { Ensure.That(nameof(left)).IsNotNull(left); Ensure.That(nameof(right)).IsNotNull(right); Left = left; Operator = op; Right = right; }
public static CodeCompoundAssignmentExpression CompoundAssign(this CodeExpression left, CodeCompoundAssignmentOperatorType op, CodeExpression right) => new CodeCompoundAssignmentExpression(left, op, right);