private void EmitDefaultExpression(BoundDefaultOperator expression, bool used) { Debug.Assert(expression.Type.SpecialType == SpecialType.System_Decimal || expression.Type.GetDefaultValue() == null, "constant should be set on this expression"); // Default value for the given default expression is not a constant // Expression must be of type parameter type or a non-primitive value type // Emit an initobj instruction for these cases EmitInitObj(expression.Type, used, expression.Syntax); }
internal void Parse(BoundDefaultOperator boundDefaultOperator) { base.Parse(boundDefaultOperator); }