123 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)
351
case SyntaxKind.
ProtectedKeyword
:
1302
case SyntaxKind.
ProtectedKeyword
:
2325
case SyntaxKind.
ProtectedKeyword
:
10396
case SyntaxKind.
ProtectedKeyword
:
10413
case SyntaxKind.
ProtectedKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (3)
404
AddKeyword(SyntaxKind.
ProtectedKeyword
);
407
AddKeyword(SyntaxKind.
ProtectedKeyword
);
410
AddKeyword(SyntaxKind.
ProtectedKeyword
);
Symbols\Source\ModifierUtils.cs (4)
290
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
294
return SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
) + " " + SyntaxFacts.GetText(SyntaxKind.InternalKeyword);
298
return SyntaxFacts.GetText(SyntaxKind.PrivateKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.
ProtectedKeyword
);
348
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
:
937
return SyntaxKind.
ProtectedKeyword
;
1585
case SyntaxKind.
ProtectedKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
69
public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.
ProtectedKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
156
SyntaxKind.
ProtectedKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
85
case SyntaxKind.
ProtectedKeyword
:
323
case SyntaxKind.
ProtectedKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
121
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
122
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
123
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
572
SyntaxKind.
ProtectedKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
19
SyntaxKind.
ProtectedKeyword
,
37
SyntaxKind.
ProtectedKeyword
,
65
SyntaxKind.
ProtectedKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (50)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
601
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
168
case SyntaxKind.
ProtectedKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
44
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
,
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)
20
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
18
SyntaxKind.
ProtectedKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
35
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\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
,
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)
29
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpConstructorSnippetProvider.cs (1)
34
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpEnumSnippetProvider.cs (1)
30
SyntaxKind.
ProtectedKeyword
,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
30
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)
30
SyntaxKind.
ProtectedKeyword
,
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.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 (13)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
606
case SyntaxKind.
ProtectedKeyword
: return Accessibility.Protected;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
69
public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.
ProtectedKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
156
SyntaxKind.
ProtectedKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
85
case SyntaxKind.
ProtectedKeyword
:
323
case SyntaxKind.
ProtectedKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
121
(SyntaxKind.
ProtectedKeyword
, Accessibility.Private) => Accessibility.ProtectedAndInternal,
122
(SyntaxKind.
ProtectedKeyword
, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
123
(SyntaxKind.
ProtectedKeyword
, _) => Accessibility.Protected,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
320
else if (ContainsToken(modifiers, SyntaxKind.
ProtectedKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
572
SyntaxKind.
ProtectedKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
19
SyntaxKind.
ProtectedKeyword
,
37
SyntaxKind.
ProtectedKeyword
,
65
SyntaxKind.
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))
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (2)
1061
else if (modifiers.Any(SyntaxKind.
ProtectedKeyword
) && modifiers.Any(SyntaxKind.InternalKeyword))
1069
else if (modifiers.Any(SyntaxKind.
ProtectedKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
20
{ ModifierFlags.Protected, SyntaxKind.
ProtectedKeyword
},
49
case SyntaxKind.
ProtectedKeyword
:
LanguageService\CSharpHelpContextService.cs (4)
430
case SyntaxKind.PrivateKeyword when ModifiersContains(token, SyntaxKind.
ProtectedKeyword
):
431
case SyntaxKind.
ProtectedKeyword
when ModifiersContains(token, SyntaxKind.PrivateKeyword):
435
case SyntaxKind.
ProtectedKeyword
when ModifiersContains(token, SyntaxKind.InternalKeyword):
436
case SyntaxKind.InternalKeyword when ModifiersContains(token, SyntaxKind.
ProtectedKeyword
):