15 references to CreateConversion
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Conversions.cs (2)
29
return
CreateConversion
(source.Syntax, source, conversion, isCast: false, conversionGroupOpt: null, destination: destination, diagnostics: diagnostics);
38
return
CreateConversion
(source.Syntax, source, conversion, isCast: false, conversionGroupOpt: null, destination: destination, diagnostics: diagnostics);
Binder\Binder_Expressions.cs (6)
3527
coercedArgument =
CreateConversion
(argument.Syntax, argument, kind, isCast: false, conversionGroupOpt: null, parameterTypeWithAnnotations.Type, diagnostics);
3548
coercedArgument =
CreateConversion
(argument.Syntax, argument, kind, isCast: false, conversionGroupOpt: null, parameterTypeWithAnnotations.Type, diagnostics);
3706
return
CreateConversion
(
3737
return
CreateConversion
(
9450
return
CreateConversion
(node, index, failedConversion, isCast: false, conversionGroupOpt: null, destination: int32, diagnostics: BindingDiagnosticBag.Discarded);
9512
BoundExpression result =
CreateConversion
(expr.Syntax, expr, conversion, isCast: false, conversionGroupOpt: null, destination: targetType, diagnostics); // UNDONE: was cast?
Binder\Binder_Invocation.cs (1)
1697
defaultValue =
CreateConversion
(
Binder\Binder_Operators.cs (2)
2363
var operandConversion =
CreateConversion
(node, operandPlaceholder, best.Conversion, isCast: false, conversionGroupOpt: null, best.Signature.OperandType, diagnostics);
2793
var resultOperand =
CreateConversion
(operand.Syntax, operand, best.Conversion, isCast: false, conversionGroupOpt: null, signature.OperandType, diagnostics);
Binder\Binder_Statements.cs (3)
1382
elementConversion =
CreateConversion
(initializerSyntax, elementPlaceholder, elementConversionClassification, isCast: false, conversionGroupOpt: null, declType,
1990
return
CreateConversion
(expression.Syntax, expression, conversion, isCast: false, conversionGroupOpt: null, targetType, diagnostics);
3197
return
CreateConversion
(argument.Syntax, argument, conversion, isCast: false, conversionGroupOpt: null, returnType, diagnostics);
Binder\ForEachLoopBinder.cs (1)
630
BoundExpression convertedCollectionExpression =
CreateConversion
(