271 references to IsNullableType
Microsoft.CodeAnalysis.CSharp (183)
Binder\Binder_Conversions.cs (3)
589
if (conversionToType.
IsNullableType
() && TypeSymbol.Equals(conversionToType.GetNullableUnderlyingType(), conversionReturnType, TypeCompareKind.ConsiderEverything2))
897
Debug.Assert(conversion.IsNullable == destination.
IsNullableType
());
1617
if (destination.
IsNullableType
())
Binder\Binder_Expressions.cs (12)
2330
if (targetType.
IsNullableType
() &&
2333
!operand.Type.
IsNullableType
() &&
2355
if ((object)boundOperand.Type != null && boundOperand.Type.
IsNullableType
())
2434
if (left?.Type.
IsNullableType
() == true || right?.Type.
IsNullableType
() == true)
2462
if (boundOperand.Type?.
IsNullableType
() == true)
2535
if (!targetType.IsReferenceType && !targetType.
IsNullableType
() && operand.IsLiteralNull())
2665
Debug.Assert((object)operand.Type != null && !operand.Type.
IsNullableType
());
4435
if (typeWithAnnotations.NullableAnnotation.IsAnnotated() && !type.
IsNullableType
())
9418
if (accessType.IsValueType && !accessType.
IsNullableType
() && !accessType.IsVoidType())
9489
if (receiverType?.
IsNullableType
() == true)
9535
if (receiverType.IsValueType && !receiverType.
IsNullableType
())
Binder\Binder_Operators.cs (9)
701
(leftNull && (object)rightType != null && rightType.
IsNullableType
() ||
702
rightNull && (object)leftType != null && leftType.
IsNullableType
());
3533
if (targetType.
IsNullableType
())
3538
Debug.Assert(operandType.
IsNullableType
());
3595
Debug.Assert(targetType.
IsNullableType
());
3668
else if (!targetType.IsReferenceType && !targetType.
IsNullableType
())
3934
bool isLeftNullable = (object)optLeftType != null && optLeftType.
IsNullableType
();
4112
if (leftType.IsValueType && !leftType.
IsNullableType
())
4122
if (leftType.
IsNullableType
())
Binder\Binder_Patterns.cs (2)
681
if (inputType.
IsNullableType
() && (convertedExpression.ConstantValueOpt == null || !convertedExpression.ConstantValueOpt.IsNull))
731
else if (patternType.
IsNullableType
())
Binder\Binder_TupleOperators.cs (2)
247
bool leftNullable = left.Type?.
IsNullableType
() == true;
248
bool rightNullable = right.Type?.
IsNullableType
() == true;
Binder\ForEachLoopBinder.cs (2)
522
(builder.ElementType.
IsNullableType
() && builder.ElementType.GetMemberTypeArgumentsNoUseSiteDiagnostics().Single().IsErrorType() && collectionExpr.Type.IsArray()));
651
if ((object)collectionExprType != null && collectionExprType.
IsNullableType
())
Binder\PatternExplainer.cs (1)
357
input.Type.
IsNullableType
() && input.Type.GetNullableUnderlyingType().Equals(evaluationType, TypeCompareKind.AllIgnoreOptions))
Binder\Semantics\Conversions\Conversions.cs (2)
244
else if (method.ContainingType.
IsNullableType
() && !method.IsOverride)
364
if (method.ContainingType.
IsNullableType
() && !method.IsOverride)
Binder\Semantics\Conversions\ConversionsBase.cs (9)
1160
if (destination.
IsNullableType
())
1378
destination.
IsNullableType
() && destination.GetNullableUnderlyingType().IsEnumType();
2100
if (!destination.
IsNullableType
())
2297
if (!source.
IsNullableType
() && !destination.
IsNullableType
())
3096
if (source.
IsNullableType
())
3597
if (destination.IsValueType && !destination.
IsNullableType
())
3607
!destination.
IsNullableType
() &&
3623
destination.
IsNullableType
() &&
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (5)
270
source.
IsNullableType
() &&
279
target.
IsNullableType
() &&
312
if ((object)source != null && source.
IsNullableType
() && convertsFrom.IsValidNullableTypeArgument() && target.CanBeAssignedNull())
340
if (target.
IsNullableType
() && convertsTo.IsValidNullableTypeArgument())
346
if ((object)source != null && source.
IsNullableType
() && convertsFrom.IsValidNullableTypeArgument())
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (2)
313
if ((object)target != null && target.
IsNullableType
() && convertsTo.IsValidNullableTypeArgument())
322
else if ((object)source != null && source.
IsNullableType
() && convertsFrom.IsValidNullableTypeArgument() &&
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3033
if ((object)type != null && type.
IsNullableType
())
3054
if ((object)type != null && type.
IsNullableType
())
BoundTree\BoundNullCoalescingAssignmentOperator.cs (1)
16
if (leftType?.
IsNullableType
() != true)
CodeGen\EmitAddress.cs (1)
44
Debug.Assert(!expression.Type.IsValueType || expression.Type.
IsNullableType
());
CodeGen\EmitConversion.cs (1)
287
Debug.Assert(!conversion.Type.
IsNullableType
());
CodeGen\EmitExpression.cs (4)
53
!expression.Type.
IsNullableType
()))
397
(receiverType.
IsNullableType
() && expression.HasValueMethodOpt != null), "conditional receiver cannot be a struct");
507
Debug.Assert(receiver.Type.
IsNullableType
());
1971
if (methodContainingType.
IsNullableType
())
CodeGen\EmitStatement.cs (1)
1211
Debug.Assert(!dispatch.Expression.Type.
IsNullableType
());
Compilation\CSharpSemanticModel.cs (2)
3847
((binaryOperator.Left.IsLiteralNull() && binaryOperator.Right.Type.
IsNullableType
()) ||
3848
(binaryOperator.Right.IsLiteralNull() && binaryOperator.Left.Type.
IsNullableType
())) &&
FlowAnalysis\AbstractFlowPass.cs (1)
1389
return t.
IsNullableType
();
FlowAnalysis\NullableWalker.cs (16)
3591
else if (type.
IsNullableType
())
4903
if (receiverType.
IsNullableType
())
5379
oldType.
IsNullableType
() && !accessType.
IsNullableType
() ? MakeNullableOf(accessTypeWithAnnotations) :
5396
if (slot > 0 && receiver.Type?.
IsNullableType
() == true)
5670
if (rvalueType?.
IsNullableType
() == true)
5969
type?.
IsNullableType
() == true &&
7535
if (nullableTypeOpt?.
IsNullableType
() == true &&
7536
underlyingTypeOpt?.
IsNullableType
() == false)
8146
if (operandType.Type?.
IsNullableType
() == true && !targetType.
IsNullableType
())
8243
else if (fromExplicitCast && targetTypeWithNullability.NullableAnnotation.IsAnnotated() && !targetType.
IsNullableType
())
8492
if (operandType.Type.
IsNullableType
() && !parameterType.IsNullableType())
8630
if (type?.
IsNullableType
() == true)
9761
parameterOpt?.Type.IsNonNullableValueType() == true && parameterType.
IsNullableType
() ? parameterOpt.Type : parameterType, // Compensate for operator lifting
9944
Debug.Assert(containingType.
IsNullableType
());
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
538
var promotedType = e.
IsNullableType
() ? _nullableType.Construct(PromotedType(e.GetNullableUnderlyingType())) : PromotedType(e);
636
var resultType = (isLifted && method.ReturnType.IsNonNullableValueType() && node.Type.
IsNullableType
()) ?
651
if (node.Operand.Type.
IsNullableType
())
Lowering\DiagnosticsPass_Warnings.cs (3)
620
if (from.
IsNullableType
())
625
if (to.
IsNullableType
())
858
if ((object)node.Type == null || !node.Type.
IsNullableType
())
Lowering\Extensions.cs (3)
45
if (!expr.Type.
IsNullableType
())
85
if ((object)expr.Type == null || !expr.Type.
IsNullableType
())
132
if (expr.Type.
IsNullableType
() && expr.Type.GetNullableUnderlyingType().SpecialType != SpecialType.System_Boolean)
Lowering\LocalRewriter\LocalRewriter.cs (1)
229
if (type?.
IsNullableType
() != true)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (4)
344
return MakeNullCheck(d.Syntax, input, input.Type.
IsNullableType
() ? BinaryOperatorKind.NullableNullNotEqual : BinaryOperatorKind.NotEqual);
351
return MakeNullCheck(d.Syntax, input, input.Type.
IsNullableType
() ? BinaryOperatorKind.NullableNullEqual : BinaryOperatorKind.Equal);
354
Debug.Assert(!input.Type.
IsNullableType
());
358
Debug.Assert(!input.Type.
IsNullableType
());
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (2)
45
Debug.Assert(!rewrittenType.IsValueType || rewrittenType.
IsNullableType
());
61
BoundExpression result = rewrittenType.
IsNullableType
() ? new BoundDefaultExpression(syntax, rewrittenType) : MakeLiteral(syntax, constantValue, rewrittenType);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
881
if (expression.Type.
IsNullableType
())
900
if (expression.Type.
IsNullableType
())
2026
else if (exprType.
IsNullableType
())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
890
if (expression.Type.
IsNullableType
())
904
if (method.ContainingType?.
IsNullableType
() == true)
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (3)
133
if (!TypeSymbol.Equals(accessExpressionType, nodeType, TypeCompareKind.ConsiderEverything2) && nodeType.
IsNullableType
())
154
receiverType.
IsNullableType
() ?
210
if (newtarget.Type.
IsNullableType
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (23)
50
if (node.Type.
IsNullableType
())
452
if (rewrittenType.
IsNullableType
())
481
if (!rewrittenType.
IsNullableType
() &&
756
if (rewrittenOperand.Type.
IsNullableType
() &&
758
!userDefinedConversionRewrittenType.
IsNullableType
() &&
854
if (!expression.Type.
IsNullableType
())
871
when underlying.Length == 1 && underlying[0].Kind == ConversionKind.ImplicitTuple && !convertedArgument.Type!.
IsNullableType
():
908
Debug.Assert(rewrittenType.
IsNullableType
() || rewrittenOperandType.
IsNullableType
());
910
if (rewrittenOperandType.
IsNullableType
() && rewrittenType.
IsNullableType
())
914
else if (rewrittenType.
IsNullableType
())
958
Debug.Assert(rewrittenType.
IsNullableType
() || rewrittenOperandType.
IsNullableType
());
976
rewrittenOperandType = rewrittenOperandType.
IsNullableType
() ? ((NamedTypeSymbol)rewrittenOperandType.OriginalDefinition).Construct(typeFromUnderlying) : typeFromUnderlying;
1199
if (rewrittenOperand.Type.
IsNullableType
())
1203
!parameterType.
IsNullableType
() &&
1231
Debug.Assert(resultType.
IsNullableType
() && TypeSymbol.Equals(resultType.GetNullableUnderlyingType(), call.Method.ReturnType, TypeCompareKind.ConsiderEverything2));
1261
Debug.Assert(rewrittenOperand.Type.
IsNullableType
());
1352
if (source.
IsNullableType
() && target.
IsNullableType
())
1354
Debug.Assert(target.
IsNullableType
());
1357
else if (source.
IsNullableType
())
Lowering\LocalRewriter\LocalRewriter_Index.cs (2)
29
if (!node.Type.
IsNullableType
())
71
Debug.Assert(targetNullableType.
IsNullableType
());
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
62
Debug.Assert(node.LeftOperand.Type.
IsNullableType
());
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (5)
112
if (whenNullOpt.Type.
IsNullableType
())
136
if (rewrittenLeft.Type.
IsNullableType
()
234
Debug.Assert(rewrittenLeftType.
IsNullableType
() || !rewrittenLeftType.IsValueType);
241
var conversionTakesNullableType = leftPlaceholder?.Type?.
IsNullableType
() == true;
244
&& rewrittenLeftType.
IsNullableType
()
Lowering\LocalRewriter\LocalRewriter_Range.cs (6)
44
if (node.Type.
IsNullableType
())
67
if (operand.Type.
IsNullableType
())
79
Debug.Assert(node.Type.
IsNullableType
());
80
Debug.Assert(left?.Type?.
IsNullableType
() == true || right?.Type?.
IsNullableType
() == true);
133
if (tempOperand.Type.
IsNullableType
())
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (8)
90
expr.Type is { } exprType && exprType.
IsNullableType
() && exprType.StrippedType().Equals(o.Type, TypeCompareKind.AllIgnoreOptions):
205
case BoundObjectCreationExpression { Arguments: { Length: 0 }, Type: { } eType } _ when eType.
IsNullableType
():
207
case BoundObjectCreationExpression { Arguments: { Length: 1 }, Type: { } eType } creation when eType.
IsNullableType
():
356
isNullable = !(expr is BoundTupleExpression) && expr.Type is { } && expr.Type.
IsNullableType
();
404
when expr.Type.
IsNullableType
() && o.Type is { } && o.Type.
IsNullableType
() && !underlying[0].IsUserDefined:
438
expr.Type is { } exprType && exprType.
IsNullableType
() && o.Type is { } && o.Type.
IsNullableType
() && nested[0] is { IsTupleConversion: true } tupleConversion:
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
774
else if (unaryOperandType.
IsNullableType
() && unaryOperandType.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal)
816
Debug.Assert(operand.Type is { } && operand.Type.
IsNullableType
() && operand.Type.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal);
1003
if (underlyingType.
IsNullableType
())
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
358
bool isNullableValueType = local.Type.
IsNullableType
();
Lowering\SyntheticBoundNodeFactory.cs (2)
1384
arg.Type.
IsNullableType
() &&
1654
else if (exprType.
IsNullableType
())
Operations\CSharpOperationFactory.cs (2)
2672
isLifted: boundIndex.Type.
IsNullableType
(),
2689
isLifted: boundRange.Type.
IsNullableType
(),
Symbols\ConstraintsHelper.cs (2)
448
else if (deducedBase.
IsNullableType
() && (typeParameter.HasValueTypeConstraint || typeParameter.HasReferenceTypeConstraint))
1264
conversions.HasBoxingConversion(typeArgument.Type.
IsNullableType
() ? ((NamedTypeSymbol)typeArgument.Type).ConstructedFrom : typeArgument.Type,
Symbols\PublicModel\TypeSymbol.cs (1)
70
!(UnderlyingTypeSymbol.IsValueType && !UnderlyingTypeSymbol.
IsNullableType
()))
Symbols\Source\ParameterHelpers.cs (2)
777
else if (((conversion.IsNullable && !defaultExpression.Type.
IsNullableType
()) ||
778
(conversion.IsObjectCreation && convertedExpression.Type.
IsNullableType
())) &&
Symbols\Source\SourceComplexParameterSymbol.cs (1)
396
if (parameterType.Type.
IsNullableType
())
Symbols\TypeSymbolExtensions.cs (7)
32
return type.IsReferenceType || type.IsPointerOrFunctionPointer() || type.
IsNullableType
();
122
return type.
IsNullableType
();
139
&& !type.
IsNullableType
()
152
RoslynDebug.Assert(
IsNullableType
(type));
160
return type.
IsNullableType
() ? type.GetNullableUnderlyingType() : type;
1244
if (type.
IsNullableType
())
2131
if ((object)type != null && type.
IsNullableType
())
Symbols\TypeWithAnnotations.cs (15)
52
Debug.Assert(defaultType?.
IsNullableType
() != true || nullableAnnotation == NullableAnnotation.Annotated);
94
if (typeSymbol?.
IsNullableType
() == true)
107
if (NullableAnnotation.IsAnnotated() || (Type.IsValueType && Type.
IsNullableType
()))
117
if (NullableAnnotation.IsNotAnnotated() || (Type.IsValueType && !Type.
IsNullableType
()))
255
public bool IsNullableType() => Type.
IsNullableType
();
367
bool isValueType = type.IsValueType && !type.
IsNullableType
();
439
Debug.Assert(newTypeWithModifiers.NullableAnnotation.IsOblivious() || (typeSymbol.
IsNullableType
() && newTypeWithModifiers.NullableAnnotation.IsAnnotated()));
448
else if ((NullableAnnotation.IsOblivious() || (typeSymbol.
IsNullableType
() && NullableAnnotation.IsAnnotated())) &&
587
return type.
IsNullableType
();
682
!(result.NullableAnnotation.IsAnnotated() && oldTypeSymbol.
IsNullableType
())) // Preserve nullable annotation on Nullable<T>.
699
if (NullableAnnotation.IsNotAnnotated() || (typeSymbol.IsValueType && !typeSymbol.
IsNullableType
()))
899
return CreateNonLazyType(defaultType, defaultType.
IsNullableType
() ? type.NullableAnnotation : NullableAnnotation.NotAnnotated, _customModifiers);
969
Debug.Assert(resolvedType.
IsNullableType
() && CustomModifiers.IsEmpty);
985
if (resolvedType.
IsNullableType
())
995
if (typeSymbol.
IsNullableType
())
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
1571
return type.
IsNullableType
() && isNativeInt(type.GetNullableUnderlyingType(), signed);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (84)
Semantics\InheritanceBindingTests.cs (22)
8443
Assert.True(c2Goo.Parameters[0].Type.
IsNullableType
());
8470
Assert.True(((ArrayTypeSymbol)c2Goo.Parameters[0].Type).ElementType.
IsNullableType
());
8497
Assert.True(c2Goo.Parameters[0].Type.
IsNullableType
());
8499
Assert.False(tuple.TupleElements[0].Type.
IsNullableType
());
8500
Assert.True(tuple.TupleElements[1].Type.
IsNullableType
());
8527
Assert.True(c2Goo.ReturnType.
IsNullableType
());
8554
Assert.True(((ArrayTypeSymbol)c2Goo.ReturnType).ElementType.
IsNullableType
());
8581
Assert.True(c2Goo.ReturnType.
IsNullableType
());
8583
Assert.False(tuple.TupleElements[0].Type.
IsNullableType
());
8584
Assert.True(tuple.TupleElements[1].Type.
IsNullableType
());
8606
Assert.True(dGoo.Parameters[0].Type.
IsNullableType
());
8628
Assert.True(((ArrayTypeSymbol)dGoo.Parameters[0].Type).ElementType.
IsNullableType
());
8650
Assert.True(dGoo.Parameters[0].Type.
IsNullableType
());
8652
Assert.False(tuple.TupleElements[0].Type.
IsNullableType
());
8653
Assert.True(tuple.TupleElements[1].Type.
IsNullableType
());
8675
Assert.True(dGoo.ReturnType.
IsNullableType
());
8697
Assert.True(((ArrayTypeSymbol)dGoo.ReturnType).ElementType.
IsNullableType
());
8719
Assert.True(dGoo.ReturnType.
IsNullableType
());
8721
Assert.False(tuple.TupleElements[0].Type.
IsNullableType
());
8722
Assert.True(tuple.TupleElements[1].Type.
IsNullableType
());
8748
Assert.True(c2Goo.Parameters[0].Type.
IsNullableType
());
8777
Assert.True(dGoo.Parameters[0].Type.
IsNullableType
());
Semantics\NativeIntegerTests.cs (1)
4821
return type.
IsNullableType
() && isNativeInt(type.GetNullableUnderlyingType(), signed);
Semantics\NullableReferenceTypesTests.cs (61)
11443
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11445
Assert.True(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11494
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11499
Assert.True(m2.ReturnType.
IsNullableType
());
11501
Assert.False(m2.OverriddenMethod.ReturnType.
IsNullableType
());
11557
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11558
Assert.True(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11561
Assert.False(m2.Parameters[0].Type.
IsNullableType
());
11562
Assert.False(m2.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11565
Assert.True(m3.Parameters[0].Type.
IsNullableType
());
11566
Assert.True(m3.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11616
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11617
Assert.True(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11621
Assert.True(m2.Parameters[0].Type.
IsNullableType
());
11622
Assert.True(m2.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
11721
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11756
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11840
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
11841
Assert.True(m2.Parameters[0].Type.
IsNullableType
());
11842
Assert.True(m3.Parameters[0].Type.
IsNullableType
());
11843
Assert.True(m4.Parameters[0].Type.
IsNullableType
());
11881
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
12004
Assert.False(m1.ReturnType.
IsNullableType
());
12005
Assert.False(m1.OverriddenMethod.ReturnType.
IsNullableType
());
12008
Assert.False(m4.ReturnType.
IsNullableType
());
12009
Assert.True(m4.OverriddenMethod.ReturnType.
IsNullableType
());
12012
Assert.False(m5.ReturnType.
IsNullableType
());
12087
Assert.False(m1.Parameters[0].Type.
IsNullableType
());
12090
Assert.False(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
12093
Assert.False(m4.Parameters[0].Type.
IsNullableType
());
12097
Assert.False(m5.Parameters[0].Type.
IsNullableType
());
12174
Assert.True(b.GetMember<MethodSymbol>("M1").ReturnType.
IsNullableType
());
12175
Assert.True(b.GetMember<MethodSymbol>("M2").ReturnType.
IsNullableType
());
12176
Assert.False(b.GetMember<MethodSymbol>("M3").ReturnType.
IsNullableType
());
12177
Assert.True(b.GetMember<MethodSymbol>("M4").ReturnType.
IsNullableType
());
12178
Assert.True(b.GetMember<MethodSymbol>("M5").ReturnType.
IsNullableType
());
12246
Assert.True(b.GetMember<MethodSymbol>("M1").Parameters[0].Type.
IsNullableType
());
12247
Assert.True(b.GetMember<MethodSymbol>("M2").Parameters[0].Type.
IsNullableType
());
12248
Assert.False(b.GetMember<MethodSymbol>("M3").Parameters[0].Type.
IsNullableType
());
12249
Assert.True(b.GetMember<MethodSymbol>("M4").Parameters[0].Type.
IsNullableType
());
12250
Assert.True(b.GetMember<MethodSymbol>("M5").Parameters[0].Type.
IsNullableType
());
13886
Assert.False(m1.Parameters[0].Type.
IsNullableType
());
13889
Assert.False(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
13892
Assert.False(m2.ReturnType.
IsNullableType
());
13895
Assert.False(m2.OverriddenMethod.ReturnType.
IsNullableType
());
14217
Assert.False(m1.Parameters[0].Type.
IsNullableType
());
14218
Assert.False(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
14222
Assert.False(m2.Parameters[0].Type.
IsNullableType
());
14223
Assert.False(m2.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
14273
Assert.True(m1.Parameters[0].Type.
IsNullableType
());
14274
Assert.True(m1.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
14278
Assert.True(m2.Parameters[0].Type.
IsNullableType
());
14279
Assert.True(m2.OverriddenMethod.Parameters[0].Type.
IsNullableType
());
17801
Assert.False(tp.
IsNullableType
());
135163
Assert.False(dGoo.Parameters[0].Type.
IsNullableType
());
135247
Assert.True(c2Goo.Parameters[0].Type.
IsNullableType
());
135335
Assert.True(c2Goo.ReturnType.
IsNullableType
());
135408
Assert.True(dGoo.Parameters[0].Type.
IsNullableType
());
135481
Assert.True(dGoo.ReturnType.
IsNullableType
());
135513
Assert.True(dGoo.Parameters[0].Type.
IsNullableType
());
135518
Assert.True(tuple.TupleElements[1].Type.
IsNullableType
());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\TypeTests.cs (3)
1516
Assert.True(memType.
IsNullableType
());
1566
Assert.True(memType.
IsNullableType
());
1629
Assert.True(memType.
IsNullableType
());