Binder\Semantics\OverloadResolution\OverloadResolution.cs (13)
43private Conversions Conversions
2544if (!Conversions.HasIdentityConversion(t1, t2))
2892if (Conversions.HasIdentityConversion(t1, t2))
3086if (!Conversions.HasIdentityConversion(elementType1, elementType2))
3155Debug.Assert(!Conversions.HasIdentityConversion(t1, t2));
3231if ((object)node.Type != null && Conversions.HasIdentityConversion(node.Type, t))
3261if (x.HasType && Conversions.HasIdentityConversion(x.Type, y))
3451if (Conversions.HasIdentityConversion(type1, type2))
3649Debug.Assert(!Conversions.HasIdentityConversion(r1, r2));
3669if (Conversions.HasIdentityConversion(r1, r2))
3723if (!Conversions.HasIdentityConversion(param1.Type, param2.Type))
4493if (forExtensionMethodThisArg && !conversion.IsDynamic && !Conversions.IsValidExtensionMethodThisArgConversion(conversion))
4625if ((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);
8090private Conversion GenerateConversion(Conversions conversions, BoundExpression? sourceExpression, TypeSymbol? sourceType, TypeSymbol destinationType, bool fromExplicitCast, bool extensionMethodThisArgument, bool isChecked)