1190 references to Public
ConfigurationSchemaGenerator (4)
ILLink.CodeFixProvider (2)
ILLink.RoslynAnalyzer (18)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.Analyzers (2)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.SourceGenerators (1)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (6)
Microsoft.AspNetCore.Mvc.Analyzers (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (18)
Microsoft.CodeAnalysis.CodeStyle.Fixes (25)
Microsoft.CodeAnalysis.CSharp (65)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
311? Accessibility.Public
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (94)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (85)
355accessibility: Accessibility.Public,
550accessibility: Accessibility.Public,
594accessibility: Accessibility.Public,
639accessibility: Accessibility.Public,
684accessibility: Accessibility.Public,
722accessibility: Accessibility.Public,
758accessibility: Accessibility.Public,
797accessibility: Accessibility.Public,
839accessibility: Accessibility.Public,
875accessibility: Accessibility.Public,
918accessibility: Accessibility.Public,
965accessibility: Accessibility.Public,
1014accessibility: Accessibility.Public,
1069accessibility: Accessibility.Public,
1114accessibility: Accessibility.Public,
1163accessibility: Accessibility.Public,
1222accessibility: Accessibility.Public,
1261accessibility: Accessibility.Public,
1306accessibility: Accessibility.Public,
1345accessibility: Accessibility.Public,
1391accessibility: Accessibility.Public,
1431accessibility: Accessibility.Public,
1470accessibility: Accessibility.Public,
1514accessibility: Accessibility.Public,
1552accessibility: Accessibility.Public,
1597accessibility: Accessibility.Public,
1636accessibility: Accessibility.Public,
1681accessibility: Accessibility.Public,
1718accessibility: Accessibility.Public,
1758accessibility: Accessibility.Public,
1803accessibility: Accessibility.Public,
1847accessibility: Accessibility.Public,
1898accessibility: Accessibility.Public,
1935accessibility: Accessibility.Public,
1965accessibility: Accessibility.Public,
1986accessibility: Accessibility.Public,
2008accessibility: Accessibility.Public,
2038accessibility: Accessibility.Public,
2075accessibility: Accessibility.Public,
2113accessibility: Accessibility.Public,
2151accessibility: Accessibility.Public,
2188accessibility: Accessibility.Public,
2218accessibility: Accessibility.Public,
2269accessibility: Accessibility.Public,
2297accessibility: Accessibility.Public,
2332accessibility: Accessibility.Public,
2367accessibility: Accessibility.Public,
2403accessibility: Accessibility.Public,
2438accessibility: Accessibility.Public,
2471accessibility: Accessibility.Public,
2504accessibility: Accessibility.Public,
2537accessibility: Accessibility.Public,
2566accessibility: Accessibility.Public,
2595accessibility: Accessibility.Public,
2625accessibility: Accessibility.Public,
2660accessibility: Accessibility.Public,
2695accessibility: Accessibility.Public,
2728accessibility: Accessibility.Public,
2761accessibility: Accessibility.Public,
2791accessibility: Accessibility.Public,
2820accessibility: Accessibility.Public,
2855accessibility: Accessibility.Public,
2890accessibility: Accessibility.Public,
2923accessibility: Accessibility.Public,
2956accessibility: Accessibility.Public,
2986accessibility: Accessibility.Public,
3015accessibility: Accessibility.Public,
3049accessibility: Accessibility.Public,
3080accessibility: Accessibility.Public,
3110accessibility: Accessibility.Public,
3147accessibility: Accessibility.Public,
3184accessibility: Accessibility.Public,
3227accessibility: Accessibility.Public,
3276accessibility: Accessibility.Public,
3306accessibility: Accessibility.Public,
3335accessibility: Accessibility.Public,
3370accessibility: Accessibility.Public,
3402accessibility: Accessibility.Public,
3427accessibility: Accessibility.Public,
3462accessibility: Accessibility.Public,
3489accessibility: Accessibility.Public,
3530accessibility: Accessibility.Public,
3563accessibility: Accessibility.Public,
3596accessibility: Accessibility.Public,
3635accessibility: Accessibility.Public,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (7)
57Accessibility.Public,
126new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal },
186Accessibility.Public,
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 },
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 (31)
Emit\EmitMetadataTests.cs (19)
443Assert.Equal(Accessibility.Public, classA.DeclaredAccessibility);
510Assert.Equal(Accessibility.Public, classD.DeclaredAccessibility);
562Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
670CheckConstantField(type, "S", Accessibility.Public, SpecialType.System_String, "string");
869CheckPropertyAccessibility(p1, Accessibility.Public, Accessibility.Public, Accessibility.Public);
873CheckPropertyAccessibility(p7, Accessibility.Public, privateOrNotApplicable, Accessibility.Public);
1088CheckPropertyAccessibility(propertyP, Accessibility.Public, Accessibility.Public, Accessibility.Private);
1094CheckPropertyAccessibility(propertyP, Accessibility.Public, Accessibility.Public, Accessibility.NotApplicable);
1100CheckPropertyAccessibility(propertyQ, Accessibility.Public, Accessibility.Public, Accessibility.Internal);
1115CheckPropertyAccessibility(propertyP, Accessibility.Public, Accessibility.Public, Accessibility.NotApplicable);
1121CheckPropertyAccessibility(propertyQ, Accessibility.Public, Accessibility.NotApplicable, Accessibility.Internal);
1410Assert.Equal(Accessibility.Public, field.DeclaredAccessibility); // Dev10: value__ is public
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (52)
Attributes\AttributeTests_IsUnmanaged.cs (12)
45AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name);
69AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name);
99AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name);
121AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name);
147AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
173AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
209AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
237AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
264AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
290AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
327AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
356AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, reference.Display);
Semantics\RecordTests.cs (31)
3435Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
3466Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
3498Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
3525Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
4929Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5004Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5081Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5248Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5432Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5466Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
5859Assert.Equal(Accessibility.Public, toString.DeclaredAccessibility);
14010Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
14047Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
14130Assert.Equal(Accessibility.Public, deconstruct.DeclaredAccessibility);
15658Assert.Equal(Accessibility.Public, deconstruct.DeclaredAccessibility);
18089Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
18198Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
18311Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
18319Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
18327Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
18462Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
18622Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
18661Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
18697Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
20334Assert.Equal(Accessibility.Public, op.DeclaredAccessibility);
20344Assert.Equal(Accessibility.Public, op.DeclaredAccessibility);
20453Assert.Equal(Accessibility.Public, op.DeclaredAccessibility);
20463Assert.Equal(Accessibility.Public, op.DeclaredAccessibility);
21151Assert.Equal(Accessibility.Public, symbol.ContainingSymbol.DeclaredAccessibility);
22654Assert.Equal(Accessibility.Public, clone.DeclaredAccessibility);
23123Assert.Equal(Accessibility.Public, baseEquals.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Features (21)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (296)
Symbols\DefaultInterfaceImplementationTests.cs (244)
208Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
2024Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
2699Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
2708Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
6419Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
6428Assert.Equal(Accessibility.Public, e1.DeclaredAccessibility);
8443Assert.Equal(Accessibility.Public, m01.DeclaredAccessibility);
8503Assert.Equal(Accessibility.Public, m06.DeclaredAccessibility);
8515Assert.Equal(Accessibility.Public, m07.DeclaredAccessibility);
8527Assert.Equal(Accessibility.Public, m08.DeclaredAccessibility);
8539Assert.Equal(Accessibility.Public, m09.DeclaredAccessibility);
8551Assert.Equal(Accessibility.Public, m10.DeclaredAccessibility);
8563Assert.Equal(Accessibility.Public, m11.DeclaredAccessibility);
8575Assert.Equal(Accessibility.Public, m12.DeclaredAccessibility);
8796Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
8835Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
8886foreach (var tuple in new[] { (name: "M1", access: Accessibility.Public), (name: "M2", access: Accessibility.Internal), (name: "M3", access: Accessibility.Private) })
8983Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
8996Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
9009Assert.Equal(Accessibility.Public, m3.DeclaredAccessibility);
10152Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
10233Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
10247Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
10261Assert.Equal(Accessibility.Public, m3.DeclaredAccessibility);
10275Assert.Equal(Accessibility.Public, m4.DeclaredAccessibility);
10341Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
10395Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
10409Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
10423Assert.Equal(Accessibility.Public, m3.DeclaredAccessibility);
10451Assert.Equal(Accessibility.Public, m5.DeclaredAccessibility);
10621Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
10635Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
10741Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
10769Assert.Equal(Accessibility.Public, m3.DeclaredAccessibility);
10783Assert.Equal(Accessibility.Public, m4.DeclaredAccessibility);
10797Assert.Equal(Accessibility.Public, m5.DeclaredAccessibility);
10849Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
13125Assert.Equal(Accessibility.Public, p01.DeclaredAccessibility);
13139Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
13235Assert.Equal(Accessibility.Public, p06.DeclaredAccessibility);
13245Assert.Equal(Accessibility.Public, p06get.DeclaredAccessibility);
13256Assert.Equal(Accessibility.Public, p07.DeclaredAccessibility);
13266Assert.Equal(Accessibility.Public, p07set.DeclaredAccessibility);
13277Assert.Equal(Accessibility.Public, p08.DeclaredAccessibility);
13287Assert.Equal(Accessibility.Public, p08get.DeclaredAccessibility);
13298Assert.Equal(Accessibility.Public, p09.DeclaredAccessibility);
13308Assert.Equal(Accessibility.Public, p09set.DeclaredAccessibility);
13319Assert.Equal(Accessibility.Public, p10.DeclaredAccessibility);
13329Assert.Equal(Accessibility.Public, p10get.DeclaredAccessibility);
13339Assert.Equal(Accessibility.Public, p11.DeclaredAccessibility);
13353Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
13364Assert.Equal(Accessibility.Public, p12.DeclaredAccessibility);
13378Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
13389Assert.Equal(Accessibility.Public, p13.DeclaredAccessibility);
13391ValidateP13Accessor(p13.GetMethod, Accessibility.Public);
13414Assert.Equal(Accessibility.Public, p14.DeclaredAccessibility);
13417ValidateP14Accessor(p14.SetMethod, Accessibility.Public);
13439Assert.Equal(Accessibility.Public, p15.DeclaredAccessibility);
13441ValidateP15Accessor(p15.GetMethod, Accessibility.Public);
13464Assert.Equal(Accessibility.Public, p16.DeclaredAccessibility);
13467ValidateP16Accessor(p16.SetMethod, Accessibility.Public);
13490Assert.Equal(Accessibility.Public, p17.DeclaredAccessibility);
13531Assert.Equal(Accessibility.Public, p19.DeclaredAccessibility);
13533ValidateP13Accessor(p19.GetMethod, Accessibility.Public);
13925Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
13935Assert.Equal(Accessibility.Public, p1get.DeclaredAccessibility);
14017Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
14033Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
14091Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
14106Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
14276foreach (var tuple in new[] { (name: "P1", access: Accessibility.Public),
14404Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
14415Assert.Equal(Accessibility.Public, p1get.DeclaredAccessibility);
14427Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
14438Assert.Equal(Accessibility.Public, p2set.DeclaredAccessibility);
14450Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
14461Assert.Equal(Accessibility.Public, p3get.DeclaredAccessibility);
16194Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
16226Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
16324Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
16336Assert.Equal(Accessibility.Public, p1get.DeclaredAccessibility);
16350Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
16362Assert.Equal(Accessibility.Public, p2get.DeclaredAccessibility);
16376Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
16388Assert.Equal(Accessibility.Public, p3set.DeclaredAccessibility);
16600Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
16634Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
16790Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
16802Assert.Equal(Accessibility.Public, p1get.DeclaredAccessibility);
16816Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
16828Assert.Equal(Accessibility.Public, p2set.DeclaredAccessibility);
16844Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
16860Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
16900Assert.Equal(Accessibility.Public, p5.DeclaredAccessibility);
16912Assert.Equal(Accessibility.Public, p5set.DeclaredAccessibility);
17033Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
17045Assert.Equal(Accessibility.Public, p1get.DeclaredAccessibility);
17059Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
17071Assert.Equal(Accessibility.Public, p2get.DeclaredAccessibility);
17084Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
17100Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
17143Assert.Equal(Accessibility.Public, p5.DeclaredAccessibility);
17155Assert.Equal(Accessibility.Public, p5get.DeclaredAccessibility);
17282Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
17298Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
17338Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
17354Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
17368Assert.Equal(Accessibility.Public, p4.DeclaredAccessibility);
17384Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
17398Assert.Equal(Accessibility.Public, p5.DeclaredAccessibility);
17410Assert.Equal(Accessibility.Public, p5get.DeclaredAccessibility);
17761Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
17769ValidateAccessor(p1.SetMethod, Accessibility.Public);
17773ValidateAccessor(p1.GetMethod, Accessibility.Public);
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);
18349Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
18436ValidatePropertyModifiers_23(source1, source2, Accessibility.Internal, Accessibility.Public,
19174ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.Internal,
19860ValidateMethod(p1get, Accessibility.Public);
19875Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
19904ValidateMethod(p1get, Accessibility.Public);
20517(name: "P4", access: Accessibility.Public, getAccess: Accessibility.Protected, setAccess: Accessibility.Public),
20518(name: "P5", access: Accessibility.Public, getAccess: Accessibility.Public, setAccess: Accessibility.ProtectedOrInternal),
20519(name: "P6", access: Accessibility.Public, getAccess: Accessibility.ProtectedAndInternal, setAccess: Accessibility.Public)})
20770ValidatePropertyModifiers_23(source1, source2, Accessibility.Protected, Accessibility.Public,
20817ValidatePropertyModifiers_23(source1, source2, Accessibility.ProtectedOrInternal, Accessibility.Public,
20864ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.ProtectedAndInternal,
21602Assert.Equal(Accessibility.Public, p01.DeclaredAccessibility);
21616Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
21712Assert.Equal(Accessibility.Public, p06.DeclaredAccessibility);
21722Assert.Equal(Accessibility.Public, p06get.DeclaredAccessibility);
21733Assert.Equal(Accessibility.Public, p07.DeclaredAccessibility);
21743Assert.Equal(Accessibility.Public, p07set.DeclaredAccessibility);
21754Assert.Equal(Accessibility.Public, p08.DeclaredAccessibility);
21764Assert.Equal(Accessibility.Public, p08get.DeclaredAccessibility);
21775Assert.Equal(Accessibility.Public, p09.DeclaredAccessibility);
21785Assert.Equal(Accessibility.Public, p09set.DeclaredAccessibility);
21796Assert.Equal(Accessibility.Public, p10.DeclaredAccessibility);
21806Assert.Equal(Accessibility.Public, p10get.DeclaredAccessibility);
21816Assert.Equal(Accessibility.Public, p11.DeclaredAccessibility);
21830Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
21841Assert.Equal(Accessibility.Public, p12.DeclaredAccessibility);
21855Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
21866Assert.Equal(Accessibility.Public, p13.DeclaredAccessibility);
21868ValidateP13Accessor(p13.GetMethod, Accessibility.Public);
21891Assert.Equal(Accessibility.Public, p14.DeclaredAccessibility);
21894ValidateP14Accessor(p14.SetMethod, Accessibility.Public);
21916Assert.Equal(Accessibility.Public, p15.DeclaredAccessibility);
21918ValidateP15Accessor(p15.GetMethod, Accessibility.Public);
21941Assert.Equal(Accessibility.Public, p16.DeclaredAccessibility);
21944ValidateP16Accessor(p16.SetMethod, Accessibility.Public);
21967Assert.Equal(Accessibility.Public, p17.DeclaredAccessibility);
22008Assert.Equal(Accessibility.Public, p19.DeclaredAccessibility);
22010ValidateP13Accessor(p19.GetMethod, Accessibility.Public);
25164ValidatePropertyModifiers_23(source1, source2, Accessibility.Internal, Accessibility.Public,
25827ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.Internal,
26847Assert.Equal(Accessibility.Public, p01.DeclaredAccessibility);
26861Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
26957Assert.Equal(Accessibility.Public, p06.DeclaredAccessibility);
26967Assert.Equal(Accessibility.Public, p06get.DeclaredAccessibility);
26978Assert.Equal(Accessibility.Public, p07.DeclaredAccessibility);
26988Assert.Equal(Accessibility.Public, p07set.DeclaredAccessibility);
26999Assert.Equal(Accessibility.Public, p08.DeclaredAccessibility);
27009Assert.Equal(Accessibility.Public, p08get.DeclaredAccessibility);
27020Assert.Equal(Accessibility.Public, p09.DeclaredAccessibility);
27030Assert.Equal(Accessibility.Public, p09set.DeclaredAccessibility);
27041Assert.Equal(Accessibility.Public, p10.DeclaredAccessibility);
27051Assert.Equal(Accessibility.Public, p10get.DeclaredAccessibility);
27063Assert.Equal(Accessibility.Public, p11.DeclaredAccessibility);
27077Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
27645Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
27661Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
27719Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
27734Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
27807foreach (var tuple in new[] { (name: "P1", access: Accessibility.Public),
27987Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
28002Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
28014Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
28029Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
28041Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
28056Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
29597Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
29613Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
29712Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
29728Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
29742Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
29758Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
29772Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
29788Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30013Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
30047Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30125Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
30141Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30155Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
30171Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30185Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
30201Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30243Assert.Equal(Accessibility.Public, p5.DeclaredAccessibility);
30259Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30455Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
30471Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30485Assert.Equal(Accessibility.Public, p2.DeclaredAccessibility);
30501Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30515Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
30531Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30676Assert.Equal(Accessibility.Public, p1.DeclaredAccessibility);
30692Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30736Assert.Equal(Accessibility.Public, p3.DeclaredAccessibility);
30752Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30766Assert.Equal(Accessibility.Public, p4.DeclaredAccessibility);
30782Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
30795Assert.Equal(Accessibility.Public, p5.DeclaredAccessibility);
30811Assert.Equal(Accessibility.Public, accessor.DeclaredAccessibility);
31748private void ValidateNestedTypes_01(string source1, Accessibility expected = Accessibility.Public, TargetFramework targetFramework = TargetFramework.Standard, bool execute = true, Verification verify = default)
31814Assert.Equal(Accessibility.Public, compilation1.GetMember("I1.T" + i).DeclaredAccessibility);
43748Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
43807Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
43808Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
43947Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
43948Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
44077Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
44078Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
45074Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
45075Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
45230Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
45231Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
45365Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
45366Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
45558Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
45559Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
45698Assert.Equal(Accessibility.Public, f1.DeclaredAccessibility);
45699Assert.Equal(Accessibility.Public, f2.DeclaredAccessibility);
49536Assert.Equal(Accessibility.Public, member.DeclaredAccessibility);
49584Assert.Equal(Accessibility.Public, member.DeclaredAccessibility);
Symbols\Source\MethodTests.cs (10)
88check(@"internal class A { }", "A", 1, Accessibility.Public);
172Assert.Equal(Accessibility.Public, m2.DeclaredAccessibility);
381Assert.Equal(Accessibility.Public, outP.DeclaredAccessibility);
961Assert.Equal(Accessibility.Public, type1.DeclaredAccessibility);
1070Assert.Equal(Accessibility.Public, type1.DeclaredAccessibility);
1182Assert.Equal(Accessibility.Public, m0.DeclaredAccessibility);
1206Assert.Equal(Accessibility.Public, type2.DeclaredAccessibility);
1219Assert.Equal(Accessibility.Public, m0.DeclaredAccessibility);
1262Assert.Equal(Accessibility.Public, type1.DeclaredAccessibility);
1276Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
311? Accessibility.Public
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (29)
CodeGeneration\SyntaxGeneratorTests.cs (28)
789Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.Public),
829Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("x"), accessibility: Accessibility.Public),
833Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("x"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Abstract),
1016Generator.ConstructorDeclaration("c", accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Static),
1138Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility: Accessibility.Public),
1154Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Abstract),
1630Generator.InterfaceDeclaration("i", members: [Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Sealed)]),
1634Generator.InterfaceDeclaration("i", members: [Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Sealed)]),
1638Generator.InterfaceDeclaration("i", members: [Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.ReadOnly)]),
1642Generator.InterfaceDeclaration("i", members: [Generator.IndexerDeclaration([Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))], Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.Sealed)]),
1646Generator.InterfaceDeclaration("i", members: [Generator.IndexerDeclaration([Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))], Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.ReadOnly)]),
1650Generator.InterfaceDeclaration("i", members: [Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Static)]),
1654Generator.InterfaceDeclaration("i", members: [Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Static)]),
1658Generator.InterfaceDeclaration("i", members: [Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Sealed)]),
1716Generator.DelegateDeclaration("d", accessibility: Accessibility.Public),
1720Generator.DelegateDeclaration("d", accessibility: Accessibility.Public),
3105var publicCtor = Generator.WithAccessibility(ctor, Accessibility.Public);
3114var ctor = Generator.ConstructorDeclaration("C", accessibility: Accessibility.Public);
3139var filePublicClass = Generator.WithAccessibility(fileClass, Accessibility.Public);
3374Assert.Equal(Accessibility.Public, Generator.GetAccessibility(Generator.WithAccessibility(getAccessor, Accessibility.Public)));
3392var newProp = Generator.ReplaceNode(prop, getAccessor, Generator.WithAccessibility(getAccessor, Accessibility.Public));
3393Assert.Equal(Accessibility.Public, Generator.GetAccessibility(Generator.GetAccessor(newProp, DeclarationKind.GetAccessor)));
3395newProp = Generator.ReplaceNode(prop, setAccessor, Generator.WithAccessibility(setAccessor, Accessibility.Public));
3396Assert.Equal(Accessibility.Public, Generator.GetAccessibility(Generator.GetAccessor(newProp, DeclarationKind.SetAccessor)));
3799Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declX));
3805Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declY));
3811Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declZ));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (20)
CodeGeneration\CodeGenerationTests.cs (12)
61Accessibility accessibility = Accessibility.Public,
103Accessibility accessibility = Accessibility.Public,
136Accessibility accessibility = Accessibility.Public,
181Accessibility accessibility = Accessibility.Public,
221Accessibility accessibility = Accessibility.Public,
268Accessibility accessibility = Accessibility.Public,
339Accessibility accessibility = Accessibility.Public,
372Accessibility accessibility = Accessibility.Public,
411Accessibility defaultAccessibility = Accessibility.Public,
412Accessibility setterAccessibility = Accessibility.Public,
504Accessibility accessibility = Accessibility.Public,
708attributes: default, Accessibility.Public,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (66)
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (4)
267Accessibility.Public,
356attributes: default, Accessibility.Public, modifiers: default,
372attributes: default, Accessibility.Public, DeclarationModifiers.Abstract,
399attributes: default, Accessibility.Public, modifiers: default,
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.VisualBasic (103)
Lowering\IteratorRewriter\IteratorRewriter.vb (3)
139Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public)
142_currentField = F.StateMachineField(_elementType, Me.Method, GeneratedNames.MakeIteratorCurrentFieldName(), Accessibility.Public)
146F.StateMachineField(F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeIteratorInitialThreadIdName(), Accessibility.Public),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
380Case Accessibility.Public
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
142attributes:=Nothing, accessibility:=Accessibility.Public, modifiers:=Nothing,
149accessibility:=Accessibility.Public, modifiers:=Nothing,
391attributes:=Nothing, accessibility:=Accessibility.Public, modifiers:=Nothing,
397attributes:=Nothing, accessibility:=Accessibility.Public, modifiers:=Nothing,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (90)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (8)
380CheckMethod(m, constr, ".ctor", Accessibility.Public, isSub:=True, paramCount:=3)
416CheckMethod(m, toStr, "ToString", Accessibility.Public,
478CheckMethod(m, method, "Equals", Accessibility.Public,
513CheckMethod(m, method, "GetHashCode", Accessibility.Public,
553CheckMethod(m, method, "Equals", Accessibility.Public,
656Assert.Equal(Accessibility.Public, prop.DeclaredAccessibility)
671Accessibility.Public,
677Accessibility.Public,
SymbolsTests\Source\MethodTests.vb (29)
68Assert.Equal(Accessibility.Public, ctor.DeclaredAccessibility)
87Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility)
195Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility)
244Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility)
390Assert.Equal(Accessibility.Public, m1.DeclaredAccessibility)
980Assert.Equal(Accessibility.Public, mem1.DeclaredAccessibility)
986Assert.Equal(Accessibility.Public, mem2.DeclaredAccessibility)
1076Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1078Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1086Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1088Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1090Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1092Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1094Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1096Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1104Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility) ' private is better but Dev10 is public
1106Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1108Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1110Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1112Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1114Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1116Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1124Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1126Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1133Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1135Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1140Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility) ' private is better but Dev10 is public
1142Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
1144Assert.Equal(Accessibility.Public, mem.DeclaredAccessibility)
SymbolsTests\Source\PropertyTests.vb (16)
699VerifyProperty(type, "P", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=True, hasField:=False)
700VerifyProperty(type, "Q", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=False, hasField:=False)
701VerifyProperty(type, "R", Accessibility.Public, isFromSource, hasGet:=False, hasSet:=True, hasField:=False)
704VerifyProperty(type, "P", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=True, hasField:=False)
705VerifyProperty(type, "Q", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=False, hasField:=False)
706VerifyProperty(type, "R", Accessibility.Public, isFromSource, hasGet:=False, hasSet:=True, hasField:=False)
709VerifyProperty(type, "P", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=True, hasField:=True)
710VerifyProperty(type, "Q", Accessibility.Public, isFromSource, hasGet:=True, hasSet:=False, hasField:=False)
711VerifyProperty(type, "R", Accessibility.Public, isFromSource, hasGet:=False, hasSet:=True, hasField:=False)
4513CheckPropertyAccessibility(p1, Accessibility.Public, Accessibility.Public, Accessibility.Public)
4523CheckPropertyAccessibility(p6, Accessibility.Public, Accessibility.Public, Accessibility.NotApplicable)
4526CheckPropertyAccessibility(p7, Accessibility.Public, privateOrNotApplicable, Accessibility.Public)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
380Case Accessibility.Public
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (23)
CodeGeneration\SyntaxGeneratorTests.vb (23)
836Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility:=Accessibility.Public),
878Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.None),
883Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Abstract),
1337Generator.EventDeclaration("ev", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Static),
1377Generator.ConstructorDeclaration("c", accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Static),
1408Generator.ClassDeclaration("c", accessibility:=Accessibility.Public),
1461Generator.StructDeclaration("s", accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Partial),
1541Generator.InterfaceDeclaration("i", members:={Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Sealed)}),
1549Generator.InterfaceDeclaration("i", members:={Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Sealed)}),
1557Generator.InterfaceDeclaration("i", members:={Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.ReadOnly)}),
1565Generator.InterfaceDeclaration("i", members:={Generator.IndexerDeclaration({Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))}, Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.Sealed)}),
1573Generator.InterfaceDeclaration("i", members:={Generator.IndexerDeclaration({Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))}, Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.ReadOnly)}),
1647Generator.DelegateDeclaration("d", accessibility:=Accessibility.Public),
2664Assert.Equal(Accessibility.Public, Generator.GetAccessibility(m))
3078Assert.Equal(Accessibility.Public, _g.GetAccessibility(_g.WithAccessibility(getAccessor, Accessibility.Public)))
3091Dim newProp = _g.ReplaceNode(prop, getAccessor, _g.WithAccessibility(getAccessor, Accessibility.Public))
3092Assert.Equal(Accessibility.Public, _g.GetAccessibility(_g.GetAccessor(newProp, DeclarationKind.GetAccessor)))
3094newProp = _g.ReplaceNode(prop, setAccessor, _g.WithAccessibility(setAccessor, Accessibility.Public))
3095Assert.Equal(Accessibility.Public, _g.GetAccessibility(_g.GetAccessor(newProp, DeclarationKind.SetAccessor)))
3490Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declX))
3496Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declY))
3502Assert.Equal(Accessibility.Public, Generator.GetAccessibility(declZ))
Microsoft.CodeAnalysis.Workspaces (29)
Microsoft.CodeAnalysis.Workspaces.UnitTests (13)
Editing\SyntaxEditorTests.cs (5)
52editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
103editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
130editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
178editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
179editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.TypeExpression(SpecialType.System_Object), Accessibility.Public));
EditorConfigParsing\NamingStyleParserTests.cs (8)
72accessibility => Assert.Equal(Accessibility.Public, accessibility),
108accessibility => Assert.Equal(Accessibility.Public, accessibility),
146accessibility => Assert.Equal(Accessibility.Public, accessibility),
194accessibility => Assert.Equal(Accessibility.Public, accessibility),
230accessibility => Assert.Equal(Accessibility.Public, accessibility),
266accessibility => Assert.Equal(Accessibility.Public, accessibility),
304accessibility => Assert.Equal(Accessibility.Public, accessibility),
340accessibility => Assert.Equal(Accessibility.Public, accessibility),
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (10)
Microsoft.Interop.LibraryImportGenerator (19)
Analyzers\CustomMarshallerAttributeFixer.cs (19)
226accessibility: Accessibility.Public,
238accessibility: Accessibility.Public,
249Accessibility.Public,
265accessibility: Accessibility.Public,
281accessibility: Accessibility.Public,
296accessibility: Accessibility.Public,
312accessibility: Accessibility.Public,
328accessibility: Accessibility.Public,
343accessibility: Accessibility.Public,
421accessibility: Accessibility.Public,
431accessibility: Accessibility.Public,
441accessibility: Accessibility.Public,
451accessibility: Accessibility.Public,
461Accessibility.Public,
472accessibility: Accessibility.Public,
482accessibility: Accessibility.Public,
496accessibility: Accessibility.Public,
510accessibility: Accessibility.Public,
519accessibility: Accessibility.Public,
Microsoft.Interop.SourceGeneration (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices (6)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (6)
System.Text.Json.SourceGeneration (6)