38 references to ClassConstraint
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
133case SyntaxKind.ClassConstraint:
Parser\LanguageParser.cs (1)
1953SyntaxKind.ClassConstraint,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
TokenBasedFormattingRule.cs (1)
458currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.ClassConstraint))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ITypeParameterSymbolExtensions.cs (1)
42constraints.Add(SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint));
MethodGenerator.cs (1)
23private static readonly TypeParameterConstraintSyntax s_classConstraint = SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (2)
527=> InternalSyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, InternalSyntaxFactory.Token(SyntaxKind.ClassKeyword), null); 10503=> SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, SyntaxFactory.Token(SyntaxKind.ClassKeyword), default(SyntaxToken));
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); 9100N(SyntaxKind.ClassConstraint); 9172N(SyntaxKind.ClassConstraint); 10301N(SyntaxKind.ClassConstraint); 10363N(SyntaxKind.ClassConstraint); 10440N(SyntaxKind.ClassConstraint); 11084N(SyntaxKind.ClassConstraint); 11146N(SyntaxKind.ClassConstraint); 11219N(SyntaxKind.ClassConstraint);
Parsing\MemberDeclarationParsingTests.cs (1)
9536N(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); 4076N(SyntaxKind.ClassConstraint);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1856constraints = constraints.Insert(0, SyntaxFactory.ClassOrStructConstraint(isReferenceType ? SyntaxKind.ClassConstraint : SyntaxKind.StructConstraint));
ITypeParameterSymbolExtensions.cs (1)
42constraints.Add(SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint));
MethodGenerator.cs (1)
23private static readonly TypeParameterConstraintSyntax s_classConstraint = SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint);
TokenBasedFormattingRule.cs (1)
458currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.ClassConstraint))