28 references to ClassifyImplicitConversionFromExpression
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Expressions.cs (3)
2581Conversion conversion = this.Conversions.ClassifyImplicitConversionFromExpression(boundOperand, intType, ref useSiteInfo); 2687Conversion conversion = this.Conversions.ClassifyImplicitConversionFromExpression(boundOperand, indexType, ref useSiteInfo); 9499Conversion conversion = this.Conversions.ClassifyImplicitConversionFromExpression(expr, targetType, ref useSiteInfo);
Binder\Binder_Invocation.cs (1)
1743Conversion conversion = Conversions.ClassifyImplicitConversionFromExpression(unconvertedCollection, collectionType, ref useSiteInfo);
Binder\Binder_Operators.cs (5)
4067var rightConversion = Conversions.ClassifyImplicitConversionFromExpression(rightOperand, optLeftType0, ref useSiteInfo); 4085var rightConversion = Conversions.ClassifyImplicitConversionFromExpression(rightOperand, optLeftType, ref useSiteInfo); 4148leftConversionClassification = Conversions.ClassifyImplicitConversionFromExpression(leftOperand, optRightType, ref useSiteInfo); 4202var underlyingRightConversion = Conversions.ClassifyImplicitConversionFromExpression(rightOperand, underlyingLeftType, ref useSiteInfo); 4216var rightConversion = Conversions.ClassifyImplicitConversionFromExpression(rightOperand, leftType, ref useSiteInfo);
Binder\Binder_Statements.cs (1)
2421var conversion = this.Conversions.ClassifyImplicitConversionFromExpression(expr, targetType, ref useSiteInfo);
Binder\Semantics\BestTypeInferrer.cs (2)
146if (conversionsWithoutNullability.ClassifyImplicitConversionFromExpression(expr2, type1, ref useSiteInfo).Exists) 161if (conversionsWithoutNullability.ClassifyImplicitConversionFromExpression(expr1, type2, ref useSiteInfo).Exists)
Binder\Semantics\Conversions\Conversions.cs (2)
223_ => ClassifyImplicitConversionFromExpression((BoundExpression)element, elementType, ref useSiteInfo), 238return ClassifyImplicitConversionFromExpression(
Binder\Semantics\Conversions\ConversionsBase.cs (7)
299var result = ClassifyImplicitConversionFromExpression(sourceExpression, destination, ref useSiteInfo); 381Conversion implicitConversion = ClassifyImplicitConversionFromExpression(source, destination, ref useSiteInfo); 1197var nestedConversion = this.ClassifyImplicitConversionFromExpression(arm.Value, destination, ref useSiteInfo); 1220var trueConversion = this.ClassifyImplicitConversionFromExpression(conditionalOperator.Consequence, destination, ref useSiteInfo); 1224var falseConversion = this.ClassifyImplicitConversionFromExpression(conditionalOperator.Alternative, destination, ref useSiteInfo); 2297=> conversions.ClassifyImplicitConversionFromExpression(s, d.Type, ref u), 3039if (ClassifyImplicitConversionFromExpression(expressionToCheck, targetInterfaceType, ref useSiteInfo).IsImplicit)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
383if (Conversions.ClassifyImplicitConversionFromExpression(left, systemDelegateType, ref useSiteInfo).IsValid && 384Conversions.ClassifyImplicitConversionFromExpression(right, systemDelegateType, ref useSiteInfo).IsValid)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
2816Conversions.ClassifyImplicitConversionFromExpression(node, t1, ref useSiteInfo), 2818Conversions.ClassifyImplicitConversionFromExpression(node, t2, ref useSiteInfo), 4590Conversions.ClassifyImplicitConversionFromExpression(argument, parameterType, ref useSiteInfo) :
Binder\SwitchExpressionBinder.cs (1)
163if (!this.Conversions.ClassifyImplicitConversionFromExpression(@case.Value, commonType, ref useSiteInfo).Exists)
Symbols\Source\ParameterHelpers.cs (1)
737Conversion conversion = binder.Conversions.ClassifyImplicitConversionFromExpression(defaultExpression, parameterType, ref useSiteInfo);