83 references to RecordKeyword
Microsoft.CodeAnalysis.CSharp (16)
Parser\LanguageParser.cs (8)
1207
if (token.ContextualKind == SyntaxKind.
RecordKeyword
)
1350
if (nextToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1437
Debug.Assert(CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
);
1450
this.CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
);
1581
if (this.CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
1592
this.PeekToken(1).ContextualKind == SyntaxKind.
RecordKeyword
&&
1667
case SyntaxKind.
RecordKeyword
:
2051
if (CurrentToken.ContextualKind == SyntaxKind.
RecordKeyword
)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
693
AddKeyword(SyntaxKind.
RecordKeyword
);
707
AddKeyword(SyntaxKind.
RecordKeyword
);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
483
if (reportIfContextual(SyntaxKind.
RecordKeyword
, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
Syntax\SyntaxKindFacts.cs (4)
813
case SyntaxKind.
RecordKeyword
:
1191
case SyntaxKind.
RecordKeyword
:
1311
return SyntaxKind.
RecordKeyword
;
1755
case SyntaxKind.
RecordKeyword
:
Syntax\TypeDeclarationSyntax.cs (1)
79
return SyntaxKind.
RecordKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordEngine.cs (1)
291
var recordKeyword = SyntaxFactory.Token(SyntaxKind.
RecordKeyword
);
CSharpSyntaxContext.cs (1)
348
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))
NamedTypeGenerator.cs (1)
200
SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), classOrStructKeyword, namedType.Name.ToIdentifierToken(),
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
30
: base(SyntaxKind.
RecordKeyword
)
ConvertToRecordEngine.cs (1)
291
var recordKeyword = SyntaxFactory.Token(SyntaxKind.
RecordKeyword
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (58)
Parsing\DeclarationScopeParsingTests.cs (1)
11563
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 (1)
9634
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
);
2196
N(SyntaxKind.
RecordKeyword
);
2299
N(SyntaxKind.
RecordKeyword
);
2539
N(SyntaxKind.
RecordKeyword
);
2676
N(SyntaxKind.
RecordKeyword
);
2719
N(SyntaxKind.
RecordKeyword
);
2871
N(SyntaxKind.
RecordKeyword
);
2924
N(SyntaxKind.
RecordKeyword
);
2994
N(SyntaxKind.
RecordKeyword
);
3067
N(SyntaxKind.
RecordKeyword
);
3112
N(SyntaxKind.
RecordKeyword
);
3217
N(SyntaxKind.
RecordKeyword
);
3262
N(SyntaxKind.
RecordKeyword
);
3397
N(SyntaxKind.
RecordKeyword
);
3418
N(SyntaxKind.
RecordKeyword
);
3439
N(SyntaxKind.
RecordKeyword
);
3459
N(SyntaxKind.
RecordKeyword
);
3493
N(SyntaxKind.
RecordKeyword
);
3528
N(SyntaxKind.
RecordKeyword
);
3550
N(SyntaxKind.
RecordKeyword
);
3582
N(SyntaxKind.
RecordKeyword
);
3704
N(SyntaxKind.
RecordKeyword
);
3778
N(SyntaxKind.
RecordKeyword
);
3909
N(SyntaxKind.
RecordKeyword
);
3952
N(SyntaxKind.
RecordKeyword
);
4034
N(SyntaxKind.
RecordKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
3151
N(SyntaxKind.
RecordKeyword
);
Syntax\SyntaxFactoryTests.cs (2)
592
default, default, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), SyntaxFactory.Identifier("R"), null, null, null, default, default);
601
default, default, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), SyntaxFactory.Identifier("R"), null, null, null, default,
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
700
? SyntaxFactory.RecordDeclaration(default, modifierList, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), nameToken, typeParameterList, null, baseTypeList, default, typeMembers)
747
? SyntaxFactory.RecordDeclaration(default, modifierList, SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), nameToken, typeParameterList, null, baseTypeList, default, structMembers).WithClassOrStructKeyword(SyntaxFactory.Token(SyntaxKind.StructKeyword))
CSharpSyntaxContext.cs (1)
348
if (!previousToken.IsKind(SyntaxKind.
RecordKeyword
))
NamedTypeGenerator.cs (1)
200
SyntaxFactory.Token(SyntaxKind.
RecordKeyword
), classOrStructKeyword, namedType.Name.ToIdentifierToken(),