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