131 references to InternalKeyword
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
74modifier.IsKind(SyntaxKind.InternalKeyword) ||
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
74modifier.IsKind(SyntaxKind.InternalKeyword) ||
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (5)
347case SyntaxKind.InternalKeyword: 1299case SyntaxKind.InternalKeyword: 2318case SyntaxKind.InternalKeyword: 10354case SyntaxKind.InternalKeyword: 10371case SyntaxKind.InternalKeyword:
SymbolDisplay\SymbolDisplayVisitor.cs (2)
392AddKeyword(SyntaxKind.InternalKeyword); 405AddKeyword(SyntaxKind.InternalKeyword);
Symbols\Source\ModifierUtils.cs (3)
292return SyntaxFacts.GetText(SyntaxKind.InternalKeyword); 294return SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.InternalKeyword); 350case SyntaxKind.InternalKeyword:
Syntax\SyntaxFacts.cs (2)
369return SyntaxFacts.GetText(InternalKeyword); 373return SyntaxFacts.GetText(ProtectedKeyword) + " " + SyntaxFacts.GetText(InternalKeyword);
Syntax\SyntaxKindFacts.cs (3)
71case SyntaxKind.InternalKeyword: 935return SyntaxKind.InternalKeyword; 1583case SyntaxKind.InternalKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.PublicKeyword or SyntaxKind.ProtectedKeyword or SyntaxKind.InternalKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.InternalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
153SyntaxKind.InternalKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84case SyntaxKind.InternalKeyword: 322case 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)
322if (ContainsToken(modifiers, SyntaxKind.InternalKeyword)) 334else if (ContainsToken(modifiers, SyntaxKind.InternalKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
570while (targetToken.Kind() is SyntaxKind.InternalKeyword or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
15SyntaxKind.InternalKeyword, 32SyntaxKind.InternalKeyword, 50SyntaxKind.InternalKeyword, 66SyntaxKind.InternalKeyword,
Microsoft.CodeAnalysis.CSharp.Features (54)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
603case SyntaxKind.InternalKeyword:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
159case SyntaxKind.InternalKeyword:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
45case SyntaxKind.InternalKeyword:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
17SyntaxKind.InternalKeyword, 28SyntaxKind.InternalKeyword, 39SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
19SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
19SyntaxKind.InternalKeyword, 27SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
17SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
16SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
20SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
17SyntaxKind.InternalKeyword, 31SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
19SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
16SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (2)
15: base(SyntaxKind.InternalKeyword) 67!precedingModifiers.Contains(SyntaxKind.InternalKeyword) &&
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
21SyntaxKind.InternalKeyword, 36SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
17SyntaxKind.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)
21SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
19SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
30SyntaxKind.InternalKeyword, 51SyntaxKind.InternalKeyword, 69SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
17SyntaxKind.InternalKeyword, 28SyntaxKind.InternalKeyword, 39SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
17SyntaxKind.InternalKeyword, 30SyntaxKind.InternalKeyword, 45SyntaxKind.InternalKeyword, 60SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
17SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
17SyntaxKind.InternalKeyword, 31SyntaxKind.InternalKeyword, 47SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
17SyntaxKind.InternalKeyword, 28SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
20SyntaxKind.InternalKeyword,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
20SyntaxKind.InternalKeyword,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
71var modifierKinds = new[] { SyntaxKind.PrivateKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword, SyntaxKind.PublicKeyword };
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
126else if (xModifiers.Any(SyntaxKind.ProtectedKeyword) && xModifiers.Any(SyntaxKind.InternalKeyword)) 130else if (xModifiers.Any(SyntaxKind.InternalKeyword))
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
47case SyntaxKind.InternalKeyword:
Snippets\CSharpClassSnippetProvider.cs (1)
30SyntaxKind.InternalKeyword,
Snippets\CSharpConstructorSnippetProvider.cs (1)
35SyntaxKind.InternalKeyword,
Snippets\CSharpEnumSnippetProvider.cs (1)
27SyntaxKind.InternalKeyword,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
27SyntaxKind.InternalKeyword,
Snippets\CSharpProprSnippetProvider.cs (1)
43if (precedingModifiers.IsSupersetOf([SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword]))
Snippets\CSharpStructSnippetProvider.cs (1)
27SyntaxKind.InternalKeyword,
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132if (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)
837Assert.Equal(SyntaxKind.InternalKeyword, cs.Modifiers[0].Kind()); 1857Assert.Equal(SyntaxKind.InternalKeyword, cs.Modifiers[1].Kind()); 1898Assert.Equal(SyntaxKind.InternalKeyword, cs.Modifiers[0].Kind()); 1981Assert.Equal(SyntaxKind.InternalKeyword, cs.Modifiers[0].Kind()); 2722TestClassMethodModifiers(SyntaxKind.InternalKeyword); 2731TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.VirtualKeyword); 2732TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.VirtualKeyword, SyntaxKind.ProtectedKeyword); 3555TestClassConstructorWithModifier(SyntaxKind.InternalKeyword); 3744TestClassFieldModifier(SyntaxKind.InternalKeyword); 3799TestClassEventFieldModifier(SyntaxKind.InternalKeyword); 4650TestClassPropertyWithModifier(SyntaxKind.InternalKeyword); 4665TestClassPropertyWithModifier(SyntaxKind.InternalKeyword); 4845TestClassEventPropertyWithModifier(SyntaxKind.InternalKeyword); 4858TestClassEventPropertyWithModifier(SyntaxKind.InternalKeyword);
Parsing\ScriptParsingTests.cs (1)
956NewModifier_WithOtherModifier("internal", SyntaxKind.InternalKeyword);
Syntax\SyntaxNodeCacheTests.cs (2)
37var child0 = new SyntaxTokenWithTrivia(SyntaxKind.InternalKeyword, null, null); 60var child0 = new SyntaxTokenWithTrivia(SyntaxKind.InternalKeyword, null, null);
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
607case SyntaxKind.InternalKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.InternalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
153SyntaxKind.InternalKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
84case SyntaxKind.InternalKeyword: 322case 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)
322if (ContainsToken(modifiers, SyntaxKind.InternalKeyword)) 334else if (ContainsToken(modifiers, SyntaxKind.InternalKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
570while (targetToken.Kind() is SyntaxKind.InternalKeyword or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
15SyntaxKind.InternalKeyword, 32SyntaxKind.InternalKeyword, 50SyntaxKind.InternalKeyword, 66SyntaxKind.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)
30TokenList(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) })) 287Token(SyntaxKind.InternalKeyword)
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
89if (tokenList[i].Kind() is SyntaxKind.PublicKeyword or SyntaxKind.InternalKeyword or SyntaxKind.ProtectedKeyword or SyntaxKind.PrivateKeyword)
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
153else if (mod.IsKind(SyntaxKind.PublicKeyword) || mod.IsKind(SyntaxKind.ProtectedKeyword) || mod.IsKind(SyntaxKind.InternalKeyword))
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.cs (2)
1061else if (modifiers.Any(SyntaxKind.ProtectedKeyword) && modifiers.Any(SyntaxKind.InternalKeyword)) 1065else if (modifiers.Any(SyntaxKind.InternalKeyword))
CodeModel\ModifierFlagsExtensions.cs (2)
21{ ModifierFlags.Internal, SyntaxKind.InternalKeyword }, 52case SyntaxKind.InternalKeyword:
LanguageService\CSharpHelpContextService.cs (2)
430case SyntaxKind.ProtectedKeyword when ModifiersContains(token, SyntaxKind.InternalKeyword): 431case SyntaxKind.InternalKeyword when ModifiersContains(token, SyntaxKind.ProtectedKeyword):