25 references to StructConstraint
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
174case SyntaxKind.StructConstraint:
Parser\LanguageParser.cs (1)
2248SyntaxKind.StructConstraint,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
106SyntaxKind.StructConstraint)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
27private static readonly TypeParameterConstraintSyntax s_structConstraint = ClassOrStructConstraint(SyntaxKind.StructConstraint);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
52constraints.Add(ClassOrStructConstraint(SyntaxKind.StructConstraint));
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
106SyntaxKind.StructConstraint)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Parsing\AllowsConstraintParsing.cs (10)
115N(SyntaxKind.StructConstraint); 274N(SyntaxKind.StructConstraint); 341N(SyntaxKind.StructConstraint); 514N(SyntaxKind.StructConstraint); 733N(SyntaxKind.StructConstraint); 867N(SyntaxKind.StructConstraint); 1006N(SyntaxKind.StructConstraint); 1073N(SyntaxKind.StructConstraint); 1131N(SyntaxKind.StructConstraint); 1520N(SyntaxKind.StructConstraint);
Parsing\DeclarationParsingTests.cs (6)
1320Assert.Equal(SyntaxKind.StructConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 7052N(SyntaxKind.StructConstraint); 7143N(SyntaxKind.StructConstraint); 7235N(SyntaxKind.StructConstraint); 8982N(SyntaxKind.StructConstraint); 9054N(SyntaxKind.StructConstraint);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1844constraints = constraints.Insert(0, SyntaxFactory.ClassOrStructConstraint(isReferenceType ? SyntaxKind.ClassConstraint : SyntaxKind.StructConstraint));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
27private static readonly TypeParameterConstraintSyntax s_structConstraint = ClassOrStructConstraint(SyntaxKind.StructConstraint);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
52constraints.Add(ClassOrStructConstraint(SyntaxKind.StructConstraint));