/// <summary> /// Initializes a new instance of the IncrementExpression class. /// </summary> /// <param name="proxy">Proxy object for the expression.</param> /// <param name="value">The value being incremented.</param> /// <param name="type">The type of increment being performed.</param> internal IncrementExpression(CodeUnitProxy proxy, Expression value, IncrementExpressionType type) : base(proxy, (int)type) { Param.AssertNotNull(proxy, "proxy"); Param.AssertNotNull(value, "value"); Param.Ignore(type); CsLanguageService.Debug.Assert(System.Enum.IsDefined(typeof(IncrementExpressionType), this.IncrementExpressionType), "The type is invalid."); this.value.Value = value; }