2 implementations of HasValueTypeConstraint
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
89bool ITypeParameterSymbol.HasValueTypeConstraint => _underlying.HasValueTypeConstraint;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
318Public MustOverride ReadOnly Property HasValueTypeConstraint As Boolean Implements ITypeParameterSymbol.HasValueTypeConstraint
37 references to HasValueTypeConstraint
ILLink.RoslynAnalyzer (1)
TrimAnalysis\GenericParameterProxy.cs (1)
14 TypeParameterSymbol.HasValueTypeConstraint |
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
226typeParameter1.HasValueTypeConstraint != typeParameter2.HasValueTypeConstraint ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
78hasValueConstraint: typeParameter.HasValueTypeConstraint,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
124typeParameter.HasValueTypeConstraint,
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
839typeParam.HasReferenceTypeConstraint || typeParam.HasValueTypeConstraint || 896else if (typeParam.HasValueTypeConstraint)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
236{ HasValueTypeConstraint: true } => s_structConstraint,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
50else if (typeParameter.HasValueTypeConstraint)
Microsoft.CodeAnalysis.CSharp.Features (4)
GenerateType\CSharpGenerateTypeService.cs (2)
75return typeParameter != null && typeParameter.HasValueTypeConstraint; 82return typeParameter != null && typeParameter.HasValueTypeConstraint;
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
257else if (typeParam.HasValueTypeConstraint) 312typeParam.HasReferenceTypeConstraint || typeParam.HasValueTypeConstraint ||
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
180if (typeParameter.HasValueTypeConstraint)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
236{ HasValueTypeConstraint: true } => s_structConstraint,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
50else if (typeParameter.HasValueTypeConstraint)
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2411oldParameter.HasValueTypeConstraint == newParameter.HasValueTypeConstraint &&
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
78hasValueConstraint: typeParameter.HasValueTypeConstraint,
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
524If(typeParam.HasValueTypeConstraint, 1, 0) + 552ElseIf typeParam.HasValueTypeConstraint Then
Symbols\TypeParameterSymbol.vb (1)
318Public MustOverride ReadOnly Property HasValueTypeConstraint As Boolean Implements ITypeParameterSymbol.HasValueTypeConstraint
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
29If symbol.HasValueTypeConstraint Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
SignatureHelp\GenericNameSignatureHelpProvider.vb (2)
181ElseIf typeParam.HasValueTypeConstraint Then 215If(typeParam.HasValueTypeConstraint, 1, 0) +
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
29If symbol.HasValueTypeConstraint Then
Microsoft.CodeAnalysis.Workspaces (6)
Editing\SyntaxGenerator.cs (3)
217else if (!typeParameter.HasValueTypeConstraint) 874| (tp.HasValueTypeConstraint ? SpecialTypeConstraintKind.ValueType : SpecialTypeConstraintKind.None), 885=> typeParameter.HasConstructorConstraint || typeParameter.HasReferenceTypeConstraint || typeParameter.HasValueTypeConstraint || typeParameter.ConstraintTypes.Length > 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
226typeParameter1.HasValueTypeConstraint != typeParameter2.HasValueTypeConstraint ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
124typeParameter.HasValueTypeConstraint,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
345!typeParameterSymbol.HasValueTypeConstraint && 370if (typeParameterSymbol.HasValueTypeConstraint)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
ObjectBrowser\DescriptionBuilder.vb (3)
451ElseIf typeParameter.HasValueTypeConstraint Then 471If typeParameter.HasValueTypeConstraint Then 510If typeParameter.HasValueTypeConstraint Then