259 references to StructKeyword
Microsoft.CodeAnalysis.CSharp (27)
Parser\LanguageParser.cs (14)
345
case SyntaxKind.
StructKeyword
:
1475
if (token.Kind == SyntaxKind.
StructKeyword
)
1617
case SyntaxKind.
StructKeyword
:
1697
case SyntaxKind.
StructKeyword
:
1720
Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.
StructKeyword
or SyntaxKind.InterfaceKeyword ||
1855
recordModifier = this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.
StructKeyword
1862
if (this.CurrentToken.Kind is SyntaxKind.
StructKeyword
or SyntaxKind.ClassKeyword &&
1908
case SyntaxKind.
StructKeyword
:
1942
SyntaxKind declarationKind = recordModifier?.Kind == SyntaxKind.
StructKeyword
? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration;
2206
case SyntaxKind.
StructKeyword
:
2227
SyntaxKind.
StructKeyword
=>
2275
this.EatToken(SyntaxKind.
StructKeyword
)));
2332
case SyntaxKind.
StructKeyword
:
2362
case SyntaxKind.
StructKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (4)
715
AddKeyword(SyntaxKind.
StructKeyword
);
753
AddKeyword(SyntaxKind.
StructKeyword
);
898
AddKeyword(SyntaxKind.
StructKeyword
);
947
AddKeyword(SyntaxKind.
StructKeyword
);
Syntax\SyntaxFactory.cs (3)
2900
=> SyntaxFactory.StructDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.
StructKeyword
), identifier, typeParameterList, parameterList, baseList, constraintClauses, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), members, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
2904
=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
StructKeyword
), identifier, null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
2908
=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.
StructKeyword
), SyntaxFactory.Identifier(identifier), null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
Syntax\SyntaxKindFacts.cs (3)
837
case SyntaxKind.
StructKeyword
:
995
return SyntaxKind.
StructKeyword
;
1643
case SyntaxKind.
StructKeyword
:
Syntax\TypeDeclarationSyntax.cs (3)
59
return SyntaxKind.
StructKeyword
;
74
return SyntaxKind.
StructKeyword
;
132
return SyntaxFactory.RecordDeclaration(SyntaxKind.RecordStructDeclaration, attributes, modifiers, keyword, classOrStructKeyword: SyntaxFactory.Token(SyntaxKind.
StructKeyword
), identifier, typeParameterList, parameterList: null, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
86
public static readonly SyntaxToken StructKeyword = Token(SyntaxKind.
StructKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316
case SyntaxKind.
StructKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
54
if (classOrStructKeyword.Kind() is SyntaxKind.ClassKeyword or SyntaxKind.
StructKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
200
var classOrStructKeyword = Token(isRecordClass ? default : SyntaxKind.
StructKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
694
or SyntaxKind.
StructKeyword
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
81
case SyntaxKind.
StructKeyword
:
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
106
.Any(c => c.ClassOrStructKeyword.Kind() == SyntaxKind.
StructKeyword
))
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
28
: base(SyntaxKind.
StructKeyword
)
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
259
parts.Add(Keyword(SyntaxKind.
StructKeyword
));
302
parts.Add(Keyword(SyntaxKind.
StructKeyword
));
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
54
if (classOrStructKeyword.Kind() is SyntaxKind.ClassKeyword or SyntaxKind.
StructKeyword
)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.cs (1)
1948
Diagnostic(RudeEditKind.ModifiersUpdate, "readonly struct X", SyntaxFacts.GetText(SyntaxKind.
StructKeyword
)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (215)
Generated\Syntax.Test.xml.Generated.cs (8)
503
=> InternalSyntaxFactory.StructDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
StructKeyword
), InternalSyntaxFactory.Identifier("Identifier"), null, null, null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.TypeParameterConstraintClauseSyntax>(), null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.MemberDeclarationSyntax>(), null, null);
548
=> InternalSyntaxFactory.RefStructConstraint(InternalSyntaxFactory.Token(SyntaxKind.RefKeyword), InternalSyntaxFactory.Token(SyntaxKind.
StructKeyword
));
2775
Assert.Equal(SyntaxKind.
StructKeyword
, node.Keyword.Kind);
2986
Assert.Equal(SyntaxKind.
StructKeyword
, node.StructKeyword.Kind);
10680
=> SyntaxFactory.StructDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
StructKeyword
), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10725
=> SyntaxFactory.RefStructConstraint(SyntaxFactory.Token(SyntaxKind.RefKeyword), SyntaxFactory.Token(SyntaxKind.
StructKeyword
));
12952
Assert.Equal(SyntaxKind.
StructKeyword
, node.Keyword.Kind());
13163
Assert.Equal(SyntaxKind.
StructKeyword
, node.StructKeyword.Kind());
IncrementalParsing\IncrementalParsingTests.cs (1)
211
SyntaxKind.
StructKeyword
);
Parsing\AllowsConstraintParsing.cs (41)
60
N(SyntaxKind.
StructKeyword
);
117
N(SyntaxKind.
StructKeyword
);
169
M(SyntaxKind.
StructKeyword
);
276
N(SyntaxKind.
StructKeyword
);
343
N(SyntaxKind.
StructKeyword
);
398
M(SyntaxKind.
StructKeyword
);
455
N(SyntaxKind.
StructKeyword
);
461
N(SyntaxKind.
StructKeyword
);
510
N(SyntaxKind.
StructKeyword
);
516
N(SyntaxKind.
StructKeyword
);
568
N(SyntaxKind.
StructKeyword
);
574
M(SyntaxKind.
StructKeyword
);
623
N(SyntaxKind.
StructKeyword
);
633
N(SyntaxKind.
StructKeyword
);
686
N(SyntaxKind.
StructKeyword
);
735
N(SyntaxKind.
StructKeyword
);
744
N(SyntaxKind.
StructKeyword
);
802
N(SyntaxKind.
StructKeyword
);
869
N(SyntaxKind.
StructKeyword
);
878
N(SyntaxKind.
StructKeyword
);
945
N(SyntaxKind.
StructKeyword
);
1008
N(SyntaxKind.
StructKeyword
);
1017
N(SyntaxKind.
StructKeyword
);
1075
N(SyntaxKind.
StructKeyword
);
1084
N(SyntaxKind.
StructKeyword
);
1133
N(SyntaxKind.
StructKeyword
);
1142
N(SyntaxKind.
StructKeyword
);
1196
N(SyntaxKind.
StructKeyword
);
1250
N(SyntaxKind.
StructKeyword
);
1307
N(SyntaxKind.
StructKeyword
);
1364
N(SyntaxKind.
StructKeyword
);
1421
N(SyntaxKind.
StructKeyword
);
1477
N(SyntaxKind.
StructKeyword
);
1522
N(SyntaxKind.
StructKeyword
);
1546
N(SyntaxKind.
StructKeyword
);
1595
N(SyntaxKind.
StructKeyword
);
1649
N(SyntaxKind.
StructKeyword
);
1703
N(SyntaxKind.
StructKeyword
);
1760
N(SyntaxKind.
StructKeyword
);
1817
N(SyntaxKind.
StructKeyword
);
1874
N(SyntaxKind.
StructKeyword
);
Parsing\DeclarationParsingTests.cs (51)
1324
Assert.Equal(SyntaxKind.
StructKeyword
, bound.ClassOrStructKeyword.Kind());
1695
Assert.Equal(SyntaxKind.
StructKeyword
, cs.Keyword.Kind());
2798
Assert.Equal(SyntaxKind.
StructKeyword
, structDecl.Keyword.Kind());
2845
Assert.Equal(SyntaxKind.
StructKeyword
, structDecl.Keyword.Kind());
2895
Assert.Equal(SyntaxKind.
StructKeyword
, structDecl.Keyword.Kind());
2936
Assert.Equal(SyntaxKind.
StructKeyword
, structDecl.Keyword.Kind());
7054
N(SyntaxKind.
StructKeyword
);
7145
N(SyntaxKind.
StructKeyword
);
7237
N(SyntaxKind.
StructKeyword
);
9079
N(SyntaxKind.
StructKeyword
);
9151
N(SyntaxKind.
StructKeyword
);
9416
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9446
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9466
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9490
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9522
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9559
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9595
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9630
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9672
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9711
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9766
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9814
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9851
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9885
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9912
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9952
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9992
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10023
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10068
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10117
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10160
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10217
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10277
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10331
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10399
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10464
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10516
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10565
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10617
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10670
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10704
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10748
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10797
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10845
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10907
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10949
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11001
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11058
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11113
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11178
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (25)
1987
N(SyntaxKind.
StructKeyword
);
2061
N(SyntaxKind.
StructKeyword
);
2069
N(SyntaxKind.
StructKeyword
);
2118
N(SyntaxKind.
StructKeyword
);
2178
N(SyntaxKind.
StructKeyword
);
2197
N(SyntaxKind.
StructKeyword
);
2279
N(SyntaxKind.
StructKeyword
);
2373
N(SyntaxKind.
StructKeyword
);
2490
N(SyntaxKind.
StructKeyword
);
2597
N(SyntaxKind.
StructKeyword
);
2714
N(SyntaxKind.
StructKeyword
);
2830
N(SyntaxKind.
StructKeyword
);
3618
N(SyntaxKind.
StructKeyword
);
3699
N(SyntaxKind.
StructKeyword
);
3706
N(SyntaxKind.
StructKeyword
);
3789
N(SyntaxKind.
StructKeyword
);
3815
N(SyntaxKind.
StructKeyword
);
3885
N(SyntaxKind.
StructKeyword
);
4003
N(SyntaxKind.
StructKeyword
);
4010
N(SyntaxKind.
StructKeyword
);
4093
N(SyntaxKind.
StructKeyword
);
4129
N(SyntaxKind.
StructKeyword
);
4167
N(SyntaxKind.
StructKeyword
);
4184
N(SyntaxKind.
StructKeyword
);
4202
N(SyntaxKind.
StructKeyword
);
Parsing\DeclarationScopeParsingTests.cs (19)
11151
N(SyntaxKind.
StructKeyword
);
11170
N(SyntaxKind.
StructKeyword
);
11230
N(SyntaxKind.
StructKeyword
);
11255
N(SyntaxKind.
StructKeyword
);
11547
N(SyntaxKind.
StructKeyword
);
11586
N(SyntaxKind.
StructKeyword
);
13546
N(SyntaxKind.
StructKeyword
);
13608
N(SyntaxKind.
StructKeyword
);
13678
N(SyntaxKind.
StructKeyword
);
13764
N(SyntaxKind.
StructKeyword
);
13877
N(SyntaxKind.
StructKeyword
);
13976
N(SyntaxKind.
StructKeyword
);
14035
N(SyntaxKind.
StructKeyword
);
14096
N(SyntaxKind.
StructKeyword
);
14164
N(SyntaxKind.
StructKeyword
);
14289
N(SyntaxKind.
StructKeyword
);
14372
N(SyntaxKind.
StructKeyword
);
14434
N(SyntaxKind.
StructKeyword
);
14502
N(SyntaxKind.
StructKeyword
);
Parsing\FileModifierParsingTests.cs (12)
43
[InlineData(SyntaxKind.
StructKeyword
)]
69
[InlineData(SyntaxKind.
StructKeyword
)]
123
[InlineData(SyntaxKind.
StructKeyword
)]
221
N(SyntaxKind.
StructKeyword
);
250
N(SyntaxKind.
StructKeyword
);
313
N(SyntaxKind.
StructKeyword
);
376
N(SyntaxKind.
StructKeyword
);
439
N(SyntaxKind.
StructKeyword
);
495
[InlineData(SyntaxKind.
StructKeyword
)]
528
[InlineData(SyntaxKind.
StructKeyword
)]
1573
N(SyntaxKind.
StructKeyword
);
1837
N(SyntaxKind.
StructKeyword
);
Parsing\MemberDeclarationParsingTests.cs (16)
10477
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10521
N(SyntaxKind.
StructKeyword
);
10560
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10606
N(SyntaxKind.
StructKeyword
);
10663
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10714
N(SyntaxKind.
StructKeyword
);
10778
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10839
N(SyntaxKind.
StructKeyword
);
10934
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11014
N(SyntaxKind.
StructKeyword
);
11109
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11188
N(SyntaxKind.
StructKeyword
);
11282
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11357
N(SyntaxKind.
StructKeyword
);
11413
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11484
N(SyntaxKind.
StructKeyword
);
Parsing\RecordParsing.cs (23)
2540
N(SyntaxKind.
StructKeyword
);
2640
N(SyntaxKind.
StructKeyword
);
2677
N(SyntaxKind.
StructKeyword
);
2720
N(SyntaxKind.
StructKeyword
);
3068
M(SyntaxKind.
StructKeyword
);
3113
M(SyntaxKind.
StructKeyword
);
3154
N(SyntaxKind.
StructKeyword
);
3174
N(SyntaxKind.
StructKeyword
);
3194
N(SyntaxKind.
StructKeyword
);
3398
N(SyntaxKind.
StructKeyword
);
3460
N(SyntaxKind.
StructKeyword
);
3494
N(SyntaxKind.
StructKeyword
);
3529
N(SyntaxKind.
StructKeyword
);
3551
N(SyntaxKind.
StructKeyword
);
3583
N(SyntaxKind.
StructKeyword
);
3629
N(SyntaxKind.
StructKeyword
);
3679
N(SyntaxKind.
StructKeyword
);
3705
N(SyntaxKind.
StructKeyword
);
3827
N(SyntaxKind.
StructKeyword
);
3890
N(SyntaxKind.
StructKeyword
);
3910
N(SyntaxKind.
StructKeyword
);
3953
N(SyntaxKind.
StructKeyword
);
4035
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
Parsing\RefFieldParsingTests.cs (11)
28
N(SyntaxKind.
StructKeyword
);
65
N(SyntaxKind.
StructKeyword
);
106
N(SyntaxKind.
StructKeyword
);
142
N(SyntaxKind.
StructKeyword
);
176
N(SyntaxKind.
StructKeyword
);
234
N(SyntaxKind.
StructKeyword
);
299
N(SyntaxKind.
StructKeyword
);
359
N(SyntaxKind.
StructKeyword
);
409
N(SyntaxKind.
StructKeyword
);
471
N(SyntaxKind.
StructKeyword
);
560
N(SyntaxKind.
StructKeyword
);
Parsing\ScriptParsingTests.cs (1)
2414
N(SyntaxKind.
StructKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (4)
3096
N(SyntaxKind.
StructKeyword
);
3115
N(SyntaxKind.
StructKeyword
);
3131
N(SyntaxKind.
StructKeyword
);
3574
N(SyntaxKind.
StructKeyword
);
Parsing\TypeArgumentListParsingTests.cs (1)
868
N(SyntaxKind.
StructKeyword
);
Parsing\UsingDirectiveParsingTests.cs (2)
641
N(SyntaxKind.
StructKeyword
);
693
N(SyntaxKind.
StructKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
86
public static readonly SyntaxToken StructKeyword = Token(SyntaxKind.
StructKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
316
case SyntaxKind.
StructKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
200
var classOrStructKeyword = Token(isRecordClass ? default : SyntaxKind.
StructKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
694
or SyntaxKind.
StructKeyword
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
496
if (token.IsKind(SyntaxKind.
StructKeyword
) && token.Parent is ClassOrStructConstraintSyntax)