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