27 references to IsNullableType
Microsoft.CodeAnalysis (27)
Operations\ControlFlowGraphBuilder.cs (24)
2499
(ITypeSymbolHelpers.
IsNullableType
(left.Type) || !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))))
2585
if (ITypeSymbolHelpers.
IsNullableType
(left.Type))
2587
if (unaryOperatorMethod == null ? isLifted : !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))
2593
Debug.Assert(unaryOperatorMethod == null || !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type));
2597
else if (unaryOperatorMethod != null && ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))
3007
if (ITypeSymbolHelpers.
IsNullableType
(valueTypeOpt) &&
3008
(!testConversion.IsIdentity || !ITypeSymbolHelpers.
IsNullableType
(operation.Type)))
3332
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(valueType));
3355
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(value.Type));
3430
if (ITypeSymbolHelpers.
IsNullableType
(operation.Type) && !ITypeSymbolHelpers.
IsNullableType
(currentConditionalAccess.WhenNotNull.Type))
3458
(operation.Type.IsReferenceType && !ITypeSymbolHelpers.
IsNullableType
(operation.Type))
3546
if (ITypeSymbolHelpers.
IsNullableType
(testExpressionType))
4147
else if (ITypeSymbolHelpers.
IsNullableType
(resource.Type))
4169
((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !ITypeSymbolHelpers.
IsNullableType
(value.Type))) && disposeArguments.IsDefaultOrEmpty));
4206
return type?.IsValueType == true && !ITypeSymbolHelpers.
IsNullableType
(type);
4920
if (ITypeSymbolHelpers.
IsNullableType
(stepValue.Type))
5149
if (ITypeSymbolHelpers.
IsNullableType
(operation.LimitValue.Type))
5320
bool isNullable = ITypeSymbolHelpers.
IsNullableType
(operation.StepValue.Type);
5380
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(controlVariableReferenceForIncrement.Type));
5553
bool leftIsNullable = ITypeSymbolHelpers.
IsNullableType
(operation.Value.Type);
5554
bool rightIsNullable = ITypeSymbolHelpers.
IsNullableType
(compareWith.Type);
5664
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(type));
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
137
if (ITypeSymbolHelpers.
IsNullableType
(type))
Symbols\ITypeSymbol.cs (2)
210
return
IsNullableType
(type) && IsBooleanType(GetNullableUnderlyingType(type));
215
Debug.Assert(
IsNullableType
(type));