95 references to FileKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
1340
case SyntaxKind.
FileKeyword
:
2901
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)
32
public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.
FileKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
154
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 (49)
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 (39)
56
N(SyntaxKind.
FileKeyword
);
81
N(SyntaxKind.
FileKeyword
);
109
N(SyntaxKind.
FileKeyword
);
197
N(SyntaxKind.
FileKeyword
);
218
N(SyntaxKind.
FileKeyword
);
248
N(SyntaxKind.
FileKeyword
);
459
N(SyntaxKind.
FileKeyword
);
482
N(SyntaxKind.
FileKeyword
);
515
N(SyntaxKind.
FileKeyword
);
547
N(SyntaxKind.
FileKeyword
);
576
N(SyntaxKind.
FileKeyword
);
598
N(SyntaxKind.
FileKeyword
);
639
N(SyntaxKind.
FileKeyword
);
672
N(SyntaxKind.
FileKeyword
);
709
N(SyntaxKind.
FileKeyword
);
753
N(SyntaxKind.
FileKeyword
);
818
N(SyntaxKind.
FileKeyword
);
869
N(SyntaxKind.
FileKeyword
);
920
N(SyntaxKind.
FileKeyword
);
967
N(SyntaxKind.
FileKeyword
);
1025
N(SyntaxKind.
FileKeyword
);
1248
N(SyntaxKind.
FileKeyword
);
1332
N(SyntaxKind.
FileKeyword
);
1422
N(SyntaxKind.
FileKeyword
);
1868
N(SyntaxKind.
FileKeyword
);
1877
N(SyntaxKind.
FileKeyword
);
1906
N(SyntaxKind.
FileKeyword
);
1927
N(SyntaxKind.
FileKeyword
);
2472
N(SyntaxKind.
FileKeyword
);
2500
N(SyntaxKind.
FileKeyword
);
2588
N(SyntaxKind.
FileKeyword
);
2683
N(SyntaxKind.
FileKeyword
);
2735
N(SyntaxKind.
FileKeyword
);
2780
N(SyntaxKind.
FileKeyword
);
2829
N(SyntaxKind.
FileKeyword
);
2878
N(SyntaxKind.
FileKeyword
);
2927
N(SyntaxKind.
FileKeyword
);
2973
N(SyntaxKind.
FileKeyword
);
2996
N(SyntaxKind.
FileKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
32
public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.
FileKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
154
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))