15 references to IsNullableTypeOrTypeParameter
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1884
(type.IsPossiblyNullableReferenceTypeTypeParameter() || type.
IsNullableTypeOrTypeParameter
());
FlowAnalysis\NullableWalker.cs (2)
7473
return (type.Kind == SymbolKind.TypeParameter && !type.IsReferenceType) || type.
IsNullableTypeOrTypeParameter
();
11822
if (isValueType && (!checkNullableValueType || !type.
IsNullableTypeOrTypeParameter
() || type.GetNullableUnderlyingType().IsErrorType()))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2079
exprType.
IsNullableTypeOrTypeParameter
() ||
Lowering\SyntheticBoundNodeFactory.cs (1)
1751
exprType.
IsNullableTypeOrTypeParameter
() ||
Symbols\ConstraintsHelper.cs (1)
1208
return type.
IsNullableTypeOrTypeParameter
() ? NullableFlowState.MaybeNull : NullableFlowState.NotNull;
Symbols\TypeSymbolExtensions.cs (4)
46
return !type.IsValueType || type.
IsNullableTypeOrTypeParameter
();
102
return !
IsNullableTypeOrTypeParameter
(typeArgument);
122
if (constraintType.Type.
IsNullableTypeOrTypeParameter
())
137
/// use <see cref="TypeSymbolExtensions.
IsNullableTypeOrTypeParameter
" /> instead.
Symbols\TypeWithAnnotations.cs (4)
141
if (Type.
IsNullableTypeOrTypeParameter
())
160
return Type.
IsNullableTypeOrTypeParameter
();
262
/// use <see cref="TypeSymbolExtensions.
IsNullableTypeOrTypeParameter
" /> instead.
827
if (type.
IsNullableTypeOrTypeParameter
())
Symbols\TypeWithState.cs (1)
33
Debug.Assert(type?.
IsNullableTypeOrTypeParameter
() != true);