685 references to Private
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (7)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
Microsoft.CodeAnalysis.CodeStyle (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
88Accessibility.Private,
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
Microsoft.CodeAnalysis.CSharp (55)
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (12)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (12)
234[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)]
235[InlineData("struct [|c2|] { }", "struct C2 { }", TypeKind.Struct, Accessibility.Private)]
236[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)]
237[InlineData("delegate void [|c2|]();", "delegate void C2();", TypeKind.Delegate, Accessibility.Private)]
238[InlineData("enum [|c2|] { }", "enum C2 { }", TypeKind.Enum, Accessibility.Private)]
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)]
240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
241[InlineData("int [|m|] { get; }", "int M { get; }", SymbolKind.Property, Accessibility.Private)]
242[InlineData("void [|m|]() {}", "void M() {}", MethodKind.Ordinary, Accessibility.Private)]
244[InlineData("int [|m|];", "int M;", SymbolKind.Field, Accessibility.Private)]
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
246[InlineData("void Outer(int [|m|]) {}", "void Outer(int M) {}", SymbolKind.Parameter, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (7)
56Accessibility.Private,
123new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal },
230Assert.Contains(Accessibility.Private, symbolSpec.ApplicableAccessibilityList);
271new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal },
310new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal },
372[InlineData("*", new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal })]
373[InlineData(null, new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal })]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Emit\EmitMetadataTests.cs (15)
519Assert.Equal(Accessibility.Private, classG.DeclaredAccessibility);
520Assert.Equal(Accessibility.Private, classK.DeclaredAccessibility);
571Assert.Equal(Accessibility.Private, f5.DeclaredAccessibility);
572Assert.Equal(Accessibility.Private, f6.DeclaredAccessibility);
624Assert.Equal(Accessibility.Private, cctor.DeclaredAccessibility);
666CheckConstantField(type, "I", Accessibility.Private, SpecialType.System_Int32, -1);
867var privateOrNotApplicable = isFromSource ? Accessibility.Private : Accessibility.NotApplicable;
883CheckPropertyAccessibility(p5, Accessibility.Private, Accessibility.NotApplicable, Accessibility.Private);
884CheckPropertyAccessibility(p6, Accessibility.Private, Accessibility.Private, Accessibility.NotApplicable);
1088CheckPropertyAccessibility(propertyP, Accessibility.Public, Accessibility.Public, Accessibility.Private);
1160CheckPropertyAccessibility(ip, Accessibility.Private, Accessibility.Private, Accessibility.Private);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Features (18)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
39Accessibility.Private,
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
83Accessibility.Private,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (12)
234[InlineData("class [|c2|] { }", "class C2 { }", TypeKind.Class, Accessibility.Private)]
235[InlineData("struct [|c2|] { }", "struct C2 { }", TypeKind.Struct, Accessibility.Private)]
236[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)]
237[InlineData("delegate void [|c2|]();", "delegate void C2();", TypeKind.Delegate, Accessibility.Private)]
238[InlineData("enum [|c2|] { }", "enum C2 { }", TypeKind.Enum, Accessibility.Private)]
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)]
240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
241[InlineData("int [|m|] { get; }", "int M { get; }", SymbolKind.Property, Accessibility.Private)]
242[InlineData("void [|m|]() {}", "void M() {}", MethodKind.Ordinary, Accessibility.Private)]
244[InlineData("int [|m|];", "int M;", SymbolKind.Field, Accessibility.Private)]
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
246[InlineData("void Outer(int [|m|]) {}", "void Outer(int M) {}", SymbolKind.Parameter, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (138)
Symbols\DefaultInterfaceImplementationTests.cs (102)
8491Assert.Equal(Accessibility.Private, m05.DeclaredAccessibility);
8886foreach (var tuple in new[] { (name: "M1", access: Accessibility.Public), (name: "M2", access: Accessibility.Internal), (name: "M3", access: Accessibility.Private) })
9065Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
9123Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
9136Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
9149Assert.Equal(Accessibility.Private, m3.DeclaredAccessibility);
10437Assert.Equal(Accessibility.Private, m4.DeclaredAccessibility);
10755Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
11076Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
11090Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
11107Assert.Equal(Accessibility.Private, m2Impl.DeclaredAccessibility);
11183Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
11197Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
11214Assert.Equal(Accessibility.Private, m2Impl.DeclaredAccessibility);
13214Assert.Equal(Accessibility.Private, p05.DeclaredAccessibility);
13224Assert.Equal(Accessibility.Private, p05set.DeclaredAccessibility);
13466ValidateP16Accessor(p16.GetMethod, Accessibility.Private);
13500Assert.Equal(Accessibility.Private, p17get.DeclaredAccessibility);
14278(name: "P3", access: Accessibility.Private),
14642Assert.Equal(Accessibility.Private, p1.DeclaredAccessibility);
14674Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
14746Assert.Equal(Accessibility.Private, p1.DeclaredAccessibility);
14757Assert.Equal(Accessibility.Private, p1get.DeclaredAccessibility);
14769Assert.Equal(Accessibility.Private, p2.DeclaredAccessibility);
14780Assert.Equal(Accessibility.Private, p2get.DeclaredAccessibility);
14791Assert.Equal(Accessibility.Private, p3.DeclaredAccessibility);
14806Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
14819Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
14830Assert.Equal(Accessibility.Private, p4get.DeclaredAccessibility);
16875Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
16887Assert.Equal(Accessibility.Private, p4get.DeclaredAccessibility);
17113Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
17129Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
17313Assert.Equal(Accessibility.Private, p2.DeclaredAccessibility);
17325Assert.Equal(Accessibility.Private, p2get.DeclaredAccessibility);
17784Assert.Equal(accessor.DeclaredAccessibility != Accessibility.Private, accessor.IsVirtual);
17785Assert.Equal(accessor.DeclaredAccessibility != Accessibility.Private, accessor.IsMetadataVirtual());
17792Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor));
18295ValidateProperty23(GetSingleProperty(im, "I3"), false, Accessibility.Private, Accessibility.Public, m.GlobalNamespace.GetTypeMember("Test3"));
18296ValidateProperty23(GetSingleProperty(im, "I4"), false, Accessibility.Public, Accessibility.Private, m.GlobalNamespace.GetTypeMember("Test4"));
18297ValidateProperty23(GetSingleProperty(im, "I5"), false, Accessibility.Private, Accessibility.Public, m.GlobalNamespace.GetTypeMember("Test5"));
18298ValidateProperty23(GetSingleProperty(im, "I6"), false, Accessibility.Public, Accessibility.Private, m.GlobalNamespace.GetTypeMember("Test6"));
18321ValidateProperty23(GetSingleProperty(compilation2, "I3"), false, Accessibility.Private, Accessibility.Public);
18322ValidateProperty23(GetSingleProperty(compilation2, "I4"), false, Accessibility.Public, Accessibility.Private);
18323ValidateProperty23(GetSingleProperty(compilation2, "I5"), false, Accessibility.Private, Accessibility.Public);
18324ValidateProperty23(GetSingleProperty(compilation2, "I6"), false, Accessibility.Public, Accessibility.Private);
18375Assert.Equal(Accessibility.Private, access);
18381Assert.NotEqual(isAbstract || access == Accessibility.Private, m1.IsVirtual);
18382Assert.Equal(isAbstract || access != Accessibility.Private, m1.IsMetadataVirtual());
18392Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1));
21691Assert.Equal(Accessibility.Private, p05.DeclaredAccessibility);
21701Assert.Equal(Accessibility.Private, p05set.DeclaredAccessibility);
21943ValidateP16Accessor(p16.GetMethod, Accessibility.Private);
21977Assert.Equal(Accessibility.Private, p17get.DeclaredAccessibility);
26936Assert.Equal(Accessibility.Private, p05.DeclaredAccessibility);
26946Assert.Equal(Accessibility.Private, p05set.DeclaredAccessibility);
27809(name: "P3", access: Accessibility.Private)})
28148Assert.Equal(Accessibility.Private, p1.DeclaredAccessibility);
28164Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
28244Assert.Equal(Accessibility.Private, p1.DeclaredAccessibility);
28259Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
28271Assert.Equal(Accessibility.Private, p2.DeclaredAccessibility);
28286Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
28298Assert.Equal(Accessibility.Private, p3.DeclaredAccessibility);
28313Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
28325Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
28340Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
30214Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
30230Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
30544Assert.Equal(Accessibility.Private, p4.DeclaredAccessibility);
30560Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
30706Assert.Equal(Accessibility.Private, p2.DeclaredAccessibility);
30722Assert.Equal(Accessibility.Private, accessor.DeclaredAccessibility);
32336ValidateNestedTypes_01(source1, Accessibility.Private);
33072Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
33909Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
34025Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
36895Assert.Equal(Accessibility.Private, method.DeclaredAccessibility);
37091Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor));
37127Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
38019Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
40160Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
43810Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
43950Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
44080Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
44669Assert.Equal(Accessibility.Private, cctor.DeclaredAccessibility);
44767Assert.Equal(Accessibility.Private, cctor.DeclaredAccessibility);
45077Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
45233Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
45369Assert.Equal(Accessibility.Private, f1.SetMethod.DeclaredAccessibility);
45370Assert.Equal(Accessibility.Private, f2.SetMethod.DeclaredAccessibility);
45371Assert.Equal(Accessibility.Private, f3.SetMethod.DeclaredAccessibility);
45561Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
45701Assert.Equal(Accessibility.Private, f4.DeclaredAccessibility);
51122Assert.Equal(Accessibility.Private, m.DeclaredAccessibility);
52045Assert.Equal(Accessibility.Private, i2m1.DeclaredAccessibility);
52168Assert.Equal(Accessibility.Private, i2m1.DeclaredAccessibility);
52563Assert.Equal(Accessibility.Private, reabstracting.DeclaredAccessibility);
53745Assert.Equal(Accessibility.Private, i2p1.DeclaredAccessibility);
53761Assert.Equal(Accessibility.Private, i2p1Get.DeclaredAccessibility);
53778Assert.Equal(Accessibility.Private, i2p1Set.DeclaredAccessibility);
57527Assert.Equal(Accessibility.Private, reabstracting.DeclaredAccessibility);
Symbols\Source\MethodTests.cs (13)
44Assert.Equal(Accessibility.Private, m.DeclaredAccessibility);
126Assert.Equal(Accessibility.Private, m.DeclaredAccessibility);
150Assert.Equal(Accessibility.Private, m.DeclaredAccessibility);
171Assert.Equal(Accessibility.Private, m1.DeclaredAccessibility);
1187Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
1193Assert.Equal(Accessibility.Private, m3.DeclaredAccessibility);
1198Assert.Equal(Accessibility.Private, m4.DeclaredAccessibility);
1224Assert.Equal(Accessibility.Private, mm.DeclaredAccessibility);
1229Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
1281Assert.Equal(Accessibility.Private, m2.DeclaredAccessibility);
1287Assert.Equal(Accessibility.Private, m3.DeclaredAccessibility);
1905Assert.Equal(Accessibility.Private, staticConstructor.DeclaredAccessibility);
1929Assert.Equal(Accessibility.Private, staticConstructor.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (42)
CodeGeneration\SyntaxGeneratorTests.cs (42)
1177Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.Abstract),
1189Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.Abstract),
1474Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.Abstract),
1498Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.Abstract),
2967Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ClassDeclaration("c", accessibility: Accessibility.Internal), Accessibility.Private)));
2968Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.StructDeclaration("s", accessibility: Accessibility.Internal), Accessibility.Private)));
2969Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumDeclaration("i", accessibility: Accessibility.Internal), Accessibility.Private)));
2970Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumDeclaration("e", accessibility: Accessibility.Internal), Accessibility.Private)));
2971Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.DelegateDeclaration("d", accessibility: Accessibility.Internal), Accessibility.Private)));
2972Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.MethodDeclaration("m", accessibility: Accessibility.Internal), Accessibility.Private)));
2973Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ConstructorDeclaration(accessibility: Accessibility.Internal), Accessibility.Private)));
2974Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ParameterDeclaration("p"), Accessibility.Private)));
2975Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2976Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.IndexerDeclaration([Generator.ParameterDeclaration("i")], Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2977Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2978Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumMember("v"), Accessibility.Private)));
2979Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2980Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2981Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.NamespaceDeclaration("n"), Accessibility.Private)));
2982Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.NamespaceImportDeclaration("u"), Accessibility.Private)));
2983Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc"), Accessibility.Private)));
2984Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.Attribute("a"), Accessibility.Private)));
2985Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(TypeParameter("tp"), Accessibility.Private)));
2986Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(AccessorDeclaration(SyntaxKind.InitAccessorDeclaration), Accessibility.Private)));
3375Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(setAccessor, Accessibility.Private)));
3829var xPrivate = Generator.WithAccessibility(declX, Accessibility.Private);
3832Assert.Equal(Accessibility.Private, Generator.GetAccessibility(xPrivate));
3919Generator.ReplaceNode(declC, declX, Generator.WithAccessibility(declX, Accessibility.Private)),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (44)
Common\GlyphExtensions.cs (14)
56Accessibility.Private => Glyph.ClassPrivate,
64Accessibility.Private => Glyph.ConstantPrivate,
72Accessibility.Private => Glyph.DelegatePrivate,
80Accessibility.Private => Glyph.EnumPrivate,
88Accessibility.Private => Glyph.EnumMemberPrivate,
99Accessibility.Private => Glyph.EventPrivate,
107Accessibility.Private => Glyph.ExtensionMethodPrivate,
115Accessibility.Private => Glyph.FieldPrivate,
123Accessibility.Private => Glyph.InterfacePrivate,
149Accessibility.Private => Glyph.MethodPrivate,
157Accessibility.Private => Glyph.ModulePrivate,
174Accessibility.Private => Glyph.PropertyPrivate,
191Accessibility.Private => Glyph.StructurePrivate,
224return Accessibility.Private;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.VisualBasic (73)
Lowering\SyntheticBoundNodeFactory.vb (3)
115Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
121Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, synthesizedKind As SynthesizedLocalKind, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
127Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, slotDebugInfo As LocalSlotDebugInfo, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
38Case Accessibility.Private
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
382Case Accessibility.Private
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (25)
Binding\LookupTests.vb (25)
958Assert.Equal(Accessibility.Private, system.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
959Assert.Equal(Accessibility.Private, deployment.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
960Assert.Equal(Accessibility.Private, internal.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
961Assert.Equal(Accessibility.Private, isolation.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
967Assert.Equal(Accessibility.Private, system.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
968Assert.Equal(Accessibility.Private, deployment.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
969Assert.Equal(Accessibility.Private, internal.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
976Assert.Equal(Accessibility.Private, system.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
977Assert.Equal(Accessibility.Private, io.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
978Assert.Equal(Accessibility.Private, isolatedStorage.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1027Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1028Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1059Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1060Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1066Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1067Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1072Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1087Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1088Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1094Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1095Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1100Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1116Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1117Assert.Equal(Accessibility.Private, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
1122Assert.Equal(Accessibility.Private, p.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (17)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
38Case Accessibility.Private
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
382Case Accessibility.Private
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (40)
CodeGeneration\SyntaxGeneratorTests.vb (40)
887Generator.MethodDeclaration("m", accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.Partial),
1769Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.Abstract),
1781Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.None),
1823Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.Abstract),
1830Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.Abstract),
2669Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ClassDeclaration("c", accessibility:=Accessibility.Internal), Accessibility.Private)))
2670Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.StructDeclaration("s", accessibility:=Accessibility.Internal), Accessibility.Private)))
2671Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumDeclaration("i", accessibility:=Accessibility.Internal), Accessibility.Private)))
2672Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumDeclaration("e", accessibility:=Accessibility.Internal), Accessibility.Private)))
2673Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.DelegateDeclaration("d", accessibility:=Accessibility.Internal), Accessibility.Private)))
2674Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.MethodDeclaration("m", accessibility:=Accessibility.Internal), Accessibility.Private)))
2675Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ConstructorDeclaration(accessibility:=Accessibility.Internal), Accessibility.Private)))
2676Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.ParameterDeclaration("p"), Accessibility.Private)))
2677Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2678Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2679Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2680Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EnumMember("v"), Accessibility.Private)))
2681Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2682Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2683Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.NamespaceDeclaration("n"), Accessibility.Private)))
2684Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.NamespaceImportDeclaration("u"), Accessibility.Private)))
2685Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc"), Accessibility.Private)))
2686Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(Generator.Attribute("a"), Accessibility.Private)))
2687Assert.Equal(Accessibility.NotApplicable, Generator.GetAccessibility(Generator.WithAccessibility(SyntaxFactory.TypeParameter("tp"), Accessibility.Private)))
3079Assert.Equal(Accessibility.Private, _g.GetAccessibility(_g.WithAccessibility(setAccessor, Accessibility.Private)))
3520Dim xPrivate = Generator.WithAccessibility(declX, Accessibility.Private)
3523Assert.Equal(Accessibility.Private, Generator.GetAccessibility(xPrivate))
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
88Accessibility.Private,
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
EditorConfigParsing\NamingStyleParserTests.cs (6)
110accessibility => Assert.Equal(Accessibility.Private, accessibility),
148accessibility => Assert.Equal(Accessibility.Private, accessibility),
232accessibility => Assert.Equal(Accessibility.Private, accessibility),
268accessibility => Assert.Equal(Accessibility.Private, accessibility),
306accessibility => Assert.Equal(Accessibility.Private, accessibility),
342accessibility => Assert.Equal(Accessibility.Private, accessibility),
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (3)
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 (4)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (2)