118 references to ProtectedKeyword
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
73
modifier.IsKind(SyntaxKind.
ProtectedKeyword
) ||
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
73
modifier.IsKind(SyntaxKind.
ProtectedKeyword
) ||
Microsoft.CodeAnalysis.CSharp (18)
Parser\LanguageParser.cs (5)
350
case SyntaxKind.
ProtectedKeyword
:
1310
case SyntaxKind.
ProtectedKeyword
:
2453
case SyntaxKind.
ProtectedKeyword
:
10936
case SyntaxKind.
ProtectedKeyword
:
10953
case SyntaxKind.
ProtectedKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (3)
404
AddKeyword(SyntaxKind.
ProtectedKeyword
);
407
AddKeyword(SyntaxKind.
ProtectedKeyword
);
410
AddKeyword(SyntaxKind.
ProtectedKeyword
);
Symbols\Source\ModifierUtils.cs (4)
323
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
327
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
) + " " + SyntaxFacts.GetText(SyntaxKind.InternalKeyword);
331
return SyntaxFacts.GetText(SyntaxKind.PrivateKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
385
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)
70
case SyntaxKind.
ProtectedKeyword
:
967
return SyntaxKind.
ProtectedKeyword
;
1668
case SyntaxKind.
ProtectedKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.InternalKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
80
public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.
ProtectedKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
161
SyntaxKind.
ProtectedKeyword
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84
case SyntaxKind.
ProtectedKeyword
:
331
case SyntaxKind.
ProtectedKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
116
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
117
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
118
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
571
SyntaxKind.
ProtectedKeyword
or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
22
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
68
SyntaxKind.
ProtectedKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (51)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
690
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
162
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
38
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)
24
SyntaxKind.
ProtectedKeyword
,
39
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (2)
19
SyntaxKind.
ProtectedKeyword
,
38
return !modifiers.Contains(SyntaxKind.PrivateKeyword) || modifiers.Contains(SyntaxKind.
ProtectedKeyword
);
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (2)
12
internal sealed class ProtectedKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
ProtectedKeyword
)
67
!precedingModifiers.Contains(SyntaxKind.
ProtectedKeyword
);
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
53
!precedingModifiers.Contains(SyntaxKind.
ProtectedKeyword
) &&
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
20
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
31
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
21
SyntaxKind.
ProtectedKeyword
,
32
SyntaxKind.
ProtectedKeyword
,
43
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (3)
21
SyntaxKind.
ProtectedKeyword
,
34
SyntaxKind.
ProtectedKeyword
,
49
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
20
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\UnionKeywordRecommender.cs (1)
19
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (2)
21
SyntaxKind.
ProtectedKeyword
,
37
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (3)
20
SyntaxKind.
ProtectedKeyword
,
31
SyntaxKind.
ProtectedKeyword
,
54
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
,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
71
var modifierKinds = new[] { SyntaxKind.PrivateKeyword, SyntaxKind.
ProtectedKeyword
, SyntaxKind.InternalKeyword, SyntaxKind.PublicKeyword };
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
126
else if (xModifiers.Any(SyntaxKind.
ProtectedKeyword
) && xModifiers.Any(SyntaxKind.InternalKeyword))
134
else if (xModifiers.Any(SyntaxKind.
ProtectedKeyword
))
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
46
case SyntaxKind.
ProtectedKeyword
:
Snippets\CSharpClassSnippetProvider.cs (1)
25
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpConstructorSnippetProvider.cs (1)
34
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpEnumSnippetProvider.cs (1)
26
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
26
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpProprSnippetProvider.cs (2)
43
if (precedingModifiers.IsSupersetOf([SyntaxKind.
ProtectedKeyword
, SyntaxKind.InternalKeyword]))
47
if (precedingModifiers.Any(syntaxKind => syntaxKind is SyntaxKind.PrivateKeyword or SyntaxKind.
ProtectedKeyword
))
Snippets\CSharpStructSnippetProvider.cs (1)
26
SyntaxKind.
ProtectedKeyword
,
src\roslyn\src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.InternalKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
FindSymbols\FindSymbolsUtilities.cs (1)
21
case SyntaxKind.
ProtectedKeyword
: return Accessibility.Protected;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
80
public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.
ProtectedKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
161
SyntaxKind.
ProtectedKeyword
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84
case SyntaxKind.
ProtectedKeyword
:
331
case SyntaxKind.
ProtectedKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
116
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
117
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
118
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
571
SyntaxKind.
ProtectedKeyword
or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
22
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
68
SyntaxKind.
ProtectedKeyword
,
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Intermediate\CommonModifiers.cs (2)
42
GetText(CSharpSyntaxKind.
ProtectedKeyword
)];
45
GetText(CSharpSyntaxKind.
ProtectedKeyword
),
Language\Legacy\NativeCSharpTokenizer.cs (1)
75
CSharpSyntaxKind.
ProtectedKeyword
,
Microsoft.Gen.Logging.Unit.Tests (3)
ParserUtilitiesTests.cs (3)
33
SyntaxFactory.Token(SyntaxKind.
ProtectedKeyword
),
53
var result = ParserUtilities.PropertyHasModifier(symbolMock.Object, SyntaxKind.
ProtectedKeyword
, CancellationToken.None);
74
var result = ParserUtilities.PropertyHasModifier(symbolMock.Object, SyntaxKind.
ProtectedKeyword
, CancellationToken.None);
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
89
if (tokenList[i].Kind() is SyntaxKind.PublicKeyword or SyntaxKind.InternalKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.PrivateKeyword)
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
153
else if (mod.IsKind(SyntaxKind.PublicKeyword) || mod.IsKind(SyntaxKind.
ProtectedKeyword
) || mod.IsKind(SyntaxKind.InternalKeyword))
Roslyn.Diagnostics.CSharp.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
80
public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.
ProtectedKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
161
SyntaxKind.
ProtectedKeyword
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84
case SyntaxKind.
ProtectedKeyword
:
331
case SyntaxKind.
ProtectedKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
116
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
117
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
118
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
571
SyntaxKind.
ProtectedKeyword
or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
22
SyntaxKind.
ProtectedKeyword
,
40
SyntaxKind.
ProtectedKeyword
,
68
SyntaxKind.
ProtectedKeyword
,
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
220
where modifier.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.PrivateKeyword or SyntaxKind.
ProtectedKeyword
or SyntaxKind.InternalKeyword or SyntaxKind.StaticKeyword