96 references to FileKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
1341case SyntaxKind.FileKeyword: 2920this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.AsyncKeyword or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword) &&
Symbols\Source\ModifierUtils.cs (2)
326return SyntaxFacts.GetText(SyntaxKind.FileKeyword); 378case SyntaxKind.FileKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
500|| reportIfContextual(SyntaxKind.FileKeyword, MessageID.IDS_FeatureFileTypes, ErrorCode.ERR_FileTypeNameDisallowed)
Syntax\SyntaxKindFacts.cs (3)
1229case SyntaxKind.FileKeyword: 1355return SyntaxKind.FileKeyword; 1801case SyntaxKind.FileKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
33public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.FileKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
158SyntaxKind.FileKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
102case SyntaxKind.FileKeyword: 111if (token.HasMatchingText(SyntaxKind.FileKeyword)) 113modifierKind = SyntaxKind.FileKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
37return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.Any(SyntaxKind.FileKeyword); 144SyntaxKind.FileKeyword => DeclarationModifiers.File,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
606if (container is VariableDeclarationSyntax && modifierTokens.Contains(SyntaxKind.FileKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
14SyntaxKind.FileKeyword,
Microsoft.CodeAnalysis.CSharp.Features (17)
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (1)
45SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
25SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\FileKeywordRecommender.cs (2)
17.Where(s => s != SyntaxKind.FileKeyword && !SyntaxFacts.IsAccessibilityModifier(s)) 21: base(SyntaxKind.FileKeyword)
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (1)
65!precedingModifiers.Contains(SyntaxKind.FileKeyword) &&
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
84!precedingModifiers.Contains(SyntaxKind.FileKeyword) &&
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (1)
70!precedingModifiers.Contains(SyntaxKind.FileKeyword) &&
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
55!precedingModifiers.Contains(SyntaxKind.FileKeyword) &&
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
26SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (1)
45SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (1)
23SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
24SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
24SyntaxKind.FileKeyword,
Snippets\CSharpClassSnippetProvider.cs (1)
36SyntaxKind.FileKeyword,
Snippets\CSharpEnumSnippetProvider.cs (1)
31SyntaxKind.FileKeyword,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
32SyntaxKind.FileKeyword,
Snippets\CSharpStructSnippetProvider.cs (1)
34SyntaxKind.FileKeyword,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (50)
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (10)
3448N(SyntaxKind.FileKeyword); 3484N(SyntaxKind.FileKeyword); 3523N(SyntaxKind.FileKeyword); 3540N(SyntaxKind.FileKeyword); 3558N(SyntaxKind.FileKeyword); 4091N(SyntaxKind.FileKeyword); 4127N(SyntaxKind.FileKeyword); 4166N(SyntaxKind.FileKeyword); 4183N(SyntaxKind.FileKeyword); 4201N(SyntaxKind.FileKeyword);
Parsing\FileModifierParsingTests.cs (40)
57N(SyntaxKind.FileKeyword); 82N(SyntaxKind.FileKeyword); 110N(SyntaxKind.FileKeyword); 198N(SyntaxKind.FileKeyword); 219N(SyntaxKind.FileKeyword); 249N(SyntaxKind.FileKeyword); 460N(SyntaxKind.FileKeyword); 483N(SyntaxKind.FileKeyword); 516N(SyntaxKind.FileKeyword); 548N(SyntaxKind.FileKeyword); 577N(SyntaxKind.FileKeyword); 599N(SyntaxKind.FileKeyword); 640N(SyntaxKind.FileKeyword); 673N(SyntaxKind.FileKeyword); 710N(SyntaxKind.FileKeyword); 754N(SyntaxKind.FileKeyword); 819N(SyntaxKind.FileKeyword); 870N(SyntaxKind.FileKeyword); 921N(SyntaxKind.FileKeyword); 968N(SyntaxKind.FileKeyword); 1026N(SyntaxKind.FileKeyword); 1249N(SyntaxKind.FileKeyword); 1333N(SyntaxKind.FileKeyword); 1423N(SyntaxKind.FileKeyword); 1869N(SyntaxKind.FileKeyword); 1878N(SyntaxKind.FileKeyword); 1907N(SyntaxKind.FileKeyword); 1928N(SyntaxKind.FileKeyword); 2473N(SyntaxKind.FileKeyword); 2501N(SyntaxKind.FileKeyword); 2589N(SyntaxKind.FileKeyword); 2684N(SyntaxKind.FileKeyword); 2736N(SyntaxKind.FileKeyword); 2781N(SyntaxKind.FileKeyword); 2830N(SyntaxKind.FileKeyword); 2879N(SyntaxKind.FileKeyword); 2928N(SyntaxKind.FileKeyword); 2974N(SyntaxKind.FileKeyword); 2997N(SyntaxKind.FileKeyword); 3641N(SyntaxKind.FileKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
33public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.FileKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
158SyntaxKind.FileKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
102case SyntaxKind.FileKeyword: 111if (token.HasMatchingText(SyntaxKind.FileKeyword)) 113modifierKind = SyntaxKind.FileKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
37return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.Any(SyntaxKind.FileKeyword); 144SyntaxKind.FileKeyword => DeclarationModifiers.File,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
606if (container is VariableDeclarationSyntax && modifierTokens.Contains(SyntaxKind.FileKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
14SyntaxKind.FileKeyword,
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
83Token(SyntaxKind.FileKeyword),
ComInterfaceGenerator.cs (2)
479.WithModifiers(TokenList(Token(SyntaxKind.FileKeyword), Token(SyntaxKind.UnsafeKeyword), Token(SyntaxKind.PartialKeyword))); 631.AddModifiers(Token(SyntaxKind.FileKeyword), Token(SyntaxKind.UnsafeKeyword))