123 references to RecordKeyword
Microsoft.CodeAnalysis.CSharp (17)
Parser\LanguageParser.cs (8)
1488if (token.ContextualKind == SyntaxKind.RecordKeyword) 1631if (nextToken.ContextualKind == SyntaxKind.RecordKeyword) 1719Debug.Assert(CurrentToken.ContextualKind is SyntaxKind.RecordKeyword or SyntaxKind.ExtensionKeyword); 1730this.CurrentToken.ContextualKind is SyntaxKind.RecordKeyword or SyntaxKind.ExtensionKeyword); 1870if (this.CurrentToken.ContextualKind == SyntaxKind.RecordKeyword) 1881this.PeekToken(1).ContextualKind == SyntaxKind.RecordKeyword && 1959case SyntaxKind.RecordKeyword: 2421if (CurrentToken.ContextualKind == SyntaxKind.RecordKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
145kind = SyntaxKind.RecordKeyword;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
744AddKeyword(SyntaxKind.RecordKeyword); 758AddKeyword(SyntaxKind.RecordKeyword);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
508if (reportIfContextual(SyntaxKind.RecordKeyword, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
Syntax\SyntaxKindFacts.cs (4)
866case SyntaxKind.RecordKeyword: 1292case SyntaxKind.RecordKeyword: 1414return SyntaxKind.RecordKeyword; 1862case SyntaxKind.RecordKeyword:
Syntax\TypeDeclarationSyntax.cs (1)
79return SyntaxKind.RecordKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
81public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336if (!previousToken.IsKind(SyntaxKind.RecordKeyword))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
12internal sealed class RecordKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(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)
11241N(SyntaxKind.RecordKeyword);
Parsing\FileModifierParsingTests.cs (12)
46[InlineData(SyntaxKind.RecordKeyword)] 72[InlineData(SyntaxKind.RecordKeyword)] 199N(SyntaxKind.RecordKeyword); 221N(SyntaxKind.RecordKeyword); 250N(SyntaxKind.RecordKeyword); 498[InlineData(SyntaxKind.RecordKeyword)] 531[InlineData(SyntaxKind.RecordKeyword)] 1450N(SyntaxKind.RecordKeyword); 2776N(SyntaxKind.RecordKeyword); 2874N(SyntaxKind.RecordKeyword); 2969N(SyntaxKind.RecordKeyword); 2992N(SyntaxKind.RecordKeyword);
Parsing\MemberDeclarationParsingTests.cs (28)
9626N(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)] 19992N(SyntaxKind.RecordKeyword); 20044N(SyntaxKind.RecordKeyword); 20116N(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)
81public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336if (!previousToken.IsKind(SyntaxKind.RecordKeyword))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
81public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
336if (!previousToken.IsKind(SyntaxKind.RecordKeyword))