123 references to RecordKeyword
Microsoft.CodeAnalysis.CSharp (17)
Parser\LanguageParser.cs (8)
1488
if (token.ContextualKind == SyntaxKind.
RecordKeyword
)
1631
if (nextToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1719
Debug.Assert(CurrentToken.ContextualKind is SyntaxKind.
RecordKeyword
or SyntaxKind.ExtensionKeyword);
1730
this.CurrentToken.ContextualKind is SyntaxKind.
RecordKeyword
or SyntaxKind.ExtensionKeyword);
1870
if (this.CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1881
this.PeekToken(1).ContextualKind == SyntaxKind.
RecordKeyword
&&
1959
case SyntaxKind.
RecordKeyword
:
2421
if (CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
145
kind = SyntaxKind.
RecordKeyword
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
744
AddKeyword(SyntaxKind.
RecordKeyword
);
758
AddKeyword(SyntaxKind.
RecordKeyword
);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
508
if (reportIfContextual(SyntaxKind.
RecordKeyword
, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
Syntax\SyntaxKindFacts.cs (4)
866
case SyntaxKind.
RecordKeyword
:
1292
case SyntaxKind.
RecordKeyword
:
1414
return SyntaxKind.
RecordKeyword
;
1862
case SyntaxKind.
RecordKeyword
:
Syntax\TypeDeclarationSyntax.cs (1)
79
return SyntaxKind.
RecordKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
81
public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.
RecordKeyword
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
12
internal sealed class RecordKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
RecordKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (99)
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (14)
2961
N(SyntaxKind.
RecordKeyword
);
3042
N(SyntaxKind.
RecordKeyword
);
3132
N(SyntaxKind.
RecordKeyword
);
3229
N(SyntaxKind.
RecordKeyword
);
3359
N(SyntaxKind.
RecordKeyword
);
3449
N(SyntaxKind.
RecordKeyword
);
3485
N(SyntaxKind.
RecordKeyword
);
3617
N(SyntaxKind.
RecordKeyword
);
3698
N(SyntaxKind.
RecordKeyword
);
3788
N(SyntaxKind.
RecordKeyword
);
3884
N(SyntaxKind.
RecordKeyword
);
4002
N(SyntaxKind.
RecordKeyword
);
4092
N(SyntaxKind.
RecordKeyword
);
4128
N(SyntaxKind.
RecordKeyword
);
Parsing\DeclarationScopeParsingTests.cs (1)
11241
N(SyntaxKind.
RecordKeyword
);
Parsing\FileModifierParsingTests.cs (12)
46
[InlineData(SyntaxKind.
RecordKeyword
)]
72
[InlineData(SyntaxKind.
RecordKeyword
)]
199
N(SyntaxKind.
RecordKeyword
);
221
N(SyntaxKind.
RecordKeyword
);
250
N(SyntaxKind.
RecordKeyword
);
498
[InlineData(SyntaxKind.
RecordKeyword
)]
531
[InlineData(SyntaxKind.
RecordKeyword
)]
1450
N(SyntaxKind.
RecordKeyword
);
2776
N(SyntaxKind.
RecordKeyword
);
2874
N(SyntaxKind.
RecordKeyword
);
2969
N(SyntaxKind.
RecordKeyword
);
2992
N(SyntaxKind.
RecordKeyword
);
Parsing\MemberDeclarationParsingTests.cs (28)
9626
N(SyntaxKind.
RecordKeyword
);
10477
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10478
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10479
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10560
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10561
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10562
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10663
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10664
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10665
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10778
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10779
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10780
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10934
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10935
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10936
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11109
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11110
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11111
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11282
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11283
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11284
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11413
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11414
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11415
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
19992
N(SyntaxKind.
RecordKeyword
);
20044
N(SyntaxKind.
RecordKeyword
);
20116
N(SyntaxKind.
RecordKeyword
);
Parsing\RecordParsing.cs (41)
77
N(SyntaxKind.
RecordKeyword
);
174
N(SyntaxKind.
RecordKeyword
);
215
N(SyntaxKind.
RecordKeyword
);
234
N(SyntaxKind.
RecordKeyword
);
404
N(SyntaxKind.
RecordKeyword
);
417
N(SyntaxKind.
RecordKeyword
);
422
N(SyntaxKind.
RecordKeyword
);
435
N(SyntaxKind.
RecordKeyword
);
460
N(SyntaxKind.
RecordKeyword
);
504
N(SyntaxKind.
RecordKeyword
);
544
N(SyntaxKind.
RecordKeyword
);
702
N(SyntaxKind.
RecordKeyword
);
760
N(SyntaxKind.
RecordKeyword
);
917
N(SyntaxKind.
RecordKeyword
);
962
N(SyntaxKind.
RecordKeyword
);
1010
N(SyntaxKind.
RecordKeyword
);
2346
N(SyntaxKind.
RecordKeyword
);
2449
N(SyntaxKind.
RecordKeyword
);
2689
N(SyntaxKind.
RecordKeyword
);
2826
N(SyntaxKind.
RecordKeyword
);
2869
N(SyntaxKind.
RecordKeyword
);
3021
N(SyntaxKind.
RecordKeyword
);
3074
N(SyntaxKind.
RecordKeyword
);
3144
N(SyntaxKind.
RecordKeyword
);
3217
N(SyntaxKind.
RecordKeyword
);
3262
N(SyntaxKind.
RecordKeyword
);
3367
N(SyntaxKind.
RecordKeyword
);
3412
N(SyntaxKind.
RecordKeyword
);
3547
N(SyntaxKind.
RecordKeyword
);
3568
N(SyntaxKind.
RecordKeyword
);
3589
N(SyntaxKind.
RecordKeyword
);
3609
N(SyntaxKind.
RecordKeyword
);
3643
N(SyntaxKind.
RecordKeyword
);
3678
N(SyntaxKind.
RecordKeyword
);
3700
N(SyntaxKind.
RecordKeyword
);
3732
N(SyntaxKind.
RecordKeyword
);
3854
N(SyntaxKind.
RecordKeyword
);
3928
N(SyntaxKind.
RecordKeyword
);
4059
N(SyntaxKind.
RecordKeyword
);
4102
N(SyntaxKind.
RecordKeyword
);
4184
N(SyntaxKind.
RecordKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
3154
N(SyntaxKind.
RecordKeyword
);
Syntax\SyntaxFactoryTests.cs (2)
604
default, default, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), SyntaxFactory.Identifier("R"), null, null, null, default, default);
613
default, default, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), SyntaxFactory.Identifier("R"), null, null, null, default,
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
81
public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.
RecordKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
81
public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.
RecordKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))