22 references to ClassOrStructConstraintSyntax
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Constraints.cs (2)
149var constraintSyntax = (ClassOrStructConstraintSyntax)syntax;
Syntax\ClassOrStructConstraintSyntax.cs (1)
9public ClassOrStructConstraintSyntax Update(SyntaxToken classOrStructKeyword)
Syntax\SyntaxFactory.cs (1)
2681public static ClassOrStructConstraintSyntax ClassOrStructConstraint(SyntaxKind kind, SyntaxToken classOrStructKeyword)
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\AllowsKeywordRecommender.cs (1)
44.OfType<ClassOrStructConstraintSyntax>()
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
105.OfType<ClassOrStructConstraintSyntax>()
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
111.OfType<ClassOrStructConstraintSyntax>()
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.cs (5)
10754private static ClassOrStructConstraintSyntax GenerateClassOrStructConstraint() 13170var node = GenerateClassOrStructConstraint(); 13174var newNode = node.WithClassOrStructKeyword(node.ClassOrStructKeyword).WithQuestionToken(node.QuestionToken); 18649var oldNode = GenerateClassOrStructConstraint(); 18665var oldNode = GenerateClassOrStructConstraint();
Parsing\DeclarationParsingTests.cs (8)
1280var bound = (ClassOrStructConstraintSyntax)cs.ConstraintClauses[0].Constraints[0]; 1321var bound = (ClassOrStructConstraintSyntax)cs.ConstraintClauses[0].Constraints[0]; 1363var classBound = (ClassOrStructConstraintSyntax)cs.ConstraintClauses[0].Constraints[0]; 1568var classBound = (ClassOrStructConstraintSyntax)cs.ConstraintClauses[0].Constraints[0];
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (2)
495if (token.IsKind(SyntaxKind.ClassKeyword) && token.Parent is ClassOrStructConstraintSyntax) 501if (token.IsKind(SyntaxKind.StructKeyword) && token.Parent is ClassOrStructConstraintSyntax)