55 references to ClassConstraint
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Constraints.cs (1)
134case SyntaxKind.ClassConstraint:
Parser\LanguageParser.cs (1)
2292SyntaxKind.ClassConstraint,
Syntax.xml.Internal.Generated.cs (2)
32031case SyntaxKind.ClassConstraint: 37398case SyntaxKind.ClassConstraint:
Syntax.xml.Main.Generated.cs (2)
5270case SyntaxKind.ClassConstraint: 5296SyntaxKind.ClassConstraint => SyntaxKind.ClassKeyword,
Syntax.xml.Syntax.Generated.cs (1)
11764/// <item><description><see cref="SyntaxKind.ClassConstraint"/></description></item>
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
515currentToken.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)
43constraints.Add(ClassOrStructConstraint(SyntaxKind.ClassConstraint));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (38)
Generated\Syntax.Test.xml.Generated.cs (2)
542=> InternalSyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, InternalSyntaxFactory.Token(SyntaxKind.ClassKeyword), null); 10892=> 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 (15)
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()); 7063N(SyntaxKind.ClassConstraint); 7149N(SyntaxKind.ClassConstraint); 7241N(SyntaxKind.ClassConstraint); 9059N(SyntaxKind.ClassConstraint); 9131N(SyntaxKind.ClassConstraint); 10260N(SyntaxKind.ClassConstraint); 10322N(SyntaxKind.ClassConstraint); 10399N(SyntaxKind.ClassConstraint); 11043N(SyntaxKind.ClassConstraint); 11105N(SyntaxKind.ClassConstraint); 11178N(SyntaxKind.ClassConstraint); 13274N(SyntaxKind.ClassConstraint);
Parsing\ExtensionsParsingTests.cs (2)
659N(SyntaxKind.ClassConstraint); 752N(SyntaxKind.ClassConstraint);
Parsing\MemberDeclarationParsingTests.cs (1)
9528N(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)
1858constraints = constraints.Insert(0, SyntaxFactory.ClassOrStructConstraint(isReferenceType ? SyntaxKind.ClassConstraint : SyntaxKind.StructConstraint));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
515currentToken.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)
43constraints.Add(ClassOrStructConstraint(SyntaxKind.ClassConstraint));
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
515currentToken.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)
43constraints.Add(ClassOrStructConstraint(SyntaxKind.ClassConstraint));