13 references to IsValidNullableTypeArgument
Microsoft.CodeAnalysis.CSharp (13)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (4)
322
if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
() && target.CanBeAssignedNull())
325
TypeSymbol nullableTo = convertsTo.
IsValidNullableTypeArgument
() ? MakeNullableType(convertsTo) : convertsTo;
350
if (target.IsNullableType() && convertsTo.
IsValidNullableTypeArgument
())
356
if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
())
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
321
if ((object)target != null && target.IsNullableType() && convertsTo.
IsValidNullableTypeArgument
())
330
else if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
() &&
349
TypeSymbol nullableTo = convertsTo.
IsValidNullableTypeArgument
() ? MakeNullableType(convertsTo) : convertsTo;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
1033
if (!left.
IsValidNullableTypeArgument
() ||
1034
!right.
IsValidNullableTypeArgument
())
1055
return result.
IsValidNullableTypeArgument
() ?
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
560
if (operandType.
IsValidNullableTypeArgument
() &&
561
resultType.
IsValidNullableTypeArgument
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1381
if (call.Method.ReturnType.
IsValidNullableTypeArgument
())