Binder\Semantics\OverloadResolution\OverloadResolution.cs (13)
43private Conversions Conversions
2536if (!Conversions.HasIdentityConversion(t1, t2))
2884if (Conversions.HasIdentityConversion(t1, t2))
3065if (!Conversions.HasIdentityConversion(elementType1, elementType2))
3134Debug.Assert(!Conversions.HasIdentityConversion(t1, t2));
3210if ((object)node.Type != null && Conversions.HasIdentityConversion(node.Type, t))
3240if (x.HasType && Conversions.HasIdentityConversion(x.Type, y))
3430if (Conversions.HasIdentityConversion(type1, type2))
3628Debug.Assert(!Conversions.HasIdentityConversion(r1, r2));
3648if (Conversions.HasIdentityConversion(r1, r2))
3702if (!Conversions.HasIdentityConversion(param1.Type, param2.Type))
4472if (forExtensionMethodThisArg && !conversion.IsDynamic && !Conversions.IsValidExtensionMethodThisArgConversion(conversion))
4604if ((object)argType != null && Conversions.HasIdentityConversion(argType, parameterType))
FlowAnalysis\NullableWalker.cs (12)
175private readonly Conversions _conversions;
456Conversions conversions,
470_conversions = (Conversions)conversions.WithNullability(true);
1382var conversions = binder.Conversions;
1682Conversions conversions,
1722Conversions conversions,
2007var conversionsWithoutNullability = this.compilation.Conversions;
2614var conversionsWithoutNullability = _conversions.WithNullability(false);
2720var conversionsWithoutNullability = _conversions.WithNullability(false);
4702Conversions conversions,
4739Conversions conversionsWithoutNullability = walker._conversions.WithNullability(false);
8093private Conversion GenerateConversion(Conversions conversions, BoundExpression? sourceExpression, TypeSymbol? sourceType, TypeSymbol destinationType, bool fromExplicitCast, bool extensionMethodThisArgument, bool isChecked)