131 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
:
1299
case SyntaxKind.
InternalKeyword
:
2318
case SyntaxKind.
InternalKeyword
:
10354
case SyntaxKind.
InternalKeyword
:
10371
case SyntaxKind.
InternalKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (2)
392
AddKeyword(SyntaxKind.
InternalKeyword
);
405
AddKeyword(SyntaxKind.
InternalKeyword
);
Symbols\Source\ModifierUtils.cs (3)
292
return SyntaxFacts.GetText(SyntaxKind.
InternalKeyword
);
294
return SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.
InternalKeyword
);
350
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
:
935
return SyntaxKind.
InternalKeyword
;
1583
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)
43
public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.
InternalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
153
SyntaxKind.
InternalKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84
case SyntaxKind.
InternalKeyword
:
322
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
118
(SyntaxKind.
InternalKeyword
, Accessibility.Protected) => Accessibility.ProtectedOrInternal,
119
(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)
570
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)
603
case SyntaxKind.
InternalKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
159
case SyntaxKind.
InternalKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
45
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)
15
: base(SyntaxKind.
InternalKeyword
)
67
!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)
86
!precedingModifiers.Contains(SyntaxKind.
InternalKeyword
) &&
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
57
!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)
30
SyntaxKind.
InternalKeyword
,
51
SyntaxKind.
InternalKeyword
,
69
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 (17)
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);
3555
TestClassConstructorWithModifier(SyntaxKind.
InternalKeyword
);
3744
TestClassFieldModifier(SyntaxKind.
InternalKeyword
);
3799
TestClassEventFieldModifier(SyntaxKind.
InternalKeyword
);
4650
TestClassPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4665
TestClassPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4845
TestClassEventPropertyWithModifier(SyntaxKind.
InternalKeyword
);
4858
TestClassEventPropertyWithModifier(SyntaxKind.
InternalKeyword
);
Parsing\ScriptParsingTests.cs (1)
956
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\CSharpDeclaredSymbolInfoFactoryService.cs (1)
607
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43
public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.
InternalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
153
SyntaxKind.
InternalKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84
case SyntaxKind.
InternalKeyword
:
322
case SyntaxKind.
InternalKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
118
(SyntaxKind.
InternalKeyword
, Accessibility.Protected) => Accessibility.ProtectedOrInternal,
119
(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)
570
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 (5)
ComInterfaceGenerator.cs (1)
518
.AddModifiers(Token(SyntaxKind.
InternalKeyword
), Token(SyntaxKind.StaticKeyword));
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)
430
case SyntaxKind.ProtectedKeyword when ModifiersContains(token, SyntaxKind.
InternalKeyword
):
431
case SyntaxKind.
InternalKeyword
when ModifiersContains(token, SyntaxKind.ProtectedKeyword):