116 references to ProtectedKeyword
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (6)
348
case SyntaxKind.
ProtectedKeyword
:
1028
case SyntaxKind.
ProtectedKeyword
:
2009
case SyntaxKind.
ProtectedKeyword
:
8245
case SyntaxKind.
ProtectedKeyword
:
9739
case SyntaxKind.
ProtectedKeyword
:
9756
case SyntaxKind.
ProtectedKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (3)
346
AddKeyword(SyntaxKind.
ProtectedKeyword
);
349
AddKeyword(SyntaxKind.
ProtectedKeyword
);
352
AddKeyword(SyntaxKind.
ProtectedKeyword
);
Symbols\Source\ModifierUtils.cs (4)
291
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
295
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
) + " " + SyntaxFacts.GetText(SyntaxKind.InternalKeyword);
299
return SyntaxFacts.GetText(SyntaxKind.PrivateKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
349
case SyntaxKind.
ProtectedKeyword
:
Syntax\SyntaxFacts.cs (3)
367
return SyntaxFacts.GetText(PrivateKeyword) + " " + SyntaxFacts.GetText(
ProtectedKeyword
);
371
return SyntaxFacts.GetText(
ProtectedKeyword
);
373
return SyntaxFacts.GetText(
ProtectedKeyword
) + " " + SyntaxFacts.GetText(InternalKeyword);
Syntax\SyntaxKindFacts.cs (3)
59
case SyntaxKind.
ProtectedKeyword
:
909
return SyntaxKind.
ProtectedKeyword
;
1549
case SyntaxKind.
ProtectedKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.InternalKeyword))
CSharpAccessibilityFacts.cs (3)
121
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
122
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
123
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
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)
37
case SyntaxKind.
ProtectedKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
CSharpCodeGenerationHelpers.cs (3)
50
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
57
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
63
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
568
SyntaxKind.
ProtectedKeyword
or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
106
case SyntaxKind.
ProtectedKeyword
:
SyntaxKindSet.cs (2)
22
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (44)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
615
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
168
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
45
case SyntaxKind.
ProtectedKeyword
:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
20
SyntaxKind.
ProtectedKeyword
,
31
SyntaxKind.
ProtectedKeyword
,
43
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
20
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
22
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
25
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (2)
19
SyntaxKind.
ProtectedKeyword
,
43
return !modifiers.Contains(SyntaxKind.PrivateKeyword) || modifiers.Contains(SyntaxKind.
ProtectedKeyword
);
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (2)
15
: base(SyntaxKind.
ProtectedKeyword
)
72
!precedingModifiers.Contains(SyntaxKind.
ProtectedKeyword
);
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
58
!precedingModifiers.Contains(SyntaxKind.
ProtectedKeyword
) &&
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
33
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
21
SyntaxKind.
ProtectedKeyword
,
32
SyntaxKind.
ProtectedKeyword
,
43
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (3)
20
SyntaxKind.
ProtectedKeyword
,
33
SyntaxKind.
ProtectedKeyword
,
48
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (2)
21
SyntaxKind.
ProtectedKeyword
,
36
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (3)
20
SyntaxKind.
ProtectedKeyword
,
31
SyntaxKind.
ProtectedKeyword
,
59
return !modifiers.Contains(SyntaxKind.PrivateKeyword) || modifiers.Contains(SyntaxKind.
ProtectedKeyword
);
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.InternalKeyword))
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
72
var modifierKinds = new[] { SyntaxKind.PrivateKeyword, SyntaxKind.
ProtectedKeyword
, SyntaxKind.InternalKeyword, SyntaxKind.PublicKeyword };
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
126
else if (xModifiers.Any(t => t.Kind() == SyntaxKind.
ProtectedKeyword
) && xModifiers.Any(t => t.Kind() == SyntaxKind.InternalKeyword))
134
else if (xModifiers.Any(t => t.Kind() == SyntaxKind.
ProtectedKeyword
))
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
46
case SyntaxKind.
ProtectedKeyword
:
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
30
SyntaxKind.
ProtectedKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Parsing\DeclarationParsingTests.cs (13)
1815
Assert.Equal(SyntaxKind.
ProtectedKeyword
, cs.Modifiers[0].Kind());
1856
Assert.Equal(SyntaxKind.
ProtectedKeyword
, cs.Modifiers[0].Kind());
1899
Assert.Equal(SyntaxKind.
ProtectedKeyword
, cs.Modifiers[1].Kind());
2723
TestClassMethodModifiers(SyntaxKind.
ProtectedKeyword
);
2731
TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.
ProtectedKeyword
, SyntaxKind.VirtualKeyword);
2732
TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.VirtualKeyword, SyntaxKind.
ProtectedKeyword
);
3554
TestClassConstructorWithModifier(SyntaxKind.
ProtectedKeyword
);
3743
TestClassFieldModifier(SyntaxKind.
ProtectedKeyword
);
3798
TestClassEventFieldModifier(SyntaxKind.
ProtectedKeyword
);
4649
TestClassPropertyWithModifier(SyntaxKind.
ProtectedKeyword
);
4664
TestClassPropertyWithModifier(SyntaxKind.
ProtectedKeyword
);
4844
TestClassEventPropertyWithModifier(SyntaxKind.
ProtectedKeyword
);
4857
TestClassEventPropertyWithModifier(SyntaxKind.
ProtectedKeyword
);
Parsing\ScriptParsingTests.cs (1)
957
NewModifier_WithOtherModifier("protected", SyntaxKind.
ProtectedKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
1676
list.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
1679
list.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
1684
list.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
CSharpAccessibilityFacts.cs (3)
121
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
122
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
123
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
CSharpCodeGenerationHelpers.cs (3)
50
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
57
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
63
tokens.Add(SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
));
CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
CSharpIdeCodeStyleOptions.cs (1)
19
SyntaxKind.PublicKeyword, SyntaxKind.PrivateKeyword, SyntaxKind.
ProtectedKeyword
, SyntaxKind.InternalKeyword,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
607
case SyntaxKind.
ProtectedKeyword
: return Accessibility.Protected;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
37
case SyntaxKind.
ProtectedKeyword
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
568
SyntaxKind.
ProtectedKeyword
or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
106
case SyntaxKind.
ProtectedKeyword
:
SyntaxKindSet.cs (2)
22
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (2)
1064
else if (modifiers.Any(t => t.Kind() == SyntaxKind.
ProtectedKeyword
) && modifiers.Any(t => t.Kind() == SyntaxKind.InternalKeyword))
1072
else if (modifiers.Any(t => t.Kind() == SyntaxKind.
ProtectedKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
21
{ ModifierFlags.Protected, SyntaxKind.
ProtectedKeyword
},
50
case SyntaxKind.
ProtectedKeyword
:
LanguageService\CSharpHelpContextService.cs (4)
412
case SyntaxKind.PrivateKeyword when ModifiersContains(token, SyntaxKind.
ProtectedKeyword
):
413
case SyntaxKind.
ProtectedKeyword
when ModifiersContains(token, SyntaxKind.PrivateKeyword):
417
case SyntaxKind.
ProtectedKeyword
when ModifiersContains(token, SyntaxKind.InternalKeyword):
418
case SyntaxKind.InternalKeyword when ModifiersContains(token, SyntaxKind.
ProtectedKeyword
):