95 references to FileKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
1341case SyntaxKind.FileKeyword: 2902this.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 (49)
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 (39)
56N(SyntaxKind.FileKeyword); 81N(SyntaxKind.FileKeyword); 109N(SyntaxKind.FileKeyword); 197N(SyntaxKind.FileKeyword); 218N(SyntaxKind.FileKeyword); 248N(SyntaxKind.FileKeyword); 459N(SyntaxKind.FileKeyword); 482N(SyntaxKind.FileKeyword); 515N(SyntaxKind.FileKeyword); 547N(SyntaxKind.FileKeyword); 576N(SyntaxKind.FileKeyword); 598N(SyntaxKind.FileKeyword); 639N(SyntaxKind.FileKeyword); 672N(SyntaxKind.FileKeyword); 709N(SyntaxKind.FileKeyword); 753N(SyntaxKind.FileKeyword); 818N(SyntaxKind.FileKeyword); 869N(SyntaxKind.FileKeyword); 920N(SyntaxKind.FileKeyword); 967N(SyntaxKind.FileKeyword); 1025N(SyntaxKind.FileKeyword); 1248N(SyntaxKind.FileKeyword); 1332N(SyntaxKind.FileKeyword); 1422N(SyntaxKind.FileKeyword); 1868N(SyntaxKind.FileKeyword); 1877N(SyntaxKind.FileKeyword); 1906N(SyntaxKind.FileKeyword); 1927N(SyntaxKind.FileKeyword); 2472N(SyntaxKind.FileKeyword); 2500N(SyntaxKind.FileKeyword); 2588N(SyntaxKind.FileKeyword); 2683N(SyntaxKind.FileKeyword); 2735N(SyntaxKind.FileKeyword); 2780N(SyntaxKind.FileKeyword); 2829N(SyntaxKind.FileKeyword); 2878N(SyntaxKind.FileKeyword); 2927N(SyntaxKind.FileKeyword); 2973N(SyntaxKind.FileKeyword); 2996N(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))