121 references to RecordKeyword
Microsoft.CodeAnalysis.CSharp (17)
Parser\LanguageParser.cs (8)
1480
if (token.ContextualKind == SyntaxKind.
RecordKeyword
)
1623
if (nextToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1710
Debug.Assert(CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
);
1721
this.CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
);
1852
if (this.CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1863
this.PeekToken(1).ContextualKind == SyntaxKind.
RecordKeyword
&&
1938
case SyntaxKind.
RecordKeyword
:
2366
if (CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
145
kind = SyntaxKind.
RecordKeyword
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
699
AddKeyword(SyntaxKind.
RecordKeyword
);
713
AddKeyword(SyntaxKind.
RecordKeyword
);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
498
if (reportIfContextual(SyntaxKind.
RecordKeyword
, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
Syntax\SyntaxKindFacts.cs (4)
841
case SyntaxKind.
RecordKeyword
:
1224
case SyntaxKind.
RecordKeyword
:
1345
return SyntaxKind.
RecordKeyword
;
1791
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)
73
public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.
RecordKeyword
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
351
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
30
: base(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)
11229
N(SyntaxKind.
RecordKeyword
);
Parsing\FileModifierParsingTests.cs (12)
45
[InlineData(SyntaxKind.
RecordKeyword
)]
71
[InlineData(SyntaxKind.
RecordKeyword
)]
198
N(SyntaxKind.
RecordKeyword
);
220
N(SyntaxKind.
RecordKeyword
);
249
N(SyntaxKind.
RecordKeyword
);
497
[InlineData(SyntaxKind.
RecordKeyword
)]
530
[InlineData(SyntaxKind.
RecordKeyword
)]
1452
N(SyntaxKind.
RecordKeyword
);
2781
N(SyntaxKind.
RecordKeyword
);
2879
N(SyntaxKind.
RecordKeyword
);
2974
N(SyntaxKind.
RecordKeyword
);
2997
N(SyntaxKind.
RecordKeyword
);
Parsing\MemberDeclarationParsingTests.cs (28)
9623
N(SyntaxKind.
RecordKeyword
);
10474
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10475
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10476
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10557
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10558
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10559
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10660
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10661
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10662
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10775
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10776
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10777
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10931
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
10932
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
10933
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11106
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11107
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11108
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11279
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11280
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11281
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11410
[InlineData("record", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
11411
[InlineData("record struct", SyntaxKind.RecordStructDeclaration, SyntaxKind.
RecordKeyword
)]
11412
[InlineData("record class", SyntaxKind.RecordDeclaration, SyntaxKind.
RecordKeyword
)]
18488
N(SyntaxKind.
RecordKeyword
);
18540
N(SyntaxKind.
RecordKeyword
);
18612
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)
73
public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.
RecordKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
351
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))