21 references to ClassOrStructKeyword
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Constraints.cs (1)
165
else if (isForOverride || AreNullableAnnotationsEnabled(constraintSyntax.
ClassOrStructKeyword
))
Syntax.xml.Main.Generated.cs (1)
2035
=> node.Update(VisitToken(node.
ClassOrStructKeyword
), VisitToken(node.QuestionToken));
Syntax.xml.Syntax.Generated.cs (2)
11797
if (classOrStructKeyword != this.
ClassOrStructKeyword
|| questionToken != this.QuestionToken)
11808
public ClassOrStructConstraintSyntax WithQuestionToken(SyntaxToken questionToken) => Update(this.
ClassOrStructKeyword
, questionToken);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\AllowsKeywordRecommender.cs (1)
40
.Any(c => c.
ClassOrStructKeyword
.Kind() == SyntaxKind.ClassKeyword))
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
101
.Any(c => c.
ClassOrStructKeyword
.Kind() == SyntaxKind.StructKeyword))
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
107
.Any(c => c.
ClassOrStructKeyword
.Kind() == SyntaxKind.ClassKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (2)
13334
Assert.Equal(SyntaxKind.ClassKeyword, node.
ClassOrStructKeyword
.Kind());
13336
var newNode = node.WithClassOrStructKeyword(node.
ClassOrStructKeyword
).WithQuestionToken(node.QuestionToken);
Parsing\DeclarationParsingTests.cs (12)
1281
Assert.NotEqual(default, bound.
ClassOrStructKeyword
);
1282
Assert.False(bound.
ClassOrStructKeyword
.IsMissing);
1283
Assert.Equal(SyntaxKind.ClassKeyword, bound.
ClassOrStructKeyword
.Kind());
1322
Assert.NotEqual(default, bound.
ClassOrStructKeyword
);
1323
Assert.False(bound.
ClassOrStructKeyword
.IsMissing);
1324
Assert.Equal(SyntaxKind.StructKeyword, bound.
ClassOrStructKeyword
.Kind());
1364
Assert.NotEqual(default, classBound.
ClassOrStructKeyword
);
1365
Assert.False(classBound.
ClassOrStructKeyword
.IsMissing);
1366
Assert.Equal(SyntaxKind.ClassKeyword, classBound.
ClassOrStructKeyword
.Kind());
1569
Assert.NotEqual(default, classBound.
ClassOrStructKeyword
);
1570
Assert.False(classBound.
ClassOrStructKeyword
.IsMissing);
1571
Assert.Equal(SyntaxKind.ClassKeyword, classBound.
ClassOrStructKeyword
.Kind());