30 references to IsNullableType
Microsoft.CodeAnalysis (27)
Operations\ControlFlowGraphBuilder.cs (24)
2509
(ITypeSymbolHelpers.
IsNullableType
(left.Type) || !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))))
2595
if (ITypeSymbolHelpers.
IsNullableType
(left.Type))
2597
if (unaryOperatorMethod == null ? isLifted : !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))
2603
Debug.Assert(unaryOperatorMethod == null || !ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type));
2607
else if (unaryOperatorMethod != null && ITypeSymbolHelpers.
IsNullableType
(unaryOperatorMethod.Parameters[0].Type))
3017
if (ITypeSymbolHelpers.
IsNullableType
(valueTypeOpt) &&
3018
(!testConversion.IsIdentity || !ITypeSymbolHelpers.
IsNullableType
(operation.Type)))
3342
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(valueType));
3365
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(value.Type));
3440
if (ITypeSymbolHelpers.
IsNullableType
(operation.Type) && !ITypeSymbolHelpers.
IsNullableType
(currentConditionalAccess.WhenNotNull.Type))
3468
(operation.Type.IsReferenceType && !ITypeSymbolHelpers.
IsNullableType
(operation.Type))
3556
if (ITypeSymbolHelpers.
IsNullableType
(testExpressionType))
4158
else if (ITypeSymbolHelpers.
IsNullableType
(resource.Type))
4180
((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !ITypeSymbolHelpers.
IsNullableType
(value.Type))) && disposeArguments.IsDefaultOrEmpty));
4217
return type?.IsValueType == true && !ITypeSymbolHelpers.
IsNullableType
(type);
4931
if (ITypeSymbolHelpers.
IsNullableType
(stepValue.Type))
5160
if (ITypeSymbolHelpers.
IsNullableType
(operation.LimitValue.Type))
5331
bool isNullable = ITypeSymbolHelpers.
IsNullableType
(operation.StepValue.Type);
5391
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(controlVariableReferenceForIncrement.Type));
5564
bool leftIsNullable = ITypeSymbolHelpers.
IsNullableType
(operation.Value.Type);
5565
bool rightIsNullable = ITypeSymbolHelpers.
IsNullableType
(compareWith.Type);
5675
Debug.Assert(ITypeSymbolHelpers.
IsNullableType
(type));
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
137
if (ITypeSymbolHelpers.
IsNullableType
(type))
Symbols\ITypeSymbol.cs (2)
227
return
IsNullableType
(type) && IsBooleanType(GetNullableUnderlyingType(type));
232
Debug.Assert(
IsNullableType
(type));
Microsoft.CodeAnalysis.CSharp (3)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
83
!ITypeSymbolHelpers.
IsNullableType
(type) && !type.IsValueType)
227
if (ITypeSymbolHelpers.
IsNullableType
(symbol) && !symbol.IsDefinition)
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
18
else if (type.IsReferenceType || type.TypeKind == TypeKind.Pointer || ITypeSymbolHelpers.
IsNullableType
(type))