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);
2702
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(operand, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo, forCast: true);
5246
var conversion = @this.Conversions.
ClassifyConversionFromExpression
(expression, collectionType, isChecked: @this.CheckOverflowAtRuntime, ref useSiteInfo);
5338
var conversion = this.Conversions.
ClassifyConversionFromExpression
(unboundLambda, type, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
6949
Conversion conversion = this.Conversions.
ClassifyConversionFromExpression
(classCreation, interfaceType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo, forCast: true);
9444
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);
3306
Conversion conv = Conversions.
ClassifyConversionFromExpression
(operand, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
4051
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)
1941
this.Conversions.
ClassifyConversionFromExpression
(expression, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo) :
2669
var conversion = this.Conversions.
ClassifyConversionFromExpression
(expr, boolean, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
3147
conversion = this.Conversions.
ClassifyConversionFromExpression
(argument, returnType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
3152
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);