15 references to IsTypeParameterDisallowingAnnotationInCSharp8
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Symbols.cs (1)
611
if (type.Type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
FlowAnalysis\NullableWalker.cs (6)
2210
if (type.Type.
IsTypeParameterDisallowingAnnotationInCSharp8
() && !(type.Type is TypeParameterSymbol { IsNotNullable: true }))
8246
resultState = targetType?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == true ? NullableFlowState.MaybeDefault : NullableFlowState.MaybeNull;
8259
if (targetType.Type?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == true)
8262
if (type is null || !type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
8275
if (targetType.Type?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == false)
8293
if (type is null || !type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
97
(type as Symbols.PublicModel.TypeSymbol)?.UnderlyingTypeSymbol.
IsTypeParameterDisallowingAnnotationInCSharp8
() != true)
Symbols\ConstraintsHelper.cs (1)
1135
return type.
IsTypeParameterDisallowingAnnotationInCSharp8
() ? NullableFlowState.MaybeDefault : NullableFlowState.MaybeNull;
Symbols\TypeWithAnnotations.cs (3)
304
(!HasType || (!Type.IsValueType && !Type.
IsTypeParameterDisallowingAnnotationInCSharp8
())))
485
if (!typeSymbol.
IsTypeParameterDisallowingAnnotationInCSharp8
())
794
if (type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
Symbols\TypeWithState.cs (3)
31
(type is null || type.
IsTypeParameterDisallowingAnnotationInCSharp8
()))
72
Debug.Assert(state != NullableFlowState.MaybeDefault || type is null || type.
IsTypeParameterDisallowingAnnotationInCSharp8
());
87
if (Type?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == true)