39 references to ClosedKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
1351case SyntaxKind.ClosedKeyword: 3004this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.AsyncKeyword or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword or SyntaxKind.ClosedKeyword) &&
Symbols\Source\ModifierUtils.cs (2)
355return SyntaxFacts.GetText(SyntaxKind.ClosedKeyword); 409case SyntaxKind.ClosedKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
535|| reportIfContextual(SyntaxKind.ClosedKeyword, MessageID.IDS_FeatureClosedClasses, ErrorCode.ERR_ClosedTypeNameDisallowed)
Syntax\SyntaxKindFacts.cs (4)
1240for (int i = (int)SyntaxKind.YieldKeyword; i <= (int)SyntaxKind.ClosedKeyword; i++) 1304case SyntaxKind.ClosedKeyword: 1437return SyntaxKind.ClosedKeyword; 1889case SyntaxKind.ClosedKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
25public static readonly SyntaxToken ClosedKeyword = Token(SyntaxKind.ClosedKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
170SyntaxKind.ClosedKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
89case SyntaxKind.ClosedKeyword: 118if (token.HasMatchingText(SyntaxKind.ClosedKeyword)) 120modifierKind = SyntaxKind.ClosedKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
141SyntaxKind.ClosedKeyword => Modifiers.Closed,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
612if (modifierTokens.Contains(SyntaxKind.ClosedKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
15SyntaxKind.ClosedKeyword,
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
22SyntaxKind.ClosedKeyword,
Completion\KeywordRecommenders\ClosedKeywordRecommender.cs (2)
14internal sealed class ClosedKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.ClosedKeyword) 17.Where(s => s is not (SyntaxKind.ClosedKeyword or SyntaxKind.AbstractKeyword or SyntaxKind.SealedKeyword or SyntaxKind.StaticKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.RefKeyword))
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
22SyntaxKind.ClosedKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
22SyntaxKind.ClosedKeyword,
Snippets\CSharpClassSnippetProvider.cs (1)
29SyntaxKind.ClosedKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
25public static readonly SyntaxToken ClosedKeyword = Token(SyntaxKind.ClosedKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
170SyntaxKind.ClosedKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
89case SyntaxKind.ClosedKeyword: 118if (token.HasMatchingText(SyntaxKind.ClosedKeyword)) 120modifierKind = SyntaxKind.ClosedKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
141SyntaxKind.ClosedKeyword => Modifiers.Closed,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
612if (modifierTokens.Contains(SyntaxKind.ClosedKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
15SyntaxKind.ClosedKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
25public static readonly SyntaxToken ClosedKeyword = Token(SyntaxKind.ClosedKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
170SyntaxKind.ClosedKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
89case SyntaxKind.ClosedKeyword: 118if (token.HasMatchingText(SyntaxKind.ClosedKeyword)) 120modifierKind = SyntaxKind.ClosedKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
141SyntaxKind.ClosedKeyword => Modifiers.Closed,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
612if (modifierTokens.Contains(SyntaxKind.ClosedKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
15SyntaxKind.ClosedKeyword,