143 references to PrivateKeyword
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
72
if (modifier.IsKind(SyntaxKind.
PrivateKeyword
) ||
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
72
if (modifier.IsKind(SyntaxKind.
PrivateKeyword
) ||
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (5)
350
case SyntaxKind.
PrivateKeyword
:
1304
case SyntaxKind.
PrivateKeyword
:
2324
case SyntaxKind.
PrivateKeyword
:
10397
case SyntaxKind.
PrivateKeyword
:
10414
case SyntaxKind.
PrivateKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (2)
396
AddKeyword(SyntaxKind.
PrivateKeyword
);
402
AddKeyword(SyntaxKind.
PrivateKeyword
);
Symbols\Source\ModifierUtils.cs (3)
296
return SyntaxFacts.GetText(SyntaxKind.
PrivateKeyword
);
298
return SyntaxFacts.GetText(SyntaxKind.
PrivateKeyword
) + " " + SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword);
352
case SyntaxKind.
PrivateKeyword
:
Syntax\SyntaxFacts.cs (2)
365
return SyntaxFacts.GetText(
PrivateKeyword
);
367
return SyntaxFacts.GetText(
PrivateKeyword
) + " " + SyntaxFacts.GetText(ProtectedKeyword);
Syntax\SyntaxKindFacts.cs (3)
69
case SyntaxKind.
PrivateKeyword
:
933
return SyntaxKind.
PrivateKeyword
;
1581
case SyntaxKind.
PrivateKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
67
public static readonly SyntaxToken PrivateKeyword = Token(SyntaxKind.
PrivateKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
155
SyntaxKind.
PrivateKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
86
case SyntaxKind.
PrivateKeyword
:
320
case SyntaxKind.
PrivateKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
115
(SyntaxKind.
PrivateKeyword
, Accessibility.Protected) => Accessibility.ProtectedAndInternal,
116
(SyntaxKind.
PrivateKeyword
, _) => Accessibility.Private,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
327
if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
338
else if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
573
SyntaxKind.
PrivateKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
18
SyntaxKind.
PrivateKeyword
,
36
SyntaxKind.
PrivateKeyword
,
54
SyntaxKind.
PrivateKeyword
,
64
SyntaxKind.
PrivateKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (49)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
597
case SyntaxKind.
PrivateKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
150
case SyntaxKind.
PrivateKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
46
case SyntaxKind.
PrivateKeyword
:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (1)
42
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
20
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
20
SyntaxKind.
PrivateKeyword
,
28
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
19
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
18
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
21
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
21
SyntaxKind.
PrivateKeyword
,
34
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
20
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
18
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (1)
68
!precedingModifiers.Contains(SyntaxKind.
PrivateKeyword
);
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
23
SyntaxKind.
PrivateKeyword
,
38
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (2)
20
SyntaxKind.
PrivateKeyword
,
43
return !modifiers.Contains(SyntaxKind.
PrivateKeyword
) || modifiers.Contains(SyntaxKind.ProtectedKeyword);
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (2)
16
: base(SyntaxKind.
PrivateKeyword
)
87
!precedingModifiers.Contains(SyntaxKind.
PrivateKeyword
);
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
59
!precedingModifiers.Contains(SyntaxKind.
PrivateKeyword
);
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
22
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
20
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
34
SyntaxKind.
PrivateKeyword
,
55
SyntaxKind.
PrivateKeyword
,
73
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (1)
42
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
20
SyntaxKind.
PrivateKeyword
,
33
SyntaxKind.
PrivateKeyword
,
48
SyntaxKind.
PrivateKeyword
,
63
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
19
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
20
SyntaxKind.
PrivateKeyword
,
35
SyntaxKind.
PrivateKeyword
,
50
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (3)
21
SyntaxKind.
PrivateKeyword
,
32
SyntaxKind.
PrivateKeyword
,
59
return !modifiers.Contains(SyntaxKind.
PrivateKeyword
) || modifiers.Contains(SyntaxKind.ProtectedKeyword);
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
21
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
21
SyntaxKind.
PrivateKeyword
,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
71
var modifierKinds = new[] { SyntaxKind.
PrivateKeyword
, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword, SyntaxKind.PublicKeyword };
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
45
case SyntaxKind.
PrivateKeyword
:
Snippets\CSharpClassSnippetProvider.cs (1)
31
SyntaxKind.
PrivateKeyword
,
Snippets\CSharpConstructorSnippetProvider.cs (1)
33
SyntaxKind.
PrivateKeyword
,
Snippets\CSharpEnumSnippetProvider.cs (1)
29
SyntaxKind.
PrivateKeyword
,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
29
SyntaxKind.
PrivateKeyword
,
Snippets\CSharpProprSnippetProvider.cs (1)
47
if (precedingModifiers.Any(syntaxKind => syntaxKind is SyntaxKind.
PrivateKeyword
or SyntaxKind.ProtectedKeyword))
Snippets\CSharpStructSnippetProvider.cs (1)
29
SyntaxKind.
PrivateKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Parsing\DeclarationParsingTests.cs (9)
1774
Assert.Equal(SyntaxKind.
PrivateKeyword
, cs.Modifiers[0].Kind());
2721
TestClassMethodModifiers(SyntaxKind.
PrivateKeyword
);
3553
TestClassConstructorWithModifier(SyntaxKind.
PrivateKeyword
);
3742
TestClassFieldModifier(SyntaxKind.
PrivateKeyword
);
3797
TestClassEventFieldModifier(SyntaxKind.
PrivateKeyword
);
4648
TestClassPropertyWithModifier(SyntaxKind.
PrivateKeyword
);
4663
TestClassPropertyWithModifier(SyntaxKind.
PrivateKeyword
);
4843
TestClassEventPropertyWithModifier(SyntaxKind.
PrivateKeyword
);
4856
TestClassEventPropertyWithModifier(SyntaxKind.
PrivateKeyword
);
Parsing\DeclarationScopeParsingTests.cs (2)
14301
N(SyntaxKind.
PrivateKeyword
);
14324
N(SyntaxKind.
PrivateKeyword
);
Parsing\MemberDeclarationParsingTests.cs (30)
43
N(SyntaxKind.
PrivateKeyword
);
10527
N(SyntaxKind.
PrivateKeyword
);
10612
N(SyntaxKind.
PrivateKeyword
);
10720
N(SyntaxKind.
PrivateKeyword
);
10845
N(SyntaxKind.
PrivateKeyword
);
10889
N(SyntaxKind.
PrivateKeyword
);
10904
N(SyntaxKind.
PrivateKeyword
);
11020
N(SyntaxKind.
PrivateKeyword
);
11064
N(SyntaxKind.
PrivateKeyword
);
11079
N(SyntaxKind.
PrivateKeyword
);
11194
N(SyntaxKind.
PrivateKeyword
);
11238
N(SyntaxKind.
PrivateKeyword
);
11253
N(SyntaxKind.
PrivateKeyword
);
11363
N(SyntaxKind.
PrivateKeyword
);
11386
N(SyntaxKind.
PrivateKeyword
);
11489
N(SyntaxKind.
PrivateKeyword
);
11557
N(SyntaxKind.
PrivateKeyword
);
11645
N(SyntaxKind.
PrivateKeyword
);
11675
N(SyntaxKind.
PrivateKeyword
);
11761
N(SyntaxKind.
PrivateKeyword
);
11782
N(SyntaxKind.
PrivateKeyword
);
11813
N(SyntaxKind.
PrivateKeyword
);
11874
N(SyntaxKind.
PrivateKeyword
);
11942
N(SyntaxKind.
PrivateKeyword
);
12004
N(SyntaxKind.
PrivateKeyword
);
12065
N(SyntaxKind.
PrivateKeyword
);
12125
N(SyntaxKind.
PrivateKeyword
);
12195
N(SyntaxKind.
PrivateKeyword
);
12286
N(SyntaxKind.
PrivateKeyword
);
12377
N(SyntaxKind.
PrivateKeyword
);
Parsing\ScriptParsingTests.cs (1)
958
NewModifier_WithOtherModifier("private", SyntaxKind.
PrivateKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
605
case SyntaxKind.
PrivateKeyword
: return Accessibility.Private;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
67
public static readonly SyntaxToken PrivateKeyword = Token(SyntaxKind.
PrivateKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
155
SyntaxKind.
PrivateKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
86
case SyntaxKind.
PrivateKeyword
:
320
case SyntaxKind.
PrivateKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
115
(SyntaxKind.
PrivateKeyword
, Accessibility.Protected) => Accessibility.ProtectedAndInternal,
116
(SyntaxKind.
PrivateKeyword
, _) => Accessibility.Private,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
327
if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
338
else if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
573
SyntaxKind.
PrivateKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
18
SyntaxKind.
PrivateKeyword
,
36
SyntaxKind.
PrivateKeyword
,
54
SyntaxKind.
PrivateKeyword
,
64
SyntaxKind.
PrivateKeyword
,
Microsoft.Interop.ComInterfaceGenerator (2)
ComClassGenerator.cs (1)
93
Token(SyntaxKind.
PrivateKeyword
),
ComInterfaceGenerator.cs (1)
656
.AddModifiers(Token(SyntaxKind.
PrivateKeyword
), Token(SyntaxKind.StaticKeyword)),
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
89
if (tokenList[i].Kind() is SyntaxKind.PublicKeyword or SyntaxKind.InternalKeyword or SyntaxKind.ProtectedKeyword or SyntaxKind.
PrivateKeyword
)
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (1)
1073
else if (modifiers.Any(SyntaxKind.
PrivateKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
22
{ ModifierFlags.Private, SyntaxKind.
PrivateKeyword
},
55
case SyntaxKind.
PrivateKeyword
:
LanguageService\CSharpHelpContextService.cs (2)
430
case SyntaxKind.
PrivateKeyword
when ModifiersContains(token, SyntaxKind.ProtectedKeyword):
431
case SyntaxKind.ProtectedKeyword when ModifiersContains(token, SyntaxKind.
PrivateKeyword
):