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