11 overrides of HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp (11)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
67
public override bool
HasConstructorConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
50
public override bool
HasConstructorConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
447
public override bool
HasConstructorConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
164
public override bool
HasConstructorConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
179
public override bool
HasConstructorConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (2)
480
public override bool
HasConstructorConstraint
621
public abstract override bool
HasConstructorConstraint
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
25
public override bool
HasConstructorConstraint
=> false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
230
public override bool
HasConstructorConstraint
=> false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
42
public override bool
HasConstructorConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
66
public override bool
HasConstructorConstraint
19 references to HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Expressions.cs (1)
7245
if (!typeParameter.
HasConstructorConstraint
&& !typeParameter.IsValueType)
Binder\Binder_Unsafe.cs (2)
62
if (typeParameter.
HasConstructorConstraint
&&
78
if (typeParameter.
HasConstructorConstraint
&&
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
745
Debug.Assert(type.
HasConstructorConstraint
== other.
HasConstructorConstraint
);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
320
return AdaptedTypeParameterSymbol.
HasConstructorConstraint
|| AdaptedTypeParameterSymbol.HasValueTypeConstraint || AdaptedTypeParameterSymbol.HasUnmanagedTypeConstraint;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
60
return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.
HasConstructorConstraint
;
Symbols\ConstraintsHelper.cs (2)
1110
if (typeParameter.
HasConstructorConstraint
&& errorIfNotSatisfiesConstructorConstraint(constructedContainingSymbol, typeParameter, typeArgument, diagnosticsBuilder))
1501
return typeParameter.
HasConstructorConstraint
|| typeParameter.IsValueType ? ConstructorConstraintError.None : ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType;
Symbols\MemberSignatureComparer.cs (2)
633
if ((typeParameter1.
HasConstructorConstraint
!= typeParameter2.
HasConstructorConstraint
) ||
Symbols\PublicModel\TypeParameterSymbol.cs (1)
97
bool ITypeParameterSymbol.HasConstructorConstraint => _underlying.
HasConstructorConstraint
;
Symbols\Source\ExtensionGroupingInfo.cs (2)
362
if ((typeParameter1.
HasConstructorConstraint
!= typeParameter2.
HasConstructorConstraint
) ||
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (3)
95
if (typeParameter.
HasConstructorConstraint
|| typeParameter.HasValueTypeConstraint || typeParameter.HasUnmanagedTypeConstraint)
428
return !typeParameter.ConstraintTypesNoUseSiteDiagnostics.IsEmpty || typeParameter.
HasConstructorConstraint
||
640
if (typeParam.
HasConstructorConstraint
)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
911
return ((object)typeParameter != null) && typeParameter.
HasConstructorConstraint
;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
70
return _underlyingTypeParameter.
HasConstructorConstraint
;