15 references to IsNullableTypeOrTypeParameter
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1884(type.IsPossiblyNullableReferenceTypeTypeParameter() || type.IsNullableTypeOrTypeParameter());
FlowAnalysis\NullableWalker.cs (2)
7473return (type.Kind == SymbolKind.TypeParameter && !type.IsReferenceType) || type.IsNullableTypeOrTypeParameter(); 11822if (isValueType && (!checkNullableValueType || !type.IsNullableTypeOrTypeParameter() || type.GetNullableUnderlyingType().IsErrorType()))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2079exprType.IsNullableTypeOrTypeParameter() ||
Lowering\SyntheticBoundNodeFactory.cs (1)
1751exprType.IsNullableTypeOrTypeParameter() ||
Symbols\ConstraintsHelper.cs (1)
1208return type.IsNullableTypeOrTypeParameter() ? NullableFlowState.MaybeNull : NullableFlowState.NotNull;
Symbols\TypeSymbolExtensions.cs (4)
46return !type.IsValueType || type.IsNullableTypeOrTypeParameter(); 102return !IsNullableTypeOrTypeParameter(typeArgument); 122if (constraintType.Type.IsNullableTypeOrTypeParameter()) 137/// 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);