11 references to PrivateKeyword
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ExtractMethod\ExtractMethodMiscellaneousTests.cs (2)
51
var newRoot = rootWithAnnotation.ReplaceToken(publicToken,
PrivateKeyword
);
92
var 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)
189
return [
PrivateKeyword
, ConstKeyword];
193
return [
PrivateKeyword
, ReadOnlyKeyword];
197
return [
PrivateKeyword
, StaticKeyword, ReadOnlyKeyword];
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
154
var t2 =
PrivateKeyword
;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1696
Accessibility.Private => [
PrivateKeyword
],
1699
Accessibility.ProtectedAndInternal => [
PrivateKeyword
, ProtectedKeyword],
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
56
tokens.Add(
PrivateKeyword
);
59
tokens.Add(
PrivateKeyword
);