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)
527
public override bool
HasReferenceTypeConstraint
639
public abstract override bool
HasReferenceTypeConstraint
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
29
public override bool
HasReferenceTypeConstraint
=> false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
229
public override bool
HasReferenceTypeConstraint
=> false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
47
public override bool
HasReferenceTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
72
public override bool
HasReferenceTypeConstraint
22 references to HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (22)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
742
Debug.Assert(type.
HasReferenceTypeConstraint
== other.
HasReferenceTypeConstraint
);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
293
return 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
));
998
if (typeParameter.
HasReferenceTypeConstraint
)
1156
if (typeParameter.
HasReferenceTypeConstraint
&&
1443
return typeParameter.
HasReferenceTypeConstraint
|| TypeParameterSymbol.CalculateIsReferenceTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (2)
662
(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\SourceTypeParameterSymbol.cs (4)
327
if (this.
HasReferenceTypeConstraint
&& this.ReferenceTypeConstraintIsNullable != null)
339
return !this.
HasReferenceTypeConstraint
&&
406
if (this.
HasReferenceTypeConstraint
)
957
return ((object)typeParameter != null) && typeParameter.
HasReferenceTypeConstraint
;
Symbols\TypeParameterSymbol.cs (3)
523
if (this.
HasReferenceTypeConstraint
)
539
if (this.
HasReferenceTypeConstraint
)
632
/// This API returns false when <see cref="
HasReferenceTypeConstraint
"/> is false.
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
76
return _underlyingTypeParameter.
HasReferenceTypeConstraint
;