80 references to FileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
1067case SyntaxKind.FileKeyword: 2586this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.AsyncKeyword or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword) &&
Symbols\Source\ModifierUtils.cs (2)
327return SyntaxFacts.GetText(SyntaxKind.FileKeyword); 379case SyntaxKind.FileKeyword:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
485|| reportIfContextual(SyntaxKind.FileKeyword, MessageID.IDS_FeatureFileTypes, ErrorCode.ERR_FileTypeNameDisallowed)
Syntax\SyntaxKindFacts.cs (4)
1141for (int i = (int)SyntaxKind.YieldKeyword; i <= (int)SyntaxKind.FileKeyword; i++) 1196case SyntaxKind.FileKeyword: 1321return SyntaxKind.FileKeyword; 1765case SyntaxKind.FileKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
CSharpAccessibilityFacts.cs (2)
37return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.Any(SyntaxKind.FileKeyword); 144SyntaxKind.FileKeyword => DeclarationModifiers.File,
CSharpIdeCodeStyleOptions.cs (1)
20SyntaxKind.FileKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
54case SyntaxKind.FileKeyword: 67if (token.HasMatchingText(SyntaxKind.FileKeyword)) 69result.Add(SyntaxKind.FileKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
606if (container is VariableDeclarationSyntax && modifierTokens.Contains(SyntaxKind.FileKeyword))
NamedTypeGenerator.cs (1)
279tokens.Add(SyntaxFactory.Token(SyntaxKind.FileKeyword));
SyntaxKindSet.cs (1)
17SyntaxKind.FileKeyword,
Microsoft.CodeAnalysis.CSharp.Features (13)
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)
22SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
23SyntaxKind.FileKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
24SyntaxKind.FileKeyword,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
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 (10)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1691list.Add(SyntaxFactory.Token(SyntaxKind.FileKeyword));
CSharpAccessibilityFacts.cs (2)
37return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.Any(SyntaxKind.FileKeyword); 144SyntaxKind.FileKeyword => DeclarationModifiers.File,
CSharpIdeCodeStyleOptions.cs (1)
20SyntaxKind.FileKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
54case SyntaxKind.FileKeyword: 67if (token.HasMatchingText(SyntaxKind.FileKeyword)) 69result.Add(SyntaxKind.FileKeyword);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
606if (container is VariableDeclarationSyntax && modifierTokens.Contains(SyntaxKind.FileKeyword))
NamedTypeGenerator.cs (1)
279tokens.Add(SyntaxFactory.Token(SyntaxKind.FileKeyword));
SyntaxKindSet.cs (1)
17SyntaxKind.FileKeyword,