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