11 overrides of HasValueTypeConstraint
Microsoft.CodeAnalysis.CSharp (11)
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 (2)
489public override bool HasValueTypeConstraint 623public abstract override bool HasValueTypeConstraint { get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
35public override bool HasValueTypeConstraint => false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
240public override bool HasValueTypeConstraint => false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
66public override bool HasValueTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
114public override bool HasValueTypeConstraint
29 references to HasValueTypeConstraint
Microsoft.CodeAnalysis.CSharp (29)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
746Debug.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;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
44return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.HasValueTypeConstraint;
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)) 1040if (typeParameter.HasValueTypeConstraint && !typeArgument.Type.IsNonNullableValueType()) 1446return typeParameter.HasValueTypeConstraint || TypeParameterSymbol.CalculateIsValueTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (3)
635(typeParameter1.HasValueTypeConstraint != typeParameter2.HasValueTypeConstraint) || 712typeParameter2.HasValueTypeConstraint)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
89bool ITypeParameterSymbol.HasValueTypeConstraint => _underlying.HasValueTypeConstraint;
Symbols\Source\ExtensionGroupingInfo.cs (2)
364(typeParameter1.HasValueTypeConstraint != typeParameter2.HasValueTypeConstraint) ||
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (6)
85else if (typeParameter.HasValueTypeConstraint || typeParameter.HasUnmanagedTypeConstraint) 95if (typeParameter.HasConstructorConstraint || typeParameter.HasValueTypeConstraint || typeParameter.HasUnmanagedTypeConstraint) 112if (typeConstraints.IsEmpty && !typeParameter.HasUnmanagedTypeConstraint && !typeParameter.HasValueTypeConstraint) 130else if (typeParameter.HasValueTypeConstraint) 429typeParameter.HasReferenceTypeConstraint || typeParameter.HasValueTypeConstraint || 624else if (typeParam.HasValueTypeConstraint)
Symbols\Source\SourceTypeParameterSymbol.cs (2)
340!this.HasValueTypeConstraint && 920return ((object)typeParameter != null) && typeParameter.HasValueTypeConstraint;
Symbols\TypeParameterSymbol.cs (3)
534if (this.HasNotNullConstraint || this.HasValueTypeConstraint) 586if (this.HasValueTypeConstraint) 745else if (!this.HasValueTypeConstraint && this.ConstraintTypesNoUseSiteDiagnostics.IsEmpty && this.IsNotNullable == false)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
118return _underlyingTypeParameter.HasValueTypeConstraint;