11 overrides of HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (11)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
72public override bool HasReferenceTypeConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
58public override bool HasReferenceTypeConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
455public override bool HasReferenceTypeConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
140public override bool HasReferenceTypeConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
155public override bool HasReferenceTypeConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (2)
526public override bool HasReferenceTypeConstraint 638public abstract override bool HasReferenceTypeConstraint { get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
29public override bool HasReferenceTypeConstraint => false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
223public override bool HasReferenceTypeConstraint => false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
47public override bool HasReferenceTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
72public override bool HasReferenceTypeConstraint
22 references to HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (22)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
735Debug.Assert(type.HasReferenceTypeConstraint == other.HasReferenceTypeConstraint);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
293return AdaptedTypeParameterSymbol.HasReferenceTypeConstraint;
Symbols\ConstraintsHelper.cs (7)
111switch (typeParameter.HasReferenceTypeConstraint ? SpecialType.None : (bounds?.EffectiveBaseClass.SpecialType ?? SpecialType.System_Object)) 474Debug.Assert(!deducedBase.IsValueType || typeParameter.HasReferenceTypeConstraint); 477else if (deducedBase.IsNullableType() && (typeParameter.HasValueTypeConstraint || typeParameter.HasReferenceTypeConstraint)) 479diagnosticsBuilder.Add(GenerateConflictingConstraintsError(typeParameter, deducedBase, classConflict: typeParameter.HasReferenceTypeConstraint)); 973if (typeParameter.HasReferenceTypeConstraint) 1129if (typeParameter.HasReferenceTypeConstraint && 1414return typeParameter.HasReferenceTypeConstraint || TypeParameterSymbol.CalculateIsReferenceTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (2)
662(typeParameter1.HasReferenceTypeConstraint != typeParameter2.HasReferenceTypeConstraint) ||
Symbols\PublicModel\TypeParameterSymbol.cs (2)
38false when !_underlying.HasReferenceTypeConstraint => CodeAnalysis.NullableAnnotation.None, 87bool ITypeParameterSymbol.HasReferenceTypeConstraint => _underlying.HasReferenceTypeConstraint;
Symbols\Source\SourceTypeParameterSymbol.cs (4)
326if (this.HasReferenceTypeConstraint && this.ReferenceTypeConstraintIsNullable != null) 338return !this.HasReferenceTypeConstraint && 405if (this.HasReferenceTypeConstraint) 956return ((object)typeParameter != null) && typeParameter.HasReferenceTypeConstraint;
Symbols\TypeParameterSymbol.cs (3)
522if (this.HasReferenceTypeConstraint) 538if (this.HasReferenceTypeConstraint) 629/// This API returns false when <see cref="HasReferenceTypeConstraint"/> is false.
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
76return _underlyingTypeParameter.HasReferenceTypeConstraint;