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