Binder\Semantics\OverloadResolution\OverloadResolution.cs (14)
43private Conversions Conversions
2544if (!Conversions.HasIdentityConversion(t1, t2))
2892if (Conversions.HasIdentityConversion(t1, t2))
3073if (!Conversions.HasIdentityConversion(elementType1, elementType2))
3142Debug.Assert(!Conversions.HasIdentityConversion(t1, t2));
3218if ((object)node.Type != null && Conversions.HasIdentityConversion(node.Type, t))
3248if (x.HasType && Conversions.HasIdentityConversion(x.Type, y))
3438if (Conversions.HasIdentityConversion(type1, type2))
3611if (Conversions.HasIdentityConversion(type1Element, type2Element))
3673Debug.Assert(!Conversions.HasIdentityConversion(r1, r2));
3693if (Conversions.HasIdentityConversion(r1, r2))
3747if (!Conversions.HasIdentityConversion(param1.Type, param2.Type))
4517if (forExtensionMethodThisArg && !conversion.IsDynamic && !Conversions.IsValidExtensionMethodThisArgConversion(conversion))
4649if ((object)argType != null && Conversions.HasIdentityConversion(argType, parameterType))
FlowAnalysis\NullableWalker.cs (12)
175private readonly Conversions _conversions;
456Conversions conversions,
471_conversions = (Conversions)conversions.WithNullability(true);
1445var conversions = binder.Conversions;
1745Conversions conversions,
1785Conversions conversions,
2070var conversionsWithoutNullability = this.compilation.Conversions;
2677var conversionsWithoutNullability = _conversions.WithNullability(false);
2783var conversionsWithoutNullability = _conversions.WithNullability(false);
4768Conversions conversions,
4805Conversions conversionsWithoutNullability = walker._conversions.WithNullability(false);
8162private Conversion GenerateConversion(Conversions conversions, BoundExpression? sourceExpression, TypeSymbol? sourceType, TypeSymbol destinationType, bool fromExplicitCast, bool extensionMethodThisArgument, bool isChecked)