459 references to Internal
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
108 case Accessibility.Internal:
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
589accessibility: Accessibility.Internal,
MakeExeTypesInternalFixer.cs (1)
40editor.SetAccessibility(decl, Accessibility.Internal);
Utilities\SymbolExtensions.cs (1)
50case Accessibility.Internal:
Microsoft.Analyzers.Local (1)
Utilities\SymbolExtensions.cs (1)
26case Accessibility.Internal:
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
GeneratorHelpers.cs (1)
20case Accessibility.Internal:
Microsoft.CodeAnalysis (3)
Symbols\Accessibility.cs (3)
24/// (more restrictive than <see cref="Protected"/>, <see cref="Internal"/> and <see cref="ProtectedOrInternal"/>). 37Friend = Internal, 41/// (less restrictive than <see cref="Protected"/>, <see cref="Internal"/> and <see cref="ProtectedAndInternal"/>).
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AccessibilityUtilities.cs (3)
26if (accessibility1 == Accessibility.Internal || accessibility2 == Accessibility.Internal) 28return Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
61case Accessibility.Internal: 579: Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
231case Accessibility.Internal: 292case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
227Accessibility.Internal, 256builder.Add(Accessibility.Internal); 475case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
87Accessibility.Internal,
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
148case Accessibility.Internal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
72case Accessibility.Internal: 337case Accessibility.Internal:
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (1)
101return Accessibility.Internal;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
266return Accessibility.Internal;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
166return Accessibility.Internal;
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Lookup.cs (1)
1505if ((unwrappedSymbol.DeclaredAccessibility == Accessibility.Internal ||
Binder\Semantics\AccessCheck.cs (3)
96case Accessibility.Internal: 277case Accessibility.Internal: 375case Accessibility.Internal:
Compiler\ClsComplianceChecker.cs (1)
1243case Accessibility.Internal:
Emitter\Model\MethodSymbolAdapter.cs (1)
600accessibility == Accessibility.Internal)
FlowAnalysis\EmptyStructTypeCache.cs (1)
258case Accessibility.Internal:
SymbolDisplay\SymbolDisplayVisitor.cs (1)
398case Accessibility.Internal:
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
149get { return Accessibility.Internal; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
202get { return Accessibility.Internal; }
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
539access = Accessibility.Internal;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
497return Accessibility.Internal;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
644access = Accessibility.Internal; 669access = Accessibility.Internal;
Symbols\PropertyOrEventSymbolExtensions.cs (1)
79return ((minAccessibility == Accessibility.Protected) && (maxAccessibility == Accessibility.Internal))
Symbols\Source\ModifierUtils.cs (1)
529return Accessibility.Internal;
Symbols\Source\SourceMemberContainerSymbol.cs (4)
738else if (fieldDeclaredAccessibility == Accessibility.Internal || containerEffectiveAccessibility == Accessibility.Internal) 901case Accessibility.Internal: 902result = Accessibility.Internal;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1660case Accessibility.Internal:
Symbols\Source\SourceNamespaceSymbol.cs (1)
371if (declaredAccessibility != Accessibility.Public && declaredAccessibility != Accessibility.Internal)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1147((accessor != Accessibility.Protected) || (property != Accessibility.Internal));
Symbols\Symbol.cs (1)
268case Accessibility.Internal:
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
809public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
72public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
188get { return Accessibility.Internal; }
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
91public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
57public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
50public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\TypeSymbolExtensions.cs (4)
1016case Accessibility.Internal: 1020if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1032if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1104case Accessibility.Internal:
Syntax\SyntaxFacts.cs (1)
368case Accessibility.Internal:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
91return accessibility == Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
312: Accessibility.Internal; 336Accessibility.Internal)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
119(SyntaxKind.InternalKeyword, _) => Accessibility.Internal, 122(SyntaxKind.ProtectedKeyword, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (2)
134if (propertySymbol.DeclaredAccessibility < Accessibility.Internal) 165getAccessor.DeclaredAccessibility < Accessibility.Internal)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
98SymbolVisibility.Internal => accessibility is >= Accessibility.Internal, 102SymbolVisibility.Private => accessibility is >= Accessibility.Internal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
62case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
276? Accessibility.Internal
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (1)
395accessibility: Accessibility.Internal,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (9)
55Accessibility.Internal, 123new[] { Accessibility.NotApplicable, Accessibility.Public, Accessibility.Internal, Accessibility.Private, Accessibility.Protected, Accessibility.ProtectedAndInternal, Accessibility.ProtectedOrInternal }, 184Accessibility.Internal, 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 }, 368[InlineData("internal,protected_internal", new[] { Accessibility.Internal, 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 })] 374[InlineData("internal,protected,invalid", new[] { Accessibility.Internal, Accessibility.Protected })]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenDynamicTests.cs (1)
826Assert.Equal(Accessibility.Internal, d.DeclaredAccessibility);
CodeGen\CodeGenReadonlyStructTests.cs (5)
839AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal); 1388AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal); 1456AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal); 1524AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal); 2604AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal);
CodeGen\SwitchTests.cs (1)
3044Assert.Equal(Accessibility.Internal, member.DeclaredAccessibility);
Emit\EmitMetadataTests.cs (14)
499Assert.Equal(Accessibility.Internal, classB.DeclaredAccessibility); 503Assert.Equal(Accessibility.Internal, classC.DeclaredAccessibility); 511Assert.Equal(Accessibility.Internal, classE.DeclaredAccessibility); 563Assert.Equal(Accessibility.Internal, f2.DeclaredAccessibility); 668CheckConstantField(type, "J", Accessibility.Internal, SpecialType.System_Int32, -1); 870CheckPropertyAccessibility(p2, Accessibility.Internal, Accessibility.Internal, Accessibility.NotApplicable); 874CheckPropertyAccessibility(p8, Accessibility.Internal, Accessibility.Internal, privateOrNotApplicable); 877CheckPropertyAccessibility(p11, Accessibility.ProtectedOrInternal, Accessibility.Internal, Accessibility.ProtectedOrInternal); 1100CheckPropertyAccessibility(propertyQ, Accessibility.Public, Accessibility.Public, Accessibility.Internal); 1121CheckPropertyAccessibility(propertyQ, Accessibility.Public, Accessibility.NotApplicable, Accessibility.Internal); 1331CheckEnumType(type, Accessibility.Internal, SpecialType.System_Int32); 1355CheckEnumType(type, Accessibility.Internal, SpecialType.System_Int16);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (24)
Emit\UnmanagedTypeModifierTests.cs (24)
643AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 649AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 678AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 691AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 724AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 730AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 756AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 769AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 799AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 805AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 831AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 844AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 874AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 880AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 906AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 919AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 949AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 955AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 982AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 995AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 1041AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, delegateTypeParameter, module.ContainingAssembly.Name); 1047AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, lambdaTypeParameter, module.ContainingAssembly.Name); 1069AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 1095AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Attributes\AttributeTests_IsByRefLike.cs (2)
103AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsByRefLikeAttribute, Accessibility.Internal); 1093Assert.Equal(Accessibility.Internal, typeSymbol.DeclaredAccessibility);
Attributes\AttributeTests_IsUnmanaged.cs (7)
377AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 396AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 424AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 444AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 653AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 736AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 750AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name);
Attributes\AttributeTests_NullablePublicOnly.cs (1)
602Assert.Equal(publicDefinition ? Accessibility.Public : Accessibility.Internal, type.DeclaredAccessibility);
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
660Assert.Equal(Accessibility.Internal, typeSymbol.DeclaredAccessibility);
Attributes\AttributeTests_RefReadOnly.cs (2)
74AssertDeclaresType(peModule, WellKnownType.System_Runtime_CompilerServices_IsReadOnlyAttribute, Accessibility.Internal); 2552Assert.Equal(Accessibility.Internal, typeSymbol.DeclaredAccessibility);
Attributes\AttributeTests_RefSafetyRules.cs (1)
237Assert.Equal(publicDefinition ? Accessibility.Public : Accessibility.Internal, type.DeclaredAccessibility);
Semantics\RecordTests.cs (2)
13421Assert.True(sealedCopyCtor.DeclaredAccessibility == Accessibility.Internal); 13425Assert.True(unsealedCopyCtor.DeclaredAccessibility == Accessibility.Internal);
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
615return Accessibility.Internal; 664case Accessibility.Internal:
Completion\CompletionProviders\OverrideCompletionProvider.cs (2)
158Accessibility.NotApplicable => Accessibility.Internal, 168Accessibility.Internal => Accessibility.ProtectedOrInternal,
GenerateType\CSharpGenerateTypeService.cs (2)
520Accessibility.Internal) 530: Accessibility.Internal;
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
91return accessibility == Accessibility.Internal;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (2)
134if (propertySymbol.DeclaredAccessibility < Accessibility.Internal) 165getAccessor.DeclaredAccessibility < Accessibility.Internal)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
98SymbolVisibility.Internal => accessibility is >= Accessibility.Internal, 102SymbolVisibility.Private => accessibility is >= Accessibility.Internal,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\DelegateTypeTests.cs (1)
14385Assert.Equal(Accessibility.Internal, delegateType.DeclaredAccessibility);
Semantics\NullableReferenceTypesTests.cs (2)
98807Assert.Equal(Accessibility.Internal, nullableAttribute.AttributeClass.DeclaredAccessibility); 104932Assert.Equal(Accessibility.Internal, nullableAttribute.AttributeClass.DeclaredAccessibility);
Semantics\RecordStructTests.cs (2)
661Assert.Equal(Accessibility.Internal, comp.GlobalNamespace.GetTypeMember("S1").DeclaredAccessibility); 663Assert.Equal(Accessibility.Internal, comp.GlobalNamespace.GetTypeMember("S3").DeclaredAccessibility);
Semantics\TopLevelStatementsTests.cs (5)
9057Assert.Equal(Accessibility.Internal, entryPoint.ContainingType.DeclaredAccessibility); 9176Assert.Equal(Accessibility.Internal, entryPoint.ContainingType.DeclaredAccessibility); 9198Assert.Equal(Accessibility.Internal, entryPoint.ContainingType.DeclaredAccessibility); 9227Assert.Equal(Accessibility.Internal, entryPoint.ContainingType.DeclaredAccessibility); 9326Assert.Equal(Accessibility.Internal, entryPoint.ContainingType.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (108)
Symbols\AnonymousTypesSymbolTests.cs (1)
1024Assert.Equal(Accessibility.Internal, type.DeclaredAccessibility);
Symbols\CompilationCreationTests.cs (2)
2394Assert.Equal(Accessibility.Internal, foo3.DeclaredAccessibility); 2436Assert.Equal(Accessibility.Internal, typeC302.DeclaredAccessibility);
Symbols\DefaultInterfaceImplementationTests.cs (75)
8479Assert.Equal(Accessibility.Internal, m04.DeclaredAccessibility); 8886foreach (var tuple in new[] { (name: "M1", access: Accessibility.Public), (name: "M2", access: Accessibility.Internal), (name: "M3", access: Accessibility.Private) }) 9255ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Internal, isStatic: isStatic); 9261CompileAndVerify(compilation1, expectedOutput: !Execute(isStatic) ? null : "M1", verify: Verify(isStatic), symbolValidator: (m) => ValidateMethodModifiersImplicit_10(m, Accessibility.Internal, isStatic: isStatic)).VerifyDiagnostics(); 9263ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Internal, isStatic: isStatic); 9271ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal, isStatic: isStatic); 9293ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Internal, isStatic: isStatic); 9306ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Internal, isStatic: isStatic); 9409ValidateMethodModifiers_10_02(source1, source2, Accessibility.Internal, 9532CompileAndVerify(compilation1, expectedOutput: "M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersExplicit_10(m, Accessibility.Internal)); 9534ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.Internal); 9541ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal); 9552ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.Internal); 9563ValidateMethodModifiersExplicit_10(compilation4.SourceModule, Accessibility.Internal); 9605ValidateMethodModifiers_10_02(source1, source2, Accessibility.Internal, 9658ValidateMethodModifiers_10_02(source1, source2, Accessibility.Internal, 9716ValidateMethodModifiers_10_02(source1, source2, Accessibility.Internal, 9774ValidateMethodModifiers_10_02(source1, source2, Accessibility.Internal, 9831CompileAndVerify(compilation1, expectedOutput: "Test2.M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersExplicitInTest2_10(m, Accessibility.Internal)); 9833ValidateMethodModifiersExplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 9840ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal); 9845CompileAndVerify(compilation3, expectedOutput: "Test2.M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersExplicitInTest2_10(m, Accessibility.Internal)); 9847ValidateMethodModifiersExplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 9852CompileAndVerify(compilation4, expectedOutput: "Test2.M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersExplicitInTest2_10(m, Accessibility.Internal)); 9854ValidateMethodModifiersExplicitInTest2_10(compilation4.SourceModule, Accessibility.Internal); 9905ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal); 9974ValidateMethodModifiersImplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 9980CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : "M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersImplicitInTest2_10(m, Accessibility.Internal)).VerifyDiagnostics(); 9982ValidateMethodModifiersImplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 9990ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal); 10006ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10054CompileAndVerify(compilation3, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : "M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersImplicitInTest2_10(m, Accessibility.Internal)).VerifyDiagnostics(); 10056ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10062CompileAndVerify(compilation3, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : "M1", verify: VerifyOnMonoOrCoreClr, symbolValidator: (m) => ValidateMethodModifiersImplicitInTest2_10(m, Accessibility.Internal)).VerifyDiagnostics(); 10064ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10102Assert.Equal(Accessibility.Internal, m1.DeclaredAccessibility); 10912Assert.Equal(Accessibility.Internal, m1.DeclaredAccessibility); 13193Assert.Equal(Accessibility.Internal, p04.DeclaredAccessibility); 13203Assert.Equal(Accessibility.Internal, p04get.DeclaredAccessibility); 13442ValidateP15Accessor(p15.SetMethod, Accessibility.Internal); 14277(name: "P2", access: Accessibility.Internal), 14279(name: "P4", access: Accessibility.Internal), 14280(name: "P5", access: Accessibility.Internal), 14281(name: "P6", access: Accessibility.Internal), 14282(name: "P7", access: Accessibility.Internal), 14283(name: "P8", access: Accessibility.Internal)}) 14875ValidatePropertyModifiers_11_01(source1, source2, Accessibility.Internal, 17451ValidatePropertyModifiers_20(source1, source2, Accessibility.Internal); 17721ValidatePropertyModifiers_22(source1, Accessibility.Internal); 18436ValidatePropertyModifiers_23(source1, source2, Accessibility.Internal, Accessibility.Public, 19174ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.Internal, 19861ValidateMethod(p1set, Accessibility.Internal); 19905ValidateMethod(p1set, Accessibility.Internal); 21670Assert.Equal(Accessibility.Internal, p04.DeclaredAccessibility); 21680Assert.Equal(Accessibility.Internal, p04get.DeclaredAccessibility); 21919ValidateP15Accessor(p15.SetMethod, Accessibility.Internal); 22694ValidatePropertyModifiers_11_01(source1, source2, Accessibility.Internal, 24466ValidatePropertyModifiers_20(source1, source2, Accessibility.Internal); 24640ValidatePropertyModifiers_22(source1, Accessibility.Internal); 25164ValidatePropertyModifiers_23(source1, source2, Accessibility.Internal, Accessibility.Public, 25827ValidatePropertyModifiers_23(source1, source2, Accessibility.Public, Accessibility.Internal, 26915Assert.Equal(Accessibility.Internal, p04.DeclaredAccessibility); 26925Assert.Equal(Accessibility.Internal, p04get.DeclaredAccessibility); 27808(name: "P2", access: Accessibility.Internal), 28386ValidateEventModifiers_11(source1, source2, Accessibility.Internal, 30856ValidateEventModifiers_20(source1, source2, Accessibility.Internal); 32252ValidateNestedTypes_01(source1 + source2, Accessibility.Internal); 43809Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 43949Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 44079Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 45076Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 45232Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 45367Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 45560Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility); 45700Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility);
Symbols\Metadata\MetadataTypeTests.cs (1)
90Assert.Equal(Accessibility.Internal, class1.DeclaredAccessibility);
Symbols\Metadata\PE\LoadingFields.cs (1)
78Assert.Equal(Accessibility.Internal, f3.DeclaredAccessibility);
Symbols\Metadata\PE\LoadingMethods.cs (1)
84Assert.Equal(Accessibility.Internal, localM4.DeclaredAccessibility);
Symbols\Metadata\PE\TypeAccessibility.cs (2)
44Assert.Equal(Accessibility.Internal, frameworkAssembly.DeclaredAccessibility); 58Assert.Equal(Accessibility.Internal, controlKeyState.DeclaredAccessibility);
Symbols\MissingSpecialMember.cs (3)
165Assert.Equal(Accessibility.Internal, lookupType.DeclaredAccessibility); 273Assert.Equal(Accessibility.Internal, wellKnownType.DeclaredAccessibility); 277Assert.Equal(Accessibility.Internal, lookupType.DeclaredAccessibility);
Symbols\Source\DelegateTests.cs (2)
137Assert.Equal(Accessibility.Internal, v.DeclaredAccessibility); 209Assert.Equal(Accessibility.Internal, d.DeclaredAccessibility);
Symbols\Source\EventTests.cs (2)
123Assert.Equal(Accessibility.Internal, @event.DeclaredAccessibility); 1878Assert.Equal(Accessibility.Internal, event3.AddMethod.DeclaredAccessibility);
Symbols\Source\FileModifierTests.cs (1)
95Assert.Equal(Accessibility.Internal, outer.DeclaredAccessibility);
Symbols\Source\ModifierTests.cs (8)
58Assert.Equal(Accessibility.Internal, m4.DeclaredAccessibility); 74Assert.Equal(Accessibility.Internal, m8.DeclaredAccessibility); 78Assert.Equal(Accessibility.Internal, m8_1.DeclaredAccessibility); 82Assert.Equal(Accessibility.Internal, m8_2.DeclaredAccessibility); 85Assert.Equal(Accessibility.Internal, m9.DeclaredAccessibility); 88Assert.Equal(Accessibility.Internal, m10.DeclaredAccessibility); 91Assert.Equal(Accessibility.Internal, m11.DeclaredAccessibility); 120Assert.Equal(Accessibility.Internal, m4.DeclaredAccessibility);
Symbols\Source\PropertyTests.cs (4)
796Accessibility.Internal); 810Accessibility.Internal, 814Accessibility.Internal, 815Accessibility.Internal,
Symbols\TypeTests.cs (5)
90Assert.Equal(Accessibility.Internal, a.DeclaredAccessibility); 91Assert.Equal(Accessibility.Internal, b.DeclaredAccessibility); 92Assert.Equal(Accessibility.Internal, s.DeclaredAccessibility); 281Assert.Equal(Accessibility.Internal, type2.DeclaredAccessibility); 870Assert.Equal(Accessibility.Internal, classA.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
AttributeValidation.cs (1)
28case Accessibility.Internal:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdMetadataTests.cs (1)
115Assert.Equal(Accessibility.Internal, clas.DeclaredAccessibility);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1677Accessibility.Internal => [InternalKeyword],
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
614return Accessibility.Internal; 633return Accessibility.Internal; 637return Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
312: Accessibility.Internal; 336Accessibility.Internal)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
119(SyntaxKind.InternalKeyword, _) => Accessibility.Internal, 122(SyntaxKind.ProtectedKeyword, Accessibility.Internal) => Accessibility.ProtectedOrInternal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
62case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
276? Accessibility.Internal
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (39)
CodeGeneration\SymbolEditorTests.cs (1)
283var newSymbol = (INamedTypeSymbol)await editor.EditAllDeclarationsAsync(symbol, (e, d) => e.SetAccessibility(d, Accessibility.Internal));
CodeGeneration\SyntaxGeneratorTests.cs (38)
1183Generator.IndexerDeclaration(parameters: [Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))], type: Generator.IdentifierName("t"), accessibility: Accessibility.Internal, modifiers: DeclarationModifiers.Abstract), 1480Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal, modifiers: DeclarationModifiers.Abstract), 2943Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.ClassDeclaration("c", accessibility: Accessibility.Internal))); 2944Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.StructDeclaration("s", accessibility: Accessibility.Internal))); 2945Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.EnumDeclaration("i", accessibility: Accessibility.Internal))); 2946Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.EnumDeclaration("e", accessibility: Accessibility.Internal))); 2947Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.DelegateDeclaration("d", accessibility: Accessibility.Internal))); 2948Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.MethodDeclaration("m", accessibility: Accessibility.Internal))); 2949Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.ConstructorDeclaration(accessibility: Accessibility.Internal))); 2951Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal))); 2952Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.IndexerDeclaration([Generator.ParameterDeclaration("i")], Generator.IdentifierName("t"), accessibility: Accessibility.Internal))); 2953Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility: Accessibility.Internal))); 2955Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility: Accessibility.Internal))); 2956Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Internal))); 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))); 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))); 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)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
CodeGeneration\CodeGenerationTests.CSharp.cs (5)
242[InlineData(Accessibility.Internal)] 320accessibility: Accessibility.Internal, 1017setterAccessibility: Accessibility.Internal); 1031setterAccessibility: Accessibility.Internal); 1424await TestUpdateDeclarationAsync<ClassDeclarationSyntax>(input, expected, accessibility: Accessibility.Internal);
CodeGeneration\CodeGenerationTests.VisualBasic.cs (2)
221accessibility: Accessibility.Internal, 235accessibility: Accessibility.Internal,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DkmUtilities.cs (1)
318case Accessibility.Internal:
Microsoft.CodeAnalysis.Features (30)
Common\GlyphExtensions.cs (14)
57Accessibility.Internal => Glyph.ClassInternal, 65Accessibility.Internal => Glyph.ConstantInternal, 73Accessibility.Internal => Glyph.DelegateInternal, 81Accessibility.Internal => Glyph.EnumInternal, 89Accessibility.Internal => Glyph.EnumMemberInternal, 100Accessibility.Internal => Glyph.EventInternal, 108Accessibility.Internal => Glyph.ExtensionMethodInternal, 116Accessibility.Internal => Glyph.FieldInternal, 124Accessibility.Internal => Glyph.InterfaceInternal, 150Accessibility.Internal => Glyph.MethodInternal, 158Accessibility.Internal => Glyph.ModuleInternal, 175Accessibility.Internal => Glyph.PropertyInternal, 192Accessibility.Internal => Glyph.StructureInternal, 222return Accessibility.Internal;
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (2)
123Accessibility.Internal => declaredAccessibility is Accessibility.Internal or Accessibility.ProtectedOrInternal,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
422(symbol.DeclaredAccessibility == Accessibility.Internal && internalsVisible);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
316attributes: default, Accessibility.Internal, modifiers: default,
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
915: Accessibility.Internal;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
193return symbol.DeclaredAccessibility is Accessibility.Internal or
GenerateType\AbstractGenerateTypeService.cs (1)
256return Accessibility.Internal;
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
653case Accessibility.Internal:
NavigateTo\RoslynNavigateToItem.cs (1)
322case Accessibility.Internal:
Shared\Extensions\ISymbolExtensions_2.cs (1)
175case Accessibility.Internal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
148case Accessibility.Internal:
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
72case Accessibility.Internal: 337case Accessibility.Internal:
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (1)
101return Accessibility.Internal;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
266return Accessibility.Internal;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
166return Accessibility.Internal;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
631.Replace(nameof(Accessibility.Internal), string.Empty);
Microsoft.CodeAnalysis.VisualBasic (1)
SymbolDisplay\SymbolDisplayVisitor.vb (1)
354Case Accessibility.Internal
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (2)
174Case Accessibility.Internal 182Case Accessibility.Internal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
41Case Accessibility.Internal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
378Case Accessibility.Internal
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
Symbols\EEMethodSymbol.vb (1)
368Return Accessibility.Internal
Symbols\EENamedTypeSymbol.vb (1)
191Return Accessibility.Internal
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\OverrideCompletionProvider.vb (2)
109seenAccessibility = Accessibility.Internal 123If seenAccessibility = Accessibility.Internal Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\WellKnownTypeValidationTests.vb (3)
45Assert.Equal(Accessibility.Internal, lookup.DeclaredAccessibility) 161Assert.Equal(Accessibility.Internal, wellKnown.DeclaredAccessibility) 169Assert.Equal(Accessibility.Internal, lookup.DeclaredAccessibility)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (2)
420Return Accessibility.Internal 444Return Accessibility.Internal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (2)
174Case Accessibility.Internal 182Case Accessibility.Internal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
41Case Accessibility.Internal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
378Case Accessibility.Internal
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (40)
CodeGeneration\SyntaxGeneratorTests.vb (40)
1793Generator.IndexerDeclaration({Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))}, Generator.IdentifierName("t"), Accessibility.Internal, DeclarationModifiers.Abstract), 1837Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal, modifiers:=DeclarationModifiers.Abstract), 2641Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.ClassDeclaration("c", accessibility:=Accessibility.Internal))) 2642Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.StructDeclaration("s", accessibility:=Accessibility.Internal))) 2643Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.InterfaceDeclaration("i", accessibility:=Accessibility.Internal))) 2644Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.EnumDeclaration("e", accessibility:=Accessibility.Internal))) 2645Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.DelegateDeclaration("d", accessibility:=Accessibility.Internal))) 2646Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.MethodDeclaration("m", accessibility:=Accessibility.Internal))) 2647Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.ConstructorDeclaration(accessibility:=Accessibility.Internal))) 2649Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal))) 2650Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), accessibility:=Accessibility.Internal))) 2651Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal))) 2653Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal))) 2654Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal))) 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))) 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))) 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))) 2692Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.WithAccessibility(m, Accessibility.Internal)))
Microsoft.CodeAnalysis.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AccessibilityUtilities.cs (3)
26if (accessibility1 == Accessibility.Internal || accessibility2 == Accessibility.Internal) 28return Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
61case Accessibility.Internal: 579: Accessibility.Internal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
231case Accessibility.Internal: 292case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
227Accessibility.Internal, 256builder.Add(Accessibility.Internal); 475case Accessibility.Internal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
87Accessibility.Internal,
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
175case Accessibility.Internal:
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
175case Accessibility.Internal:
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Interop.SourceGeneration (3)
ISymbolExtensions.cs (2)
18if (symbol.DeclaredAccessibility - Accessibility.Internal < 0) 26if (current.DeclaredAccessibility - Accessibility.Internal < 0)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
Microsoft.Maui.Controls.BindingSourceGen (1)
ISymbolExtensions.cs (1)
9 || symbol.DeclaredAccessibility == Accessibility.Internal
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
592 if (type.DeclaredAccessibility == Accessibility.Internal && internalsVisible.Contains(type.ContainingAssembly, SymbolEqualityComparer.Default))
Microsoft.VisualStudio.LanguageServices (6)
GenerateType\GenerateTypeDialogViewModel.cs (2)
192PopulateAccessList("internal", Accessibility.Internal, LanguageNames.CSharp); 193PopulateAccessList("Friend", Accessibility.Internal, LanguageNames.VisualBasic);
Library\ObjectBrowser\ObjectList.cs (2)
181case Accessibility.Internal: 257case Accessibility.Internal:
Progression\GraphBuilder.cs (1)
441case Accessibility.Internal:
Progression\IconHelper.cs (1)
32case Accessibility.Internal:
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (2)
1036Accessibility.Internal => EnvDTE.vsCMAccess.vsCMAccessProject, 3004return Accessibility.Internal;
ObjectBrowser\DescriptionBuilder.cs (1)
143case Accessibility.Internal:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
59declaredAccessibility: Accessibility.Internal);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
1438Case Accessibility.Internal, Accessibility.Friend
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
126case Accessibility.Internal:
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationAnalyzer.cs (1)
42|| propertySymbol.DeclaredAccessibility < Accessibility.Internal)
System.Windows.Forms.Analyzers.VisualBasic (1)
Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationDiagnosticAnalyzer.vb (1)
45propertySymbol.DeclaredAccessibility < Accessibility.Internal Then