14 references to IsTypeParameterDisallowingAnnotationInCSharp8
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Symbols.cs (1)
613
if (type.Type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
FlowAnalysis\NullableWalker.cs (6)
2343
if (type.Type.
IsTypeParameterDisallowingAnnotationInCSharp8
() && !(type.Type is TypeParameterSymbol { IsNotNullable: true }))
9200
resultState = targetType?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == true ? NullableFlowState.MaybeDefault : NullableFlowState.MaybeNull;
9213
if (targetType.Type?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == true)
9216
if (type is null || !type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
9229
if (targetType.Type?.
IsTypeParameterDisallowingAnnotationInCSharp8
() == false)
9247
if (type is null || !type.
IsTypeParameterDisallowingAnnotationInCSharp8
())
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
93
(type as Symbols.PublicModel.TypeSymbol)?.UnderlyingTypeSymbol.
IsTypeParameterDisallowingAnnotationInCSharp8
() != true)
Symbols\ConstraintsHelper.cs (1)
1213
return type.
IsTypeParameterDisallowingAnnotationInCSharp8
() ? NullableFlowState.MaybeDefault : NullableFlowState.MaybeNull;
Symbols\TypeWithAnnotations.cs (2)
315
(!HasType || (!Type.IsValueType && !Type.
IsTypeParameterDisallowingAnnotationInCSharp8
())))
823
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)