13 references to IsValidNullableTypeArgument
Microsoft.CodeAnalysis.CSharp (13)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (4)
317
if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
() && target.CanBeAssignedNull())
320
TypeSymbol nullableTo = convertsTo.
IsValidNullableTypeArgument
() ? MakeNullableType(convertsTo) : convertsTo;
345
if (target.IsNullableType() && convertsTo.
IsValidNullableTypeArgument
())
351
if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
())
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
318
if ((object)target != null && target.IsNullableType() && convertsTo.
IsValidNullableTypeArgument
())
327
else if ((object)source != null && source.IsNullableType() && convertsFrom.
IsValidNullableTypeArgument
() &&
346
TypeSymbol nullableTo = convertsTo.
IsValidNullableTypeArgument
() ? MakeNullableType(convertsTo) : convertsTo;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
1028
if (!left.
IsValidNullableTypeArgument
() ||
1029
!right.
IsValidNullableTypeArgument
())
1050
return result.
IsValidNullableTypeArgument
() ?
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
555
if (operandType.
IsValidNullableTypeArgument
() &&
556
resultType.
IsValidNullableTypeArgument
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1381
if (call.Method.ReturnType.
IsValidNullableTypeArgument
())