162 references to ProtectedAndInternal
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (1)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (23)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
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)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
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);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.VisualStudio.LanguageServices (4)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)