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