11 overrides of HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (11)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
72
public override bool
HasReferenceTypeConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
58
public override bool
HasReferenceTypeConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
455
public override bool
HasReferenceTypeConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
140
public override bool
HasReferenceTypeConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
155
public override bool
HasReferenceTypeConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (2)
517
public override bool
HasReferenceTypeConstraint
629
public abstract override bool
HasReferenceTypeConstraint
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
29
public override bool
HasReferenceTypeConstraint
=> false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
234
public override bool
HasReferenceTypeConstraint
=> false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
47
public override bool
HasReferenceTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
74
public override bool
HasReferenceTypeConstraint
28 references to HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (28)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
749
Debug.Assert(type.
HasReferenceTypeConstraint
== other.
HasReferenceTypeConstraint
);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
293
return AdaptedTypeParameterSymbol.
HasReferenceTypeConstraint
;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
36
return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.
HasReferenceTypeConstraint
;
Symbols\ConstraintsHelper.cs (7)
111
switch (typeParameter.
HasReferenceTypeConstraint
? SpecialType.None : (bounds?.EffectiveBaseClass.SpecialType ?? SpecialType.System_Object))
474
Debug.Assert(!deducedBase.IsValueType || typeParameter.
HasReferenceTypeConstraint
);
477
else if (deducedBase.IsNullableType() && (typeParameter.HasValueTypeConstraint || typeParameter.
HasReferenceTypeConstraint
))
479
diagnosticsBuilder.Add(GenerateConflictingConstraintsError(typeParameter, deducedBase, classConflict: typeParameter.
HasReferenceTypeConstraint
));
996
if (typeParameter.
HasReferenceTypeConstraint
)
1154
if (typeParameter.
HasReferenceTypeConstraint
&&
1441
return typeParameter.
HasReferenceTypeConstraint
|| TypeParameterSymbol.CalculateIsReferenceTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (2)
634
(typeParameter1.
HasReferenceTypeConstraint
!= typeParameter2.
HasReferenceTypeConstraint
) ||
Symbols\PublicModel\TypeParameterSymbol.cs (2)
38
false when !_underlying.
HasReferenceTypeConstraint
=> CodeAnalysis.NullableAnnotation.None,
87
bool ITypeParameterSymbol.HasReferenceTypeConstraint => _underlying.
HasReferenceTypeConstraint
;
Symbols\Source\ExtensionGroupingInfo.cs (2)
363
(typeParameter1.
HasReferenceTypeConstraint
!= typeParameter2.
HasReferenceTypeConstraint
) ||
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (3)
81
if (typeParameter.
HasReferenceTypeConstraint
)
429
typeParameter.
HasReferenceTypeConstraint
|| typeParameter.HasValueTypeConstraint ||
602
if (typeParam.
HasReferenceTypeConstraint
)
Symbols\Source\SourceTypeParameterSymbol.cs (3)
327
if (this.
HasReferenceTypeConstraint
&& this.ReferenceTypeConstraintIsNullable != null)
339
return !this.
HasReferenceTypeConstraint
&&
947
return ((object)typeParameter != null) && typeParameter.
HasReferenceTypeConstraint
;
Symbols\TypeParameterSymbol.cs (4)
523
if (this.
HasReferenceTypeConstraint
)
539
if (this.
HasReferenceTypeConstraint
)
630
/// This API returns false when <see cref="
HasReferenceTypeConstraint
"/> is false.
731
if (this.
HasReferenceTypeConstraint
)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
78
return _underlyingTypeParameter.
HasReferenceTypeConstraint
;