113 references to PrivateKeyword
Microsoft.CodeAnalysis.CSharp (16)
Parser\LanguageParser.cs (6)
347
case SyntaxKind.
PrivateKeyword
:
1030
case SyntaxKind.
PrivateKeyword
:
2008
case SyntaxKind.
PrivateKeyword
:
8246
case SyntaxKind.
PrivateKeyword
:
9740
case SyntaxKind.
PrivateKeyword
:
9757
case SyntaxKind.
PrivateKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (2)
338
AddKeyword(SyntaxKind.
PrivateKeyword
);
344
AddKeyword(SyntaxKind.
PrivateKeyword
);
Symbols\Source\ModifierUtils.cs (3)
297
return SyntaxFacts.GetText(SyntaxKind.
PrivateKeyword
);
299
return SyntaxFacts.GetText(SyntaxKind.
PrivateKeyword
) + " " + SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword);
353
case SyntaxKind.
PrivateKeyword
:
Syntax\SyntaxFacts.cs (2)
365
return SyntaxFacts.GetText(
PrivateKeyword
);
367
return SyntaxFacts.GetText(
PrivateKeyword
) + " " + SyntaxFacts.GetText(ProtectedKeyword);
Syntax\SyntaxKindFacts.cs (3)
58
case SyntaxKind.
PrivateKeyword
:
905
return SyntaxKind.
PrivateKeyword
;
1545
case SyntaxKind.
PrivateKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpAccessibilityFacts.cs (2)
115
(SyntaxKind.
PrivateKeyword
, Accessibility.Protected) => Accessibility.ProtectedAndInternal,
116
(SyntaxKind.
PrivateKeyword
, _) => Accessibility.Private,
CSharpIdeCodeStyleOptions.cs (1)
19
SyntaxKind.PublicKeyword, SyntaxKind.
PrivateKeyword
, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
38
case SyntaxKind.
PrivateKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
CSharpCodeGenerationHelpers.cs (2)
53
tokens.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
56
tokens.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
CSharpDeclarationComparer.cs (2)
327
if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
338
else if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
569
SyntaxKind.
PrivateKeyword
or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
103
case SyntaxKind.
PrivateKeyword
:
SyntaxKindSet.cs (3)
21
SyntaxKind.
PrivateKeyword
,
39
SyntaxKind.
PrivateKeyword
,
57
SyntaxKind.
PrivateKeyword
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ExtractMethod\MiscTests.cs (2)
51
var newRoot = rootWithAnnotation.ReplaceToken(publicToken, SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
96
var newRoot = rootWithAnnotation.ReplaceToken(publicToken, SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
Microsoft.CodeAnalysis.CSharp.Features (48)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
611
case SyntaxKind.
PrivateKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
150
case SyntaxKind.
PrivateKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
47
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)
24
SyntaxKind.
PrivateKeyword
,
39
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)
20
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
20
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
32
SyntaxKind.
PrivateKeyword
,
53
SyntaxKind.
PrivateKeyword
,
71
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (1)
42
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
19
SyntaxKind.
PrivateKeyword
,
32
SyntaxKind.
PrivateKeyword
,
47
SyntaxKind.
PrivateKeyword
,
62
SyntaxKind.
PrivateKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
18
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 (2)
72
var modifierKinds = new[] { SyntaxKind.
PrivateKeyword
, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword, SyntaxKind.PublicKeyword };
76
var modifiers = SpecializedCollections.SingletonEnumerable(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
))
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (3)
187
return SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
), SyntaxFactory.Token(SyntaxKind.ConstKeyword));
191
return SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
), SyntaxFactory.Token(SyntaxKind.ReadOnlyKeyword));
195
return SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
), SyntaxFactory.Token(SyntaxKind.StaticKeyword), SyntaxFactory.Token(SyntaxKind.ReadOnlyKeyword));
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
45
case SyntaxKind.
PrivateKeyword
:
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
32
SyntaxKind.
PrivateKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
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)
14712
N(SyntaxKind.
PrivateKeyword
);
14735
N(SyntaxKind.
PrivateKeyword
);
Parsing\MemberDeclarationParsingTests.cs (1)
43
N(SyntaxKind.
PrivateKeyword
);
Parsing\ScriptParsingTests.cs (1)
958
NewModifier_WithOtherModifier("private", SyntaxKind.
PrivateKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1673
list.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
1683
list.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
CSharpAccessibilityFacts.cs (2)
115
(SyntaxKind.
PrivateKeyword
, Accessibility.Protected) => Accessibility.ProtectedAndInternal,
116
(SyntaxKind.
PrivateKeyword
, _) => Accessibility.Private,
CSharpCodeGenerationHelpers.cs (2)
53
tokens.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
56
tokens.Add(SyntaxFactory.Token(SyntaxKind.
PrivateKeyword
));
CSharpDeclarationComparer.cs (2)
327
if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
338
else if (ContainsToken(modifiers, SyntaxKind.
PrivateKeyword
))
CSharpIdeCodeStyleOptions.cs (1)
19
SyntaxKind.PublicKeyword, SyntaxKind.
PrivateKeyword
, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
606
case SyntaxKind.
PrivateKeyword
: return Accessibility.Private;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
38
case SyntaxKind.
PrivateKeyword
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
569
SyntaxKind.
PrivateKeyword
or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
103
case SyntaxKind.
PrivateKeyword
:
SyntaxKindSet.cs (3)
21
SyntaxKind.
PrivateKeyword
,
39
SyntaxKind.
PrivateKeyword
,
57
SyntaxKind.
PrivateKeyword
,
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (1)
1076
else if (modifiers.Any(t => t.Kind() == SyntaxKind.
PrivateKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
23
{ ModifierFlags.Private, SyntaxKind.
PrivateKeyword
},
56
case SyntaxKind.
PrivateKeyword
:
LanguageService\CSharpHelpContextService.cs (2)
412
case SyntaxKind.
PrivateKeyword
when ModifiersContains(token, SyntaxKind.ProtectedKeyword):
413
case SyntaxKind.ProtectedKeyword when ModifiersContains(token, SyntaxKind.
PrivateKeyword
):