51 references to RequiredKeyword
Microsoft.CodeAnalysis.CSharp (12)
Declarations\DeclarationTreeBuilder.cs (1)
997return modifiers.Any((int)SyntaxKind.RequiredKeyword);
Parser\LanguageParser.cs (2)
1338case SyntaxKind.RequiredKeyword: 2901this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.AsyncKeyword or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword) &&
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
964AddKeyword(SyntaxKind.RequiredKeyword);
Symbols\Source\ModifierUtils.cs (2)
322return SyntaxFacts.GetText(SyntaxKind.RequiredKeyword); 374case SyntaxKind.RequiredKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
499|| reportIfContextual(SyntaxKind.RequiredKeyword, MessageID.IDS_FeatureRequiredMembers, ErrorCode.ERR_RequiredNameDisallowed)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
236diagnostics.Add(ErrorCode.ERR_BadMemberFlag, errorLocation, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
Symbols\Source\SourcePropertySymbol.cs (1)
483diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
Syntax\SyntaxKindFacts.cs (3)
1227case SyntaxKind.RequiredKeyword: 1351return SyntaxKind.RequiredKeyword; 1797case SyntaxKind.RequiredKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
75public static readonly SyntaxToken RequiredKeyword = Token(SyntaxKind.RequiredKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
164SyntaxKind.RequiredKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
101case SyntaxKind.RequiredKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
145SyntaxKind.RequiredKeyword => DeclarationModifiers.Required,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
39SyntaxKind.RequiredKeyword,
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
133case SyntaxKind.RequiredKeyword:
Completion\KeywordRecommenders\RequiredKeywordRecommender.cs (2)
16private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers.Where(s => s is not (SyntaxKind.RequiredKeyword or SyntaxKind.StaticKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.ConstKeyword)).ToSet(); 21: base(SyntaxKind.RequiredKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (25)
Parsing\MemberDeclarationParsingTests.cs (25)
1205N(SyntaxKind.RequiredKeyword); 1264N(SyntaxKind.RequiredKeyword); 1312N(SyntaxKind.RequiredKeyword); 1313N(SyntaxKind.RequiredKeyword); 1331N(SyntaxKind.RequiredKeyword); 1332N(SyntaxKind.RequiredKeyword); 1347N(SyntaxKind.RequiredKeyword); 1374N(SyntaxKind.RequiredKeyword); 1427N(SyntaxKind.RequiredKeyword); 1472N(SyntaxKind.RequiredKeyword); 1473N(SyntaxKind.RequiredKeyword); 1486N(SyntaxKind.RequiredKeyword); 1538N(SyntaxKind.RequiredKeyword); 1563N(SyntaxKind.RequiredKeyword); 1610N(SyntaxKind.RequiredKeyword); 1719N(SyntaxKind.RequiredKeyword); 1750N(SyntaxKind.RequiredKeyword); 1776N(SyntaxKind.RequiredKeyword); 1804N(SyntaxKind.RequiredKeyword); 1824N(SyntaxKind.RequiredKeyword); 1862N(SyntaxKind.RequiredKeyword); 2104N(SyntaxKind.RequiredKeyword); 2112N(SyntaxKind.RequiredKeyword); 2140N(SyntaxKind.RequiredKeyword); 2160N(SyntaxKind.RequiredKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
75public static readonly SyntaxToken RequiredKeyword = Token(SyntaxKind.RequiredKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
164SyntaxKind.RequiredKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
101case SyntaxKind.RequiredKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
145SyntaxKind.RequiredKeyword => DeclarationModifiers.Required,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
39SyntaxKind.RequiredKeyword,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
404case SyntaxKind.RequiredKeyword: