2 implementations of HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
97bool ITypeParameterSymbol.HasConstructorConstraint => _underlying.HasConstructorConstraint;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
79Public MustOverride ReadOnly Property HasConstructorConstraint As Boolean Implements ITypeParameterSymbol.HasConstructorConstraint
34 references to HasConstructorConstraint
ILLink.RoslynAnalyzer (2)
RequiresAnalyzerBase.cs (1)
90 if (!typeParam.HasConstructorConstraint ||
TrimAnalysis\GenericParameterProxy.cs (1)
13 TypeParameterSymbol.HasConstructorConstraint |
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
224if (typeParameter1.HasConstructorConstraint != typeParameter2.HasConstructorConstraint ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
76hasConstructorConstraint: typeParameter.HasConstructorConstraint,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
122typeParameter.HasConstructorConstraint,
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
838return !typeParam.ConstraintTypes.IsEmpty || typeParam.HasConstructorConstraint || 921if (typeParam.HasConstructorConstraint)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
72if (typeParameter.HasConstructorConstraint)
Microsoft.CodeAnalysis.CSharp.Features (2)
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
276if (typeParam.HasConstructorConstraint) 311return !typeParam.ConstraintTypes.IsDefaultOrEmpty || typeParam.HasConstructorConstraint ||
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
172if (typeParameter.HasConstructorConstraint)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
72if (typeParameter.HasConstructorConstraint)
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
91if (type is ITypeParameterSymbol typeParameter && !typeParameter.HasConstructorConstraint)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2413oldParameter.HasConstructorConstraint == newParameter.HasConstructorConstraint &&
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
76hasConstructorConstraint: typeParameter.HasConstructorConstraint,
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
525If(typeParam.HasConstructorConstraint, 1, 0) 567If typeParam.HasConstructorConstraint Then
Symbols\TypeParameterSymbol.vb (1)
79Public MustOverride ReadOnly Property HasConstructorConstraint As Boolean Implements ITypeParameterSymbol.HasConstructorConstraint
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
44If symbol.HasConstructorConstraint Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
SignatureHelp\GenericNameSignatureHelpProvider.vb (2)
196If typeParam.HasConstructorConstraint Then 216If(typeParam.HasConstructorConstraint, 1, 0)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
44If symbol.HasConstructorConstraint Then
Microsoft.CodeAnalysis.Workspaces (5)
Editing\SyntaxGenerator.cs (2)
872kinds: (tp.HasConstructorConstraint ? SpecialTypeConstraintKind.Constructor : SpecialTypeConstraintKind.None) 885=> typeParameter.HasConstructorConstraint || typeParameter.HasReferenceTypeConstraint || typeParameter.HasValueTypeConstraint || typeParameter.ConstraintTypes.Length > 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
224if (typeParameter1.HasConstructorConstraint != typeParameter2.HasConstructorConstraint ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
122typeParameter.HasConstructorConstraint,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
343!typeParameterSymbol.HasConstructorConstraint && 392if (typeParameterSymbol.HasConstructorConstraint)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
ObjectBrowser\DescriptionBuilder.vb (3)
453ElseIf typeParameter.HasConstructorConstraint Then 480If typeParameter.HasConstructorConstraint Then 514If typeParameter.HasConstructorConstraint Then