54 references to RequiredKeyword
Microsoft.CodeAnalysis.CSharp (12)
Declarations\DeclarationTreeBuilder.cs (1)
897return modifiers.Any((int)SyntaxKind.RequiredKeyword);
Parser\LanguageParser.cs (2)
1065case SyntaxKind.RequiredKeyword: 2586this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.AsyncKeyword or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword) &&
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
974AddKeyword(SyntaxKind.RequiredKeyword);
Symbols\Source\ModifierUtils.cs (2)
323return SyntaxFacts.GetText(SyntaxKind.RequiredKeyword); 375case SyntaxKind.RequiredKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
484|| 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)
368diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
Syntax\SyntaxKindFacts.cs (3)
1194case SyntaxKind.RequiredKeyword: 1317return SyntaxKind.RequiredKeyword; 1761case SyntaxKind.RequiredKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAccessibilityFacts.cs (1)
145SyntaxKind.RequiredKeyword => DeclarationModifiers.Required,
CSharpIdeCodeStyleOptions.cs (1)
27SyntaxKind.RequiredKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
53case SyntaxKind.RequiredKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
FieldGenerator.cs (1)
143tokens.Add(SyntaxFactory.Token(SyntaxKind.RequiredKeyword));
PropertyGenerator.cs (1)
394tokens.Add(SyntaxFactory.Token(SyntaxKind.RequiredKeyword));
SyntaxKindSet.cs (1)
42SyntaxKind.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)
1211N(SyntaxKind.RequiredKeyword); 1270N(SyntaxKind.RequiredKeyword); 1318N(SyntaxKind.RequiredKeyword); 1319N(SyntaxKind.RequiredKeyword); 1337N(SyntaxKind.RequiredKeyword); 1338N(SyntaxKind.RequiredKeyword); 1353N(SyntaxKind.RequiredKeyword); 1380N(SyntaxKind.RequiredKeyword); 1433N(SyntaxKind.RequiredKeyword); 1478N(SyntaxKind.RequiredKeyword); 1479N(SyntaxKind.RequiredKeyword); 1492N(SyntaxKind.RequiredKeyword); 1544N(SyntaxKind.RequiredKeyword); 1569N(SyntaxKind.RequiredKeyword); 1616N(SyntaxKind.RequiredKeyword); 1725N(SyntaxKind.RequiredKeyword); 1756N(SyntaxKind.RequiredKeyword); 1782N(SyntaxKind.RequiredKeyword); 1810N(SyntaxKind.RequiredKeyword); 1830N(SyntaxKind.RequiredKeyword); 1868N(SyntaxKind.RequiredKeyword); 2110N(SyntaxKind.RequiredKeyword); 2118N(SyntaxKind.RequiredKeyword); 2146N(SyntaxKind.RequiredKeyword); 2166N(SyntaxKind.RequiredKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1730list.Add(SyntaxFactory.Token(SyntaxKind.RequiredKeyword));
CSharpAccessibilityFacts.cs (1)
145SyntaxKind.RequiredKeyword => DeclarationModifiers.Required,
CSharpIdeCodeStyleOptions.cs (1)
27SyntaxKind.RequiredKeyword,
FieldGenerator.cs (1)
143tokens.Add(SyntaxFactory.Token(SyntaxKind.RequiredKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
53case SyntaxKind.RequiredKeyword:
PropertyGenerator.cs (1)
394tokens.Add(SyntaxFactory.Token(SyntaxKind.RequiredKeyword));
SyntaxKindSet.cs (1)
42SyntaxKind.RequiredKeyword,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
391case SyntaxKind.RequiredKeyword: