44 references to ClassConstraint
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
133case SyntaxKind.ClassConstraint:
Parser\LanguageParser.cs (1)
2256SyntaxKind.ClassConstraint,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
464currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.ClassConstraint))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
26private static readonly TypeParameterConstraintSyntax s_classConstraint = ClassOrStructConstraint(SyntaxKind.ClassConstraint);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
44constraints.Add(ClassOrStructConstraint(SyntaxKind.ClassConstraint));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (35)
Generated\Syntax.Test.xml.Generated.cs (2)
539=> InternalSyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, InternalSyntaxFactory.Token(SyntaxKind.ClassKeyword), null); 10755=> SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, SyntaxFactory.Token(SyntaxKind.ClassKeyword), default(SyntaxToken));
Parsing\AllowsConstraintParsing.cs (6)
814N(SyntaxKind.ClassConstraint); 890N(SyntaxKind.ClassConstraint); 957N(SyntaxKind.ClassConstraint); 1029N(SyntaxKind.ClassConstraint); 1185N(SyntaxKind.ClassConstraint); 1599N(SyntaxKind.ClassConstraint);
Parsing\DeclarationParsingTests.cs (14)
1279Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1362Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1567Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 7009N(SyntaxKind.ClassConstraint); 7095N(SyntaxKind.ClassConstraint); 7187N(SyntaxKind.ClassConstraint); 9005N(SyntaxKind.ClassConstraint); 9077N(SyntaxKind.ClassConstraint); 10206N(SyntaxKind.ClassConstraint); 10268N(SyntaxKind.ClassConstraint); 10345N(SyntaxKind.ClassConstraint); 10989N(SyntaxKind.ClassConstraint); 11051N(SyntaxKind.ClassConstraint); 11124N(SyntaxKind.ClassConstraint);
Parsing\MemberDeclarationParsingTests.cs (1)
9525N(SyntaxKind.ClassConstraint);
Parsing\RecordParsing.cs (12)
479N(SyntaxKind.ClassConstraint); 523N(SyntaxKind.ClassConstraint); 568N(SyntaxKind.ClassConstraint); 581N(SyntaxKind.ClassConstraint); 622N(SyntaxKind.ClassConstraint); 667N(SyntaxKind.ClassConstraint); 680N(SyntaxKind.ClassConstraint); 735N(SyntaxKind.ClassConstraint); 936N(SyntaxKind.ClassConstraint); 981N(SyntaxKind.ClassConstraint); 1029N(SyntaxKind.ClassConstraint); 4226N(SyntaxKind.ClassConstraint);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1844constraints = constraints.Insert(0, SyntaxFactory.ClassOrStructConstraint(isReferenceType ? SyntaxKind.ClassConstraint : SyntaxKind.StructConstraint));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
464currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.ClassConstraint))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
26private static readonly TypeParameterConstraintSyntax s_classConstraint = ClassOrStructConstraint(SyntaxKind.ClassConstraint);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
44constraints.Add(ClassOrStructConstraint(SyntaxKind.ClassConstraint));