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