145 references to InternalKeyword
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
74
modifier.IsKind(SyntaxKind.
InternalKeyword
) ||
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
74
modifier.IsKind(SyntaxKind.
InternalKeyword
) ||
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (5)
347
case SyntaxKind.
InternalKeyword
:
1307
case SyntaxKind.
InternalKeyword
:
2373
case SyntaxKind.
InternalKeyword
:
10735
case SyntaxKind.
InternalKeyword
:
10752
case SyntaxKind.
InternalKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (2)
399
AddKeyword(SyntaxKind.
InternalKeyword
);
412
AddKeyword(SyntaxKind.
InternalKeyword
);
Symbols\Source\ModifierUtils.cs (3)
318
return SyntaxFacts.GetText(SyntaxKind.
InternalKeyword
);
320
return SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.
InternalKeyword
);
376
case SyntaxKind.
InternalKeyword
:
Syntax\SyntaxFacts.cs (2)
369
return SyntaxFacts.GetText(
InternalKeyword
);
373
return SyntaxFacts.GetText(ProtectedKeyword) + " " + SyntaxFacts.GetText(
InternalKeyword
);
Syntax\SyntaxKindFacts.cs (3)
71
case SyntaxKind.
InternalKeyword
:
962
return SyntaxKind.
InternalKeyword
;
1654
case SyntaxKind.
InternalKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
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)
51
public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.
InternalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162
SyntaxKind.
InternalKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
83
case SyntaxKind.
InternalKeyword
:
321
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
113
(SyntaxKind.
InternalKeyword
, Accessibility.Protected) => Accessibility.ProtectedOrInternal,
114
(SyntaxKind.
InternalKeyword
, _) => Accessibility.Internal,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
322
if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
334
else if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
569
while (targetToken.Kind() is SyntaxKind.
InternalKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
15
SyntaxKind.
InternalKeyword
,
32
SyntaxKind.
InternalKeyword
,
50
SyntaxKind.
InternalKeyword
,
66
SyntaxKind.
InternalKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (54)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
692
case SyntaxKind.
InternalKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
153
case SyntaxKind.
InternalKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
39
case SyntaxKind.
InternalKeyword
:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
17
SyntaxKind.
InternalKeyword
,
28
SyntaxKind.
InternalKeyword
,
39
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
19
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
19
SyntaxKind.
InternalKeyword
,
27
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
17
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
16
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
20
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
17
SyntaxKind.
InternalKeyword
,
31
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
19
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
16
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (2)
12
internal sealed class InternalKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
InternalKeyword
)
62
!precedingModifiers.Contains(SyntaxKind.
InternalKeyword
) &&
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
21
SyntaxKind.
InternalKeyword
,
36
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
17
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
81
!precedingModifiers.Contains(SyntaxKind.
InternalKeyword
) &&
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
52
!precedingModifiers.Contains(SyntaxKind.
InternalKeyword
) &&
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
21
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
19
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
26
SyntaxKind.
InternalKeyword
,
47
SyntaxKind.
InternalKeyword
,
65
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
17
SyntaxKind.
InternalKeyword
,
28
SyntaxKind.
InternalKeyword
,
39
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
17
SyntaxKind.
InternalKeyword
,
30
SyntaxKind.
InternalKeyword
,
45
SyntaxKind.
InternalKeyword
,
60
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
17
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
17
SyntaxKind.
InternalKeyword
,
31
SyntaxKind.
InternalKeyword
,
47
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
17
SyntaxKind.
InternalKeyword
,
28
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
20
SyntaxKind.
InternalKeyword
,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
20
SyntaxKind.
InternalKeyword
,
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
))
130
else if (xModifiers.Any(SyntaxKind.
InternalKeyword
))
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
47
case SyntaxKind.
InternalKeyword
:
Snippets\CSharpClassSnippetProvider.cs (1)
30
SyntaxKind.
InternalKeyword
,
Snippets\CSharpConstructorSnippetProvider.cs (1)
35
SyntaxKind.
InternalKeyword
,
Snippets\CSharpEnumSnippetProvider.cs (1)
27
SyntaxKind.
InternalKeyword
,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
27
SyntaxKind.
InternalKeyword
,
Snippets\CSharpProprSnippetProvider.cs (1)
43
if (precedingModifiers.IsSupersetOf([SyntaxKind.ProtectedKeyword, SyntaxKind.
InternalKeyword
]))
Snippets\CSharpStructSnippetProvider.cs (1)
27
SyntaxKind.
InternalKeyword
,
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 (18)
Parsing\DeclarationParsingTests.cs (14)
837
Assert.Equal(SyntaxKind.
InternalKeyword
, cs.Modifiers[0].Kind());
1857
Assert.Equal(SyntaxKind.
InternalKeyword
, cs.Modifiers[1].Kind());
1898
Assert.Equal(SyntaxKind.
InternalKeyword
, cs.Modifiers[0].Kind());
1981
Assert.Equal(SyntaxKind.
InternalKeyword
, cs.Modifiers[0].Kind());
2722
TestClassMethodModifiers(SyntaxKind.
InternalKeyword
);
2731
TestClassMethodModifiers(SyntaxKind.
InternalKeyword
, SyntaxKind.ProtectedKeyword, SyntaxKind.VirtualKeyword);
2732
TestClassMethodModifiers(SyntaxKind.
InternalKeyword
, SyntaxKind.VirtualKeyword, SyntaxKind.ProtectedKeyword);
3609
TestClassConstructorWithModifier(SyntaxKind.
InternalKeyword
);
3798
TestClassFieldModifier(SyntaxKind.
InternalKeyword
);
3853
TestClassEventFieldModifier(SyntaxKind.
InternalKeyword
);
4704
TestClassPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4719
TestClassPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4899
TestClassEventPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4912
TestClassEventPropertyWithModifier(SyntaxKind.
InternalKeyword
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (1)
6980
[InlineData("internal", SyntaxKind.
InternalKeyword
)]
Parsing\ScriptParsingTests.cs (1)
1163
NewModifier_WithOtherModifier("internal", SyntaxKind.
InternalKeyword
);
Syntax\SyntaxNodeCacheTests.cs (2)
37
var child0 = new SyntaxTokenWithTrivia(SyntaxKind.
InternalKeyword
, null, null);
60
var child0 = new SyntaxTokenWithTrivia(SyntaxKind.
InternalKeyword
, null, null);
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
FindSymbols\FindSymbolsUtilities.cs (1)
22
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
51
public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.
InternalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162
SyntaxKind.
InternalKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
83
case SyntaxKind.
InternalKeyword
:
321
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
113
(SyntaxKind.
InternalKeyword
, Accessibility.Protected) => Accessibility.ProtectedOrInternal,
114
(SyntaxKind.
InternalKeyword
, _) => Accessibility.Internal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
322
if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
334
else if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
569
while (targetToken.Kind() is SyntaxKind.
InternalKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
15
SyntaxKind.
InternalKeyword
,
32
SyntaxKind.
InternalKeyword
,
50
SyntaxKind.
InternalKeyword
,
66
SyntaxKind.
InternalKeyword
,
Microsoft.Interop.ComInterfaceGenerator (4)
VirtualMethodPointerStubGenerator.cs (1)
167
.WithModifiers(TokenList(Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.StaticKeyword)))
VtableIndexStubGenerator.cs (3)
30
TokenList(Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.PartialKeyword)),
431
.WithModifiers(TokenList(Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.PartialKeyword)))
443
.WithModifiers(TokenList(Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.StaticKeyword), Token(SyntaxKind.UnsafeKeyword)))
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (2)
145
.WithModifiers(TokenList(new[] { Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.StaticKeyword), Token(SyntaxKind.UnsafeKeyword) }))
287
Token(SyntaxKind.
InternalKeyword
)
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 (6)
CodeModel\CSharpCodeModelService.cs (2)
1061
else if (modifiers.Any(SyntaxKind.ProtectedKeyword) && modifiers.Any(SyntaxKind.
InternalKeyword
))
1065
else if (modifiers.Any(SyntaxKind.
InternalKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
21
{ ModifierFlags.Internal, SyntaxKind.
InternalKeyword
},
52
case SyntaxKind.
InternalKeyword
:
LanguageService\CSharpHelpContextService.cs (2)
431
case SyntaxKind.ProtectedKeyword when ModifiersContains(token, SyntaxKind.
InternalKeyword
):
432
case SyntaxKind.
InternalKeyword
when ModifiersContains(token, SyntaxKind.ProtectedKeyword):
Roslyn.Diagnostics.CSharp.Analyzers (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
51
public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.
InternalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162
SyntaxKind.
InternalKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
83
case SyntaxKind.
InternalKeyword
:
321
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
113
(SyntaxKind.
InternalKeyword
, Accessibility.Protected) => Accessibility.ProtectedOrInternal,
114
(SyntaxKind.
InternalKeyword
, _) => Accessibility.Internal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
322
if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
334
else if (ContainsToken(modifiers, SyntaxKind.
InternalKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
569
while (targetToken.Kind() is SyntaxKind.
InternalKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
15
SyntaxKind.
InternalKeyword
,
32
SyntaxKind.
InternalKeyword
,
50
SyntaxKind.
InternalKeyword
,
66
SyntaxKind.
InternalKeyword
,
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
196
where modifier.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.PrivateKeyword or SyntaxKind.ProtectedKeyword or SyntaxKind.
InternalKeyword
or SyntaxKind.StaticKeyword