12 overrides of HasValueTypeConstraint
Microsoft.CodeAnalysis.CSharp (12)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
91public override bool HasValueTypeConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
86public override bool HasValueTypeConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
563public override bool HasValueTypeConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
125public override bool HasValueTypeConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
140public override bool HasValueTypeConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (3)
498public override bool HasValueTypeConstraint 640public override bool HasValueTypeConstraint 903public override bool HasValueTypeConstraint
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
35public override bool HasValueTypeConstraint => false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
227public override bool HasValueTypeConstraint => false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
66public override bool HasValueTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
112public override bool HasValueTypeConstraint
20 references to HasValueTypeConstraint
Microsoft.CodeAnalysis.CSharp (20)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
732Debug.Assert(type.HasValueTypeConstraint == other.HasValueTypeConstraint);
Emitter\Model\TypeParameterSymbolAdapter.cs (3)
278if (AdaptedTypeParameterSymbol.HasValueTypeConstraint && !seenValueType) 301return AdaptedTypeParameterSymbol.HasValueTypeConstraint || AdaptedTypeParameterSymbol.HasUnmanagedTypeConstraint; 320return AdaptedTypeParameterSymbol.HasConstructorConstraint || AdaptedTypeParameterSymbol.HasValueTypeConstraint || AdaptedTypeParameterSymbol.HasUnmanagedTypeConstraint;
Symbols\ConstraintsHelper.cs (5)
143NamedTypeSymbol effectiveBaseClass = corLibrary.GetSpecialType(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object); 203else if (constraintTypeParameter.HasValueTypeConstraint) 477else if (deducedBase.IsNullableType() && (typeParameter.HasValueTypeConstraint || typeParameter.HasReferenceTypeConstraint)) 1015if (typeParameter.HasValueTypeConstraint && !typeArgument.Type.IsNonNullableValueType()) 1419return typeParameter.HasValueTypeConstraint || TypeParameterSymbol.CalculateIsValueTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (3)
663(typeParameter1.HasValueTypeConstraint != typeParameter2.HasValueTypeConstraint) || 740typeParameter2.HasValueTypeConstraint)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
89bool ITypeParameterSymbol.HasValueTypeConstraint => _underlying.HasValueTypeConstraint;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
339!this.HasValueTypeConstraint && 419else if (!this.HasValueTypeConstraint && this.ConstraintTypesNoUseSiteDiagnostics.IsEmpty && this.IsNotNullable == false) 908return ((object)typeParameter != null) && typeParameter.HasValueTypeConstraint;
Symbols\TypeParameterSymbol.cs (2)
533if (this.HasNotNullConstraint || this.HasValueTypeConstraint) 585if (this.HasValueTypeConstraint)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
116return _underlyingTypeParameter.HasValueTypeConstraint;