31 references to GenerateConversionForAssignment
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Attributes.cs (1)
562namedArgumentValue = GenerateConversionForAssignment(namedArgumentType, namedArgumentValue, diagnostics);
Binder\Binder_Deconstruct.cs (1)
223boundRHS = GenerateConversionForAssignment(mergedTupleType, boundRHS, diagnostics);
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); 4234BoundExpression convertedExpression = GenerateConversionForAssignment(elemType, boundExpression, diagnostics); 4503count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics);
Binder\Binder_Initializers.cs (1)
262expression = binder.GenerateConversionForAssignment(submissionResultType, expression, 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_Invocation.cs (1)
287analyzedArguments.Arguments[i] = GenerateConversionForAssignment(objType, argument, 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);
Binder\Binder_Statements.cs (4)
244argument = GenerateConversionForAssignment(elementType, argument, diagnostics); 428boundExpr = GenerateConversionForAssignment(GetWellKnownType(WellKnownType.System_Exception, diagnostics, exprSyntax), boundExpr, diagnostics); 1060initializerOpt = GenerateConversionForAssignment( 1489var conversion = GenerateConversionForAssignment(lhsType, op2,
Binder\Binder_TupleOperators.cs (1)
73return GenerateConversionForAssignment(convertedType, expr, diagnostics);
Binder\LockOrUsingBinder.cs (1)
87boundExpression = originalBinder.GenerateConversionForAssignment(targetTypeOpt, boundExpression, expressionDiagnostics);
Binder\SwitchExpressionBinder.cs (1)
203switchGoverningExpression = this.GenerateConversionForAssignment(CreateErrorType(), switchGoverningExpression, diagnostics);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
404convertedExpression = binder.GenerateConversionForAssignment(Type.GetNullableUnderlyingType(),
Symbols\Source\SourceFixedFieldSymbol.cs (1)
90BoundExpression boundSizeExpression = binder.GenerateConversionForAssignment(