162 references to ProtectedAndInternal
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
108 case Accessibility.ProtectedAndInternal:
Microsoft.Analyzers.Extra (1)
Utilities\SymbolExtensions.cs (1)
51case Accessibility.ProtectedAndInternal:
Microsoft.Analyzers.Local (1)
Utilities\SymbolExtensions.cs (1)
27case Accessibility.ProtectedAndInternal:
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
GeneratorHelpers.cs (1)
16case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis (2)
Symbols\Accessibility.cs (2)
32ProtectedAndFriend = ProtectedAndInternal, 41/// (less restrictive than <see cref="Protected"/>, <see cref="Internal"/> and <see cref="ProtectedAndInternal"/>).
Microsoft.CodeAnalysis.CodeStyle (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AccessibilityUtilities.cs (3)
16if (accessibility1 == Accessibility.ProtectedAndInternal || accessibility2 == Accessibility.ProtectedAndInternal) 18return Accessibility.ProtectedAndInternal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
61case Accessibility.ProtectedAndInternal: 564case Accessibility.ProtectedAndInternal: 566? Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
227case Accessibility.ProtectedAndInternal: 297case Accessibility.ProtectedAndInternal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
230Accessibility.ProtectedAndInternal, 269builder.Add(Accessibility.ProtectedAndInternal); 469case Accessibility.ProtectedAndInternal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
90Accessibility.ProtectedAndInternal,
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
147case Accessibility.ProtectedAndInternal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
62case Accessibility.ProtectedAndInternal:
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
101case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (1)
8737case Accessibility.ProtectedAndInternal:
Binder\Binder_Lookup.cs (1)
1506unwrappedSymbol.DeclaredAccessibility == Accessibility.ProtectedAndInternal ||
Binder\Semantics\AccessCheck.cs (3)
97case Accessibility.ProtectedAndInternal: 273case Accessibility.ProtectedAndInternal: 380case Accessibility.ProtectedAndInternal:
Compiler\ClsComplianceChecker.cs (1)
1242case Accessibility.ProtectedAndInternal:
Emitter\Model\MethodSymbolAdapter.cs (1)
599accessibility == Accessibility.ProtectedAndInternal ||
FlowAnalysis\EmptyStructTypeCache.cs (1)
259case Accessibility.ProtectedAndInternal:
SymbolDisplay\SymbolDisplayVisitor.cs (1)
401case Accessibility.ProtectedAndInternal:
Symbols\AccessibilityExtensions.cs (1)
19case Accessibility.ProtectedAndInternal:
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
547access = Accessibility.ProtectedAndInternal;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
503return Accessibility.ProtectedAndInternal;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
651access = Accessibility.ProtectedAndInternal;
Symbols\Source\ModifierUtils.cs (1)
535return Accessibility.ProtectedAndInternal;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1662case Accessibility.ProtectedAndInternal:
Symbols\Symbol.cs (1)
290case Accessibility.ProtectedAndInternal:
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
83case Accessibility.ProtectedAndInternal:
Symbols\TypeSymbolExtensions.cs (5)
1020if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1028case Accessibility.ProtectedAndInternal: 1032if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1060else if (acc2 == Accessibility.Protected || acc2 == Accessibility.ProtectedAndInternal) 1124case Accessibility.ProtectedAndInternal:
Syntax\SyntaxFacts.cs (1)
366case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
335Accessibility.ProtectedAndInternal or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
115(SyntaxKind.PrivateKeyword, Accessibility.Protected) => Accessibility.ProtectedAndInternal, 121(SyntaxKind.ProtectedKeyword, Accessibility.Private) => Accessibility.ProtectedAndInternal,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
58case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (7)
61Accessibility.ProtectedAndInternal, 126new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal }, 274new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal }, 313new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal }, 373[InlineData("private_protected", new[] { Accessibility.ProtectedAndInternal })] 375[InlineData("*", new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal })] 376[InlineData(null, new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal })]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
PrivateProtected.cs (1)
114Assert.Equal(Accessibility.ProtectedAndInternal, member.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
648case Accessibility.ProtectedAndInternal:
Completion\CompletionProviders\OverrideCompletionProvider.cs (2)
155Accessibility.Protected => Accessibility.ProtectedAndInternal, 175Accessibility.Private => Accessibility.ProtectedAndInternal,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
664Assert.Equal(Accessibility.ProtectedAndInternal, comp.GlobalNamespace.GetTypeMember("C").GetTypeMember("S4").DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (46)
Symbols\DefaultInterfaceImplementationTests.cs (37)
8587Assert.Equal(Accessibility.ProtectedAndInternal, m13.DeclaredAccessibility); 11801foreach (var tuple in new[] { (name: "M1", access: Accessibility.Protected), (name: "M2", access: Accessibility.ProtectedOrInternal), (name: "M3", access: Accessibility.ProtectedAndInternal) }) 12117ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12124CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : "M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersImplicit_10(m, Accessibility.ProtectedAndInternal)).VerifyDiagnostics(); 12126ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12134ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedAndInternal); 12158ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12171ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12346CompileAndVerify(compilation1, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "M1" : null, verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersExplicit_10(m, Accessibility.ProtectedAndInternal)); 12348ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12356ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedAndInternal); 12370ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12571ValidateMethodModifiers_10_02(source1, source2, Accessibility.ProtectedAndInternal, 12845Assert.Equal(Accessibility.ProtectedAndInternal, m1.DeclaredAccessibility); 13511Assert.Equal(Accessibility.ProtectedAndInternal, p18.DeclaredAccessibility); 13521Assert.Equal(Accessibility.ProtectedAndInternal, p18get.DeclaredAccessibility); 13534ValidateP13Accessor(p19.SetMethod, Accessibility.ProtectedAndInternal); 20516(name: "P3", access: Accessibility.ProtectedAndInternal, getAccess: Accessibility.ProtectedAndInternal, setAccess: Accessibility.ProtectedAndInternal), 20519(name: "P6", access: Accessibility.Public, getAccess: Accessibility.ProtectedAndInternal, setAccess: Accessibility.Public)}) 20705ValidatePropertyModifiers_11_01(source1, source2, Accessibility.ProtectedAndInternal, 20864ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.ProtectedAndInternal, 21240ValidatePropertyModifiers_20(source1, source2, Accessibility.ProtectedAndInternal); 21522ValidatePropertyModifiers_22(source1, Accessibility.ProtectedAndInternal); 21988Assert.Equal(Accessibility.ProtectedAndInternal, p18.DeclaredAccessibility); 21998Assert.Equal(Accessibility.ProtectedAndInternal, p18get.DeclaredAccessibility); 22011ValidateP13Accessor(p19.SetMethod, Accessibility.ProtectedAndInternal); 27089Assert.Equal(Accessibility.ProtectedAndInternal, p14.DeclaredAccessibility); 27103Assert.Equal(Accessibility.ProtectedAndInternal, accessor.DeclaredAccessibility); 31228(name: "P3", access: Accessibility.ProtectedAndInternal)}) 31417ValidateEventModifiers_11(source1, source2, Accessibility.ProtectedAndInternal, 31698ValidateEventModifiers_20(source1, source2, Accessibility.ProtectedAndInternal); 32479ValidateNestedTypes_01(source0 + source1, Accessibility.ProtectedAndInternal, targetFramework: TargetFramework.NetCoreApp, execute: ExecutionConditionUtil.IsMonoOrCoreClr, verify: VerifyOnMonoOrCoreClr_FailsIlVerify); 32487Assert.Equal(Accessibility.ProtectedAndInternal, compilation1.GetMember("I1.T" + i).DeclaredAccessibility); 43751Assert.Equal(Accessibility.ProtectedAndInternal, f4.DeclaredAccessibility); 44319Assert.Equal(Accessibility.ProtectedAndInternal, f3.DeclaredAccessibility);
Symbols\Source\PropertyTests.cs (9)
806Accessibility.ProtectedAndInternal); 816Accessibility.ProtectedAndInternal); 826Accessibility.ProtectedAndInternal); 829Accessibility.ProtectedAndInternal, 830Accessibility.ProtectedAndInternal, 831Accessibility.ProtectedAndInternal); 834Accessibility.ProtectedAndInternal, 835Accessibility.ProtectedAndInternal, 845Accessibility.ProtectedAndInternal,
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1687case Accessibility.ProtectedAndInternal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
335Accessibility.ProtectedAndInternal or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
115(SyntaxKind.PrivateKeyword, Accessibility.Protected) => Accessibility.ProtectedAndInternal, 121(SyntaxKind.ProtectedKeyword, Accessibility.Private) => Accessibility.ProtectedAndInternal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
58case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DkmUtilities.cs (1)
320case Accessibility.ProtectedAndInternal: // Dev12 treats this as "internal"
Microsoft.CodeAnalysis.Features (9)
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (2)
138Accessibility.Private => declaredAccessibility is Accessibility.Private or Accessibility.ProtectedAndInternal, 140Accessibility.Protected => declaredAccessibility is Accessibility.Protected or Accessibility.ProtectedAndInternal or Accessibility.ProtectedOrInternal,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
194Accessibility.ProtectedAndInternal or
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
652case Accessibility.ProtectedAndInternal:
NavigateTo\RoslynNavigateToItem.cs (1)
327case Accessibility.ProtectedAndInternal:
Shared\Extensions\ISymbolExtensions_2.cs (1)
170case Accessibility.ProtectedAndInternal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
147case Accessibility.ProtectedAndInternal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
62case Accessibility.ProtectedAndInternal:
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
101case Accessibility.ProtectedAndInternal:
Microsoft.CodeAnalysis.VisualBasic (2)
Binding\Binder.vb (1)
972Accessibility.ProtectedAndInternal
SymbolDisplay\SymbolDisplayVisitor.vb (1)
358Case Accessibility.ProtectedAndInternal
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
176Case Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
44Case Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
388Case Accessibility.ProtectedAndInternal
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
PrivateProtected.vb (2)
139If Accessibility.ProtectedAndInternal <> member.DeclaredAccessibility Then 142Assert.Equal(Accessibility.ProtectedAndInternal, member.DeclaredAccessibility)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
176Case Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
44Case Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
388Case Accessibility.ProtectedAndInternal
Microsoft.CodeAnalysis.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AccessibilityUtilities.cs (3)
16if (accessibility1 == Accessibility.ProtectedAndInternal || accessibility2 == Accessibility.ProtectedAndInternal) 18return Accessibility.ProtectedAndInternal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
61case Accessibility.ProtectedAndInternal: 564case Accessibility.ProtectedAndInternal: 566? Accessibility.ProtectedAndInternal
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
227case Accessibility.ProtectedAndInternal: 297case Accessibility.ProtectedAndInternal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
230Accessibility.ProtectedAndInternal, 269builder.Add(Accessibility.ProtectedAndInternal); 469case Accessibility.ProtectedAndInternal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
90Accessibility.ProtectedAndInternal,
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
176case Accessibility.ProtectedAndInternal:
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
176case Accessibility.ProtectedAndInternal:
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\ObjectList.cs (2)
183case Accessibility.ProtectedAndInternal: 259case Accessibility.ProtectedAndInternal:
Progression\GraphBuilder.cs (1)
457case Accessibility.ProtectedAndInternal:
Progression\IconHelper.cs (1)
28case Accessibility.ProtectedAndInternal:
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
1039Accessibility.ProtectedAndInternal =>
ObjectBrowser\DescriptionBuilder.cs (1)
156case Accessibility.ProtectedAndInternal:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
50declaredAccessibility: Accessibility.ProtectedAndInternal);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
1442Case Accessibility.ProtectedAndInternal, Accessibility.ProtectedAndFriend
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal:
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
127case Accessibility.ProtectedAndInternal: