25 references to IsNullableType
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
2664Debug.Assert(targetTypeWithAnnotations.HasType && targetTypeWithAnnotations.IsNullableType());
Binder\Binder_Symbols.cs (1)
550else if (constructedType.IsNullableType())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1628if (source.IsNullableType() && target.IsNullableType())
Errors\LazyUseSiteDiagnosticsInfoForNullableType.cs (1)
33if (_possiblyNullableTypeSymbol.IsNullableType())
FlowAnalysis\NullableWalker.cs (4)
2482targetType.IsNullableType()) 2567fieldOrPropertyType.IsNullableType()) 7938if (conversionOperand is BoundObjectCreationExpressionBase && targetTypeWithNullability.IsNullableType()) 8492if (operandType.Type.IsNullableType() && !parameterType.IsNullableType())
Symbols\ConstraintsHelper.cs (2)
210if (constraintType.IsNullableType()) 1090else if (typeArgument.IsNullableType())
Symbols\TypeWithAnnotations.cs (1)
298(!HasType || (!IsNullableType() && !Type.IsValueType)))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NullableReferenceTypesTests.cs (13)
11690Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11691Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11692Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11693Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11694Assert.True(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11919Assert.True(((NamedTypeSymbol)m1.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11920Assert.True(((NamedTypeSymbol)m1.OverriddenMethod.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13957Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13958Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13959Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13960Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13961Assert.False(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13962Assert.False(((NamedTypeSymbol)m5.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType());