15 references to IsNullableTypeOrTypeParameter
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1742(type.IsPossiblyNullableReferenceTypeTypeParameter() || type.IsNullableTypeOrTypeParameter());
FlowAnalysis\NullableWalker.cs (2)
6679return (type.Kind == SymbolKind.TypeParameter && !type.IsReferenceType) || type.IsNullableTypeOrTypeParameter(); 10906if (isValueType && (!checkNullableValueType || !type.IsNullableTypeOrTypeParameter() || type.GetNullableUnderlyingType().IsErrorType()))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1999exprType.IsNullableTypeOrTypeParameter() ||
Lowering\SyntheticBoundNodeFactory.cs (1)
1627exprType.IsNullableTypeOrTypeParameter() ||
Symbols\ConstraintsHelper.cs (1)
1130return type.IsNullableTypeOrTypeParameter() ? NullableFlowState.MaybeNull : NullableFlowState.NotNull;
Symbols\TypeSymbolExtensions.cs (4)
38return !type.IsValueType || type.IsNullableTypeOrTypeParameter(); 94return !IsNullableTypeOrTypeParameter(typeArgument); 114if (constraintType.Type.IsNullableTypeOrTypeParameter()) 129/// use <see cref="TypeSymbolExtensions.IsNullableTypeOrTypeParameter" /> instead.
Symbols\TypeWithAnnotations.cs (4)
138if (Type.IsNullableTypeOrTypeParameter()) 157return Type.IsNullableTypeOrTypeParameter(); 253/// use <see cref="TypeSymbolExtensions.IsNullableTypeOrTypeParameter" /> instead. 798if (type.IsNullableTypeOrTypeParameter())
Symbols\TypeWithState.cs (1)
33Debug.Assert(type?.IsNullableTypeOrTypeParameter() != true);