16 references to IsNonNullableValueType
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (3)
2619
if (!indexType.
IsNonNullableValueType
())
2699
if (!rangeType.
IsNonNullableValueType
())
2726
if (!indexType.
IsNonNullableValueType
())
Binder\Binder_Patterns.cs (1)
611
if (inputType.
IsNonNullableValueType
() && !inputType.IsPointerOrFunctionPointer())
FlowAnalysis\AbstractFlowPass.cs (2)
2663
&& conv.Operand.Type!.
IsNonNullableValueType
());
3046
return param.Type.
IsNonNullableValueType
();
FlowAnalysis\NullableWalker.cs (4)
5449
if (isLifted && targetTypeWithNullability.Type.
IsNonNullableValueType
())
9415
if (targetType.
IsNonNullableValueType
())
10011
bool typeNeedsLifting = returnType.Type.
IsNonNullableValueType
();
11291
parameterOpt?.Type.
IsNonNullableValueType
() == true && parameterType.IsNullableType() ? parameterOpt.Type : parameterType, // Compensate for operator lifting
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
706
var resultType = (isLifted && method.ReturnType.
IsNonNullableValueType
() && node.Type.IsNullableType()) ?
Symbols\ConstraintsHelper.cs (3)
1016
if (managedKind == ManagedKind.Managed || !typeArgument.Type.
IsNonNullableValueType
())
1042
if (typeParameter.HasValueTypeConstraint && !typeArgument.Type.
IsNonNullableValueType
())
1151
if (typeParameter.HasNotNullConstraint && typeArgument.GetValueNullableAnnotation().IsAnnotated() && !typeArgument.Type.
IsNonNullableValueType
())
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
668
if (!typeParameter.
IsNonNullableValueType
())
Symbols\TypeParameterSymbol.cs (1)
472
if (constraintType.Type.
IsNonNullableValueType
())