25 references to IsNullableType
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
2952Debug.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)
2671targetType.IsNullableType()) 2759fieldOrPropertyType.IsNullableType()) 9444if (conversionOperand is BoundObjectCreationExpressionBase && targetTypeWithNullability.IsNullableType()) 10032if (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)
11699Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11700Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11701Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11702Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11703Assert.True(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11928Assert.True(((NamedTypeSymbol)m1.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 11929Assert.True(((NamedTypeSymbol)m1.OverriddenMethod.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13966Assert.True(((NamedTypeSymbol)m3.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13967Assert.True(((NamedTypeSymbol)m3.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13968Assert.True(((NamedTypeSymbol)m4.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13969Assert.True(((NamedTypeSymbol)m4.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13970Assert.False(((NamedTypeSymbol)m5.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType()); 13971Assert.False(((NamedTypeSymbol)m5.OverriddenMethod.Parameters[0].Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].IsNullableType());