Binder\Binder_Expressions.cs (8)
271GenerateConversionForAssignment(type, expression, BindingDiagnosticBag.Discarded);
369result = GenerateConversionForAssignment(type, boundStackAlloc, diagnostics);
427return GenerateConversionForAssignment(delegateType, expr, diagnostics);
479initializer = GenerateConversionForAssignment(varType, initializer, diagnostics);
511defaultValueBinder.GenerateConversionForAssignment(parameter.Type, valueBeforeConversion, diagnostics, ConversionForAssignmentFlags.DefaultParameter));
525initializer = initializerBinder.GenerateConversionForAssignment(symbol.ContainingType.EnumUnderlyingType, initializer, diagnostics);
4231BoundExpression convertedExpression = GenerateConversionForAssignment(elemType, boundExpression, diagnostics);
4500count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics);
Binder\Binder_InterpolatedString.cs (6)
101alignment = GenerateConversionForAssignment(intType, BindValue(interpolation.AlignmentClause.Value, diagnostics, Binder.BindValueKind.RValue), diagnostics);
356construction = GenerateConversionForAssignment(
400value = GenerateConversionForAssignment(Compilation.ObjectType, value, diagnostics);
696_ = GenerateConversionForAssignment(objectType, value, conversionDiagnostics);
862newValue = GenerateConversionForAssignment(objectType, insert.Value, diagnostics);
867_ = GenerateConversionForAssignment(objectType, insert.Value, diagnostics);
Binder\Binder_Operators.cs (4)
201BoundExpression finalConversion = GenerateConversionForAssignment(leftType, finalPlaceholder, diagnostics,
2337BoundExpression resultConversion = GenerateConversionForAssignment(operandType, resultPlaceholder, diagnostics, ConversionForAssignmentFlags.IncrementAssignment);
4323trueExpr = GenerateConversionForAssignment(bestType, trueExpr, diagnostics);
4324falseExpr = GenerateConversionForAssignment(bestType, falseExpr, diagnostics);