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