25 references to ClassifyConversionFromExpression
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Conversions.cs (1)
26
var conversion = Conversions.
ClassifyConversionFromExpression
(source, destination, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Binder_Expressions.cs (7)
1222
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(argument, typedReferenceType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
1271
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(argument, typedReferenceType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
2705
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(operand, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo, forCast: true);
5249
var conversion = @this.Conversions.
ClassifyConversionFromExpression
(expression, collectionType, isChecked: @this.CheckOverflowAtRuntime, ref useSiteInfo);
5341
var conversion = this.Conversions.
ClassifyConversionFromExpression
(unboundLambda, type, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
6952
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(classCreation, interfaceType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo, forCast: true);
9445
Conversion failedConversion = this.Conversions.
ClassifyConversionFromExpression
(index, int32, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Binder_Invocation.cs (1)
1680
Conversion conversion = Conversions.
ClassifyConversionFromExpression
(defaultValue, parameterType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Binder_Operators.cs (5)
64
var finalDynamicConversion = this.Compilation.Conversions.
ClassifyConversionFromExpression
(placeholder, left.Type, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
223
Conversion rightToLeftConversion = this.Conversions.
ClassifyConversionFromExpression
(right, leftType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
270
Conversion argumentConversion = this.Conversions.
ClassifyConversionFromExpression
(right, delegateType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
3311
Conversion conv = Conversions.
ClassifyConversionFromExpression
(operand, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
4056
Conversions.
ClassifyConversionFromExpression
(leftOperand, objectType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo),
Binder\Binder_Patterns.cs (1)
631
patternExpressionConversion = this.Conversions.
ClassifyConversionFromExpression
(expression, inputType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Binder_Statements.cs (4)
1944
this.Conversions.
ClassifyConversionFromExpression
(expression, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo) :
2672
var conversion = this.Conversions.
ClassifyConversionFromExpression
(expr, boolean, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
3150
conversion = this.Conversions.
ClassifyConversionFromExpression
(argument, returnType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
3155
conversion = this.Conversions.
ClassifyConversionFromExpression
(argument, returnType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\ForEachLoopBinder.cs (2)
523
Conversion collectionConversionClassification = this.Conversions.
ClassifyConversionFromExpression
(collectionExpr, builder.CollectionType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
1529
var collectionConversion = this.Conversions.
ClassifyConversionFromExpression
(collectionExpr, result.Parameters[0].Type, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2315
conversions.
ClassifyConversionFromExpression
(s, d.Type, isChecked: isChecked, ref u, forCast: forCast),
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
779
return (operand.Type is TypeParameterSymbol { AllowsRefLikeType: true }) ? Conversion.Boxing : Conversions.
ClassifyConversionFromExpression
(operand, objectType, isChecked: isChecked, ref useSiteInfo);
Binder\SwitchBinder.cs (1)
257
Conversion conversion = Conversions.
ClassifyConversionFromExpression
(caseExpression, SwitchGoverningType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
738
var conversion = _compilation.Conversions.
ClassifyConversionFromExpression
(loweredLeft, boolean, isChecked: false, ref useSiteInfo);