64 references to ProtectedOrFriend
Microsoft.CodeAnalysis (1)
Symbols\Accessibility.cs (1)
30/// (more restrictive than <see cref="Protected"/>, <see cref="Friend"/> and <see cref="ProtectedOrFriend"/>).
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (1)
369[InlineData("friend,protected_friend", new[] { Accessibility.Friend, Accessibility.ProtectedOrFriend })]
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.VisualBasic.cs (1)
1492await TestUpdateDeclarationAsync<ClassStatementSyntax>(input, expected, accessibility: Accessibility.ProtectedOrFriend);
Microsoft.CodeAnalysis.VisualBasic (18)
Binding\Binder_Utils.vb (2)
222access = Accessibility.ProtectedOrFriend 1556AccessibilityProtectedFriend = CUShort(Accessibility.ProtectedOrFriend)
Compilation\ClsComplianceChecker.vb (1)
819Case Accessibility.Protected, Accessibility.ProtectedOrFriend
Declarations\DeclarationModifiersExtensions.vb (1)
16Case DeclarationModifiers.Friend Or DeclarationModifiers.Protected : Return Accessibility.ProtectedOrFriend
Errors\ErrorMessageHelpers.vb (1)
21Case Accessibility.ProtectedOrFriend
Semantics\AccessCheck.vb (3)
189Case Accessibility.Friend, Accessibility.ProtectedOrFriend 256Case Accessibility.ProtectedOrFriend 774s_mapAccessToAccessOutsideAssembly(Accessibility.ProtectedOrFriend) = Accessibility.Protected
Symbols\AccessibilityExtensions.vb (1)
27Case Accessibility.ProtectedOrFriend
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
117access = Accessibility.ProtectedOrFriend
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
616access = Accessibility.ProtectedOrFriend
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
348access = Accessibility.ProtectedOrFriend
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (1)
62Return If(((minAccessibility = Accessibility.[Protected]) AndAlso (maxAccessibility = Accessibility.Friend)), Accessibility.ProtectedOrFriend, maxAccessibility)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
450Return If(((minAccessibility = Accessibility.Protected) AndAlso (maxAccessibility = Accessibility.Friend)), Accessibility.ProtectedOrFriend, maxAccessibility)
Symbols\Source\OverrideHidingHelper.vb (1)
1009If overridden.DeclaredAccessibility = Accessibility.ProtectedOrFriend And Not overriding.ContainingAssembly = overridden.ContainingAssembly Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
30ProtectedFriend = CUShort(Accessibility.ProtectedOrFriend)
Symbols\Symbol.vb (1)
122Case Accessibility.ProtectedOrFriend
Syntax\SyntaxFacts.vb (1)
543Case Accessibility.ProtectedOrFriend
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
204accessibility = Accessibility.ProtectedOrFriend 210accessibility = Accessibility.ProtectedOrFriend
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
501Assert.Equal(Accessibility.ProtectedOrFriend, classH.DeclaredAccessibility)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (26)
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
74Assert.Equal(Accessibility.ProtectedOrFriend, f4.DeclaredAccessibility)
SymbolsTests\Metadata\PE\LoadingMethods.vb (1)
85Assert.Equal(Accessibility.ProtectedOrFriend, (M5.DeclaredAccessibility))
SymbolsTests\Metadata\PE\TypeAccessibility.vb (1)
95Assert.Equal(Accessibility.ProtectedOrFriend, ExceptionFromErrorCode.DeclaredAccessibility)
SymbolsTests\Source\FieldTests.vb (1)
146Assert.Equal(Accessibility.ProtectedOrFriend, fieldU.DeclaredAccessibility)
SymbolsTests\Source\MethodTests.vb (1)
124Assert.Equal(Accessibility.ProtectedOrFriend, m4.DeclaredAccessibility)
SymbolsTests\Source\PropertyTests.vb (20)
4515CheckPropertyAccessibility(p3, Accessibility.ProtectedOrFriend, Accessibility.ProtectedOrFriend, Accessibility.NotApplicable) 4517CheckPropertyAccessibility(p10, Accessibility.ProtectedOrFriend, Accessibility.Protected, Accessibility.ProtectedOrFriend) 4518CheckPropertyAccessibility(p11, Accessibility.ProtectedOrFriend, Accessibility.Friend, Accessibility.ProtectedOrFriend) 4705Accessibility.ProtectedOrFriend, 4710Accessibility.ProtectedOrFriend, 4712Accessibility.ProtectedOrFriend) 4720Accessibility.ProtectedOrFriend, 4722Accessibility.ProtectedOrFriend) 4730Accessibility.ProtectedOrFriend, 4731Accessibility.ProtectedOrFriend, 4732Accessibility.ProtectedOrFriend) 4735Accessibility.ProtectedOrFriend, 4736Accessibility.ProtectedOrFriend, 4750Accessibility.ProtectedOrFriend, 4752Accessibility.ProtectedOrFriend) 4755Accessibility.ProtectedOrFriend, 4757Accessibility.ProtectedOrFriend)
SymbolsTests\Source\TypeTests.vb (1)
268Assert.Equal(Accessibility.ProtectedOrFriend, i3Interface.DeclaredAccessibility)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
204accessibility = Accessibility.ProtectedOrFriend 210accessibility = Accessibility.ProtectedOrFriend
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
EditorConfigParsing\NamingStyleParserTests.cs (8)
75accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility), 113accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility)); 151accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility)); 197accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility), 235accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility)); 271accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility)); 309accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility)); 345accessibility => Assert.Equal(Accessibility.ProtectedOrFriend, accessibility));
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (2)
1407symbol.DeclaredAccessibility = Accessibility.ProtectedOrFriend OrElse 1440Case Accessibility.ProtectedOrInternal, Accessibility.ProtectedOrFriend
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
150Case Accessibility.ProtectedOrFriend
ObjectBrowser\DescriptionBuilder.vb (1)
323Case Accessibility.ProtectedOrFriend