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