20 references to IsNonNullableValueType
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (3)
2633
if (!indexType.
IsNonNullableValueType
())
2713
if (!rangeType.
IsNonNullableValueType
())
2740
if (!indexType.
IsNonNullableValueType
())
Binder\Binder_Patterns.cs (1)
622
if (inputType.
IsNonNullableValueType
() && !inputType.IsPointerOrFunctionPointer())
FlowAnalysis\AbstractFlowPass.cs (2)
2665
&& conv.Operand.Type!.
IsNonNullableValueType
());
3048
return param.Type.
IsNonNullableValueType
();
FlowAnalysis\NullableWalker.cs (4)
5507
if (isLifted && targetTypeWithNullability.Type.
IsNonNullableValueType
())
9557
if (targetType.
IsNonNullableValueType
())
10161
bool typeNeedsLifting = returnType.Type.
IsNonNullableValueType
();
11437
parameterOpt?.Type.
IsNonNullableValueType
() == true && parameterType.IsNullableType() ? parameterOpt.Type : parameterType, // Compensate for operator lifting
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
707
var resultType = (isLifted && method.ReturnType.
IsNonNullableValueType
() && node.Type.IsNullableType()) ?
Symbols\ConstraintsHelper.cs (3)
1014
if (managedKind == ManagedKind.Managed || !typeArgument.Type.
IsNonNullableValueType
())
1040
if (typeParameter.HasValueTypeConstraint && !typeArgument.Type.
IsNonNullableValueType
())
1149
if (typeParameter.HasNotNullConstraint && typeArgument.GetValueNullableAnnotation().IsAnnotated() && !typeArgument.Type.
IsNonNullableValueType
())
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
688
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
());