20 references to IsNonNullableValueType
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (3)
2621
if (!indexType.
IsNonNullableValueType
())
2701
if (!rangeType.
IsNonNullableValueType
())
2728
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)
5456
if (isLifted && targetTypeWithNullability.Type.
IsNonNullableValueType
())
9418
if (targetType.
IsNonNullableValueType
())
10022
bool typeNeedsLifting = returnType.Type.
IsNonNullableValueType
();
11302
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
())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\TypeTests.cs (4)
1512
Assert.True(underType.
IsNonNullableValueType
());
1539
Assert.True(underType.
IsNonNullableValueType
());
1569
Assert.True(underType.
IsNonNullableValueType
());
1636
Assert.True(underType.
IsNonNullableValueType
());