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)
526
public override bool
HasReferenceTypeConstraint
638
public abstract override bool
HasReferenceTypeConstraint
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
29
public override bool
HasReferenceTypeConstraint
=> false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
223
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)
735
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
));
973
if (typeParameter.
HasReferenceTypeConstraint
)
1129
if (typeParameter.
HasReferenceTypeConstraint
&&
1414
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)
326
if (this.
HasReferenceTypeConstraint
&& this.ReferenceTypeConstraintIsNullable != null)
338
return !this.
HasReferenceTypeConstraint
&&
405
if (this.
HasReferenceTypeConstraint
)
956
return ((object)typeParameter != null) && typeParameter.
HasReferenceTypeConstraint
;
Symbols\TypeParameterSymbol.cs (3)
522
if (this.
HasReferenceTypeConstraint
)
538
if (this.
HasReferenceTypeConstraint
)
629
/// This API returns false when <see cref="
HasReferenceTypeConstraint
"/> is false.
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
76
return _underlyingTypeParameter.
HasReferenceTypeConstraint
;