11 references to PrivateKeyword
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ExtractMethod\ExtractMethodMiscellaneousTests.cs (2)
51var newRoot = rootWithAnnotation.ReplaceToken(publicToken, PrivateKeyword); 92var newRoot = rootWithAnnotation.ReplaceToken(publicToken, PrivateKeyword);
Microsoft.CodeAnalysis.CSharp.Features (4)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
76.WithModifiers([PrivateKeyword, .. fieldSyntax.Modifiers.Where(m => !modifierKinds.Contains(m.Kind()))])
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (3)
189return [PrivateKeyword, ConstKeyword]; 193return [PrivateKeyword, ReadOnlyKeyword]; 197return [PrivateKeyword, StaticKeyword, ReadOnlyKeyword];
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
154var t2 = PrivateKeyword;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1696Accessibility.Private => [PrivateKeyword], 1699Accessibility.ProtectedAndInternal => [PrivateKeyword, ProtectedKeyword],
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
56tokens.Add(PrivateKeyword); 59tokens.Add(PrivateKeyword);