22 references to ClassOrStructConstraintSyntax
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Constraints.cs (2)
149
var
constraintSyntax = (
ClassOrStructConstraintSyntax
)syntax;
Syntax\ClassOrStructConstraintSyntax.cs (1)
9
public
ClassOrStructConstraintSyntax
Update(SyntaxToken classOrStructKeyword)
Syntax\SyntaxFactory.cs (1)
2681
public 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)
10754
private static
ClassOrStructConstraintSyntax
GenerateClassOrStructConstraint()
13170
var
node = GenerateClassOrStructConstraint();
13174
var
newNode = node.WithClassOrStructKeyword(node.ClassOrStructKeyword).WithQuestionToken(node.QuestionToken);
18649
var
oldNode = GenerateClassOrStructConstraint();
18665
var
oldNode = GenerateClassOrStructConstraint();
Parsing\DeclarationParsingTests.cs (8)
1280
var
bound = (
ClassOrStructConstraintSyntax
)cs.ConstraintClauses[0].Constraints[0];
1321
var
bound = (
ClassOrStructConstraintSyntax
)cs.ConstraintClauses[0].Constraints[0];
1363
var
classBound = (
ClassOrStructConstraintSyntax
)cs.ConstraintClauses[0].Constraints[0];
1568
var
classBound = (
ClassOrStructConstraintSyntax
)cs.ConstraintClauses[0].Constraints[0];
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (2)
495
if (token.IsKind(SyntaxKind.ClassKeyword) && token.Parent is
ClassOrStructConstraintSyntax
)
501
if (token.IsKind(SyntaxKind.StructKeyword) && token.Parent is
ClassOrStructConstraintSyntax
)