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