15 references to IsNullableTypeOrTypeParameter
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1882(type.IsPossiblyNullableReferenceTypeTypeParameter() || type.IsNullableTypeOrTypeParameter());
FlowAnalysis\NullableWalker.cs (2)
7780return (type.Kind == SymbolKind.TypeParameter && !type.IsReferenceType) || type.IsNullableTypeOrTypeParameter(); 12260if (isValueType && (!checkNullableValueType || !type.IsNullableTypeOrTypeParameter() || type.GetNullableUnderlyingType().IsErrorType()))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2097exprType.IsNullableTypeOrTypeParameter() ||
Lowering\SyntheticBoundNodeFactory.cs (1)
1787exprType.IsNullableTypeOrTypeParameter() ||
Symbols\ConstraintsHelper.cs (1)
1237return type.IsNullableTypeOrTypeParameter() ? NullableFlowState.MaybeNull : NullableFlowState.NotNull;
Symbols\TypeSymbolExtensions.cs (4)
47return !type.IsValueType || type.IsNullableTypeOrTypeParameter(); 103return !IsNullableTypeOrTypeParameter(typeArgument); 123if (constraintType.Type.IsNullableTypeOrTypeParameter()) 138/// use <see cref="TypeSymbolExtensions.IsNullableTypeOrTypeParameter" /> instead.
Symbols\TypeWithAnnotations.cs (4)
141if (Type.IsNullableTypeOrTypeParameter()) 160return Type.IsNullableTypeOrTypeParameter(); 262/// use <see cref="TypeSymbolExtensions.IsNullableTypeOrTypeParameter" /> instead. 827if (type.IsNullableTypeOrTypeParameter())
Symbols\TypeWithState.cs (1)
33Debug.Assert(type?.IsNullableTypeOrTypeParameter() != true);