25 references to IsNullableType
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
2929Debug.Assert(targetTypeWithAnnotations.HasType && targetTypeWithAnnotations.IsNullableType());
Binder\Binder_Symbols.cs (1)
560else if (constructedType.IsNullableType())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1805if (source.IsNullableType() && target.IsNullableType())
Errors\LazyUseSiteDiagnosticsInfoForNullableType.cs (1)
33if (_possiblyNullableTypeSymbol.IsNullableType())
FlowAnalysis\NullableWalker.cs (4)
2653targetType.IsNullableType()) 2741fieldOrPropertyType.IsNullableType()) 9305if (conversionOperand is BoundObjectCreationExpressionBase && targetTypeWithNullability.IsNullableType()) 9893if (operandType.Type.IsNullableType() && !parameterType.IsNullableType())
Symbols\ConstraintsHelper.cs (2)
239if (constraintType.IsNullableType()) 1195else if (typeArgument.IsNullableType())
Symbols\TypeWithAnnotations.cs (1)
309(!HasType || (!IsNullableType() && !Type.IsValueType)))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NullableReferenceTypesTests.cs (13)
11702Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11703Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11704Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11705Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11706Assert.True(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11931Assert.True(((NamedTypeSymbol)m1.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11932Assert.True(((NamedTypeSymbol)m1.OverriddenMethod.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13969Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13970Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13971Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13972Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13973Assert.False(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13974Assert.False(((NamedTypeSymbol)m5.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType());