121 references to RecordKeyword
Microsoft.CodeAnalysis.CSharp (17)
Parser\LanguageParser.cs (8)
1480if (token.ContextualKind == SyntaxKind.RecordKeyword) 1623if (nextToken.ContextualKind == SyntaxKind.RecordKeyword) 1710Debug.Assert(CurrentToken.ContextualKind == SyntaxKind.RecordKeyword); 1721this.CurrentToken.ContextualKind == SyntaxKind.RecordKeyword); 1852if (this.CurrentToken.ContextualKind == SyntaxKind.RecordKeyword) 1863this.PeekToken(1).ContextualKind == SyntaxKind.RecordKeyword && 1938case SyntaxKind.RecordKeyword: 2366if (CurrentToken.ContextualKind == SyntaxKind.RecordKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
145kind = SyntaxKind.RecordKeyword;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
699AddKeyword(SyntaxKind.RecordKeyword); 713AddKeyword(SyntaxKind.RecordKeyword);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
498if (reportIfContextual(SyntaxKind.RecordKeyword, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
Syntax\SyntaxKindFacts.cs (4)
841case SyntaxKind.RecordKeyword: 1224case SyntaxKind.RecordKeyword: 1345return SyntaxKind.RecordKeyword; 1791case SyntaxKind.RecordKeyword:
Syntax\TypeDeclarationSyntax.cs (1)
79return SyntaxKind.RecordKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
351if (!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)
2961N(SyntaxKind.RecordKeyword); 3042N(SyntaxKind.RecordKeyword); 3132N(SyntaxKind.RecordKeyword); 3229N(SyntaxKind.RecordKeyword); 3359N(SyntaxKind.RecordKeyword); 3449N(SyntaxKind.RecordKeyword); 3485N(SyntaxKind.RecordKeyword); 3617N(SyntaxKind.RecordKeyword); 3698N(SyntaxKind.RecordKeyword); 3788N(SyntaxKind.RecordKeyword); 3884N(SyntaxKind.RecordKeyword); 4002N(SyntaxKind.RecordKeyword); 4092N(SyntaxKind.RecordKeyword); 4128N(SyntaxKind.RecordKeyword);
Parsing\DeclarationScopeParsingTests.cs (1)
11229N(SyntaxKind.RecordKeyword);
Parsing\FileModifierParsingTests.cs (12)
45[InlineData(SyntaxKind.RecordKeyword)] 71[InlineData(SyntaxKind.RecordKeyword)] 198N(SyntaxKind.RecordKeyword); 220N(SyntaxKind.RecordKeyword); 249N(SyntaxKind.RecordKeyword); 497[InlineData(SyntaxKind.RecordKeyword)] 530[InlineData(SyntaxKind.RecordKeyword)] 1452N(SyntaxKind.RecordKeyword); 2781N(SyntaxKind.RecordKeyword); 2879N(SyntaxKind.RecordKeyword); 2974N(SyntaxKind.RecordKeyword); 2997N(SyntaxKind.RecordKeyword);
Parsing\MemberDeclarationParsingTests.cs (28)
9623N(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)] 18488N(SyntaxKind.RecordKeyword); 18540N(SyntaxKind.RecordKeyword); 18612N(SyntaxKind.RecordKeyword);
Parsing\RecordParsing.cs (41)
77N(SyntaxKind.RecordKeyword); 174N(SyntaxKind.RecordKeyword); 215N(SyntaxKind.RecordKeyword); 234N(SyntaxKind.RecordKeyword); 404N(SyntaxKind.RecordKeyword); 417N(SyntaxKind.RecordKeyword); 422N(SyntaxKind.RecordKeyword); 435N(SyntaxKind.RecordKeyword); 460N(SyntaxKind.RecordKeyword); 504N(SyntaxKind.RecordKeyword); 544N(SyntaxKind.RecordKeyword); 702N(SyntaxKind.RecordKeyword); 760N(SyntaxKind.RecordKeyword); 917N(SyntaxKind.RecordKeyword); 962N(SyntaxKind.RecordKeyword); 1010N(SyntaxKind.RecordKeyword); 2346N(SyntaxKind.RecordKeyword); 2449N(SyntaxKind.RecordKeyword); 2689N(SyntaxKind.RecordKeyword); 2826N(SyntaxKind.RecordKeyword); 2869N(SyntaxKind.RecordKeyword); 3021N(SyntaxKind.RecordKeyword); 3074N(SyntaxKind.RecordKeyword); 3144N(SyntaxKind.RecordKeyword); 3217N(SyntaxKind.RecordKeyword); 3262N(SyntaxKind.RecordKeyword); 3367N(SyntaxKind.RecordKeyword); 3412N(SyntaxKind.RecordKeyword); 3547N(SyntaxKind.RecordKeyword); 3568N(SyntaxKind.RecordKeyword); 3589N(SyntaxKind.RecordKeyword); 3609N(SyntaxKind.RecordKeyword); 3643N(SyntaxKind.RecordKeyword); 3678N(SyntaxKind.RecordKeyword); 3700N(SyntaxKind.RecordKeyword); 3732N(SyntaxKind.RecordKeyword); 3854N(SyntaxKind.RecordKeyword); 3928N(SyntaxKind.RecordKeyword); 4059N(SyntaxKind.RecordKeyword); 4102N(SyntaxKind.RecordKeyword); 4184N(SyntaxKind.RecordKeyword);
Parsing\TopLevelStatementsParsingTests.cs (1)
3154N(SyntaxKind.RecordKeyword);
Syntax\SyntaxFactoryTests.cs (2)
604default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.Identifier("R"), null, null, null, default, default); 613default, 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)
73public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
351if (!previousToken.IsKind(SyntaxKind.RecordKeyword))