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)
1949
Diagnostic(RudeEditKind.ModifiersUpdate, "readonly struct X", SyntaxFacts.GetText(SyntaxKind.
StructKeyword
)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (215)
Generated\Syntax.Test.xml.Generated.cs (8)
506
=> 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);
551
=> InternalSyntaxFactory.RefStructConstraint(InternalSyntaxFactory.Token(SyntaxKind.RefKeyword), InternalSyntaxFactory.Token(SyntaxKind.
StructKeyword
));
2788
Assert.Equal(SyntaxKind.
StructKeyword
, node.Keyword.Kind);
2999
Assert.Equal(SyntaxKind.
StructKeyword
, node.StructKeyword.Kind);
10722
=> 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));
10767
=> SyntaxFactory.RefStructConstraint(SyntaxFactory.Token(SyntaxKind.RefKeyword), SyntaxFactory.Token(SyntaxKind.
StructKeyword
));
13004
Assert.Equal(SyntaxKind.
StructKeyword
, node.Keyword.Kind());
13215
Assert.Equal(SyntaxKind.
StructKeyword
, node.StructKeyword.Kind());
IncrementalParsing\IncrementalParsingTests.cs (1)
212
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
);
8984
N(SyntaxKind.
StructKeyword
);
9056
N(SyntaxKind.
StructKeyword
);
9321
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9351
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9371
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9395
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9427
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9464
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9500
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9535
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9577
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9616
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9671
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9719
[InlineDataAttribute(SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
9756
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9790
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9817
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9857
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9897
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9928
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
9973
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10022
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10065
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10122
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10182
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10236
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10304
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10369
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10421
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10470
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10522
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10575
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10609
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10653
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10702
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10750
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10812
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10854
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10906
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
10963
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11018
N(@struct ? SyntaxKind.
StructKeyword
: SyntaxKind.ClassKeyword);
11083
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)
10472
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10516
N(SyntaxKind.
StructKeyword
);
10555
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10601
N(SyntaxKind.
StructKeyword
);
10658
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10709
N(SyntaxKind.
StructKeyword
);
10773
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
10834
N(SyntaxKind.
StructKeyword
);
10929
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11009
N(SyntaxKind.
StructKeyword
);
11104
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11183
N(SyntaxKind.
StructKeyword
);
11277
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11352
N(SyntaxKind.
StructKeyword
);
11408
[InlineData("struct", SyntaxKind.StructDeclaration, SyntaxKind.
StructKeyword
)]
11479
N(SyntaxKind.
StructKeyword
);
Parsing\RecordParsing.cs (23)
2690
N(SyntaxKind.
StructKeyword
);
2790
N(SyntaxKind.
StructKeyword
);
2827
N(SyntaxKind.
StructKeyword
);
2870
N(SyntaxKind.
StructKeyword
);
3218
M(SyntaxKind.
StructKeyword
);
3263
M(SyntaxKind.
StructKeyword
);
3304
N(SyntaxKind.
StructKeyword
);
3324
N(SyntaxKind.
StructKeyword
);
3344
N(SyntaxKind.
StructKeyword
);
3548
N(SyntaxKind.
StructKeyword
);
3610
N(SyntaxKind.
StructKeyword
);
3644
N(SyntaxKind.
StructKeyword
);
3679
N(SyntaxKind.
StructKeyword
);
3701
N(SyntaxKind.
StructKeyword
);
3733
N(SyntaxKind.
StructKeyword
);
3779
N(SyntaxKind.
StructKeyword
);
3829
N(SyntaxKind.
StructKeyword
);
3855
N(SyntaxKind.
StructKeyword
);
3977
N(SyntaxKind.
StructKeyword
);
4040
N(SyntaxKind.
StructKeyword
);
4060
N(SyntaxKind.
StructKeyword
);
4103
N(SyntaxKind.
StructKeyword
);
4185
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)