116 references to Friend
Microsoft.CodeAnalysis (2)
Symbols\Accessibility.cs (2)
30/// (more restrictive than <see cref="Protected"/>, <see cref="Friend"/> and <see cref="ProtectedOrFriend"/>). 47/// (less restrictive than <see cref="Protected"/>, <see cref="Friend"/> and <see cref="ProtectedAndFriend"/>).
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
61get { return Accessibility.Friend; }
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (1)
369[InlineData("friend,protected_friend", new[] { Accessibility.Friend, Accessibility.ProtectedOrFriend })]
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\Binder_Utils.vb (2)
231access = Accessibility.Friend 1555AccessibilityFriend = CUShort(Accessibility.Friend)
Binding\LookupResult.vb (2)
838second.DeclaredAccessibility = Accessibility.Friend Then 845first.DeclaredAccessibility = Accessibility.Friend Then
Compilation\ClsComplianceChecker.vb (1)
823Case Accessibility.Private, Accessibility.ProtectedAndFriend, Accessibility.Friend
Declarations\DeclarationModifiersExtensions.vb (1)
15Case DeclarationModifiers.Friend : Return Accessibility.Friend
Emit\SynthesizedNamespaceSymbol.vb (1)
58Return Accessibility.Friend
Errors\ErrorMessageHelpers.vb (1)
25Case Accessibility.Friend
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
119result = Me.F.StateMachineField(awaiterType, Me._method, fieldName, SynthesizedLocalKind.AwaiterField, slotIndex, accessibility:=Accessibility.Friend)
Lowering\AsyncRewriter\AsyncRewriter.SpillFieldAllocator.vb (1)
44Accessibility.Friend)
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
173Accessibility.Friend)) 467Accessibility.Friend),
Lowering\LambdaRewriter\LambdaFrame.vb (1)
132Return Accessibility.Friend
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (1)
32Return If(TypeOf ContainingType Is LambdaFrame, Accessibility.Friend, Accessibility.Private)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (5)
219Accessibility.Friend), 230Accessibility.Friend), 246Accessibility.Friend), 257Accessibility.Friend), 354Return F.StateMachineField(localType, Me.Method, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend)
Semantics\AccessCheck.vb (4)
189Case Accessibility.Friend, Accessibility.ProtectedOrFriend 241Case Accessibility.Friend 727Debug.Assert(memberAccessOutsideAssembly <> Accessibility.Friend, "How can the access be friend outside the assembly ?") 773s_mapAccessToAccessOutsideAssembly(Accessibility.Friend) = Accessibility.Private
Symbols\AccessibilityExtensions.vb (1)
21Case Accessibility.Friend
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
166Return Accessibility.Friend
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
265Return Accessibility.Friend
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
114access = Accessibility.Friend
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
613access = Accessibility.Friend
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
345access = Accessibility.Friend 364access = Accessibility.Friend
Symbols\Metadata\PE\PENestedNamespaceSymbol.vb (1)
162result = Accessibility.Friend
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\NamespaceSymbol.vb (2)
202result = Accessibility.Friend 236If accessibility = Accessibility.Friend Then
Symbols\Source\OverrideHidingHelper.vb (1)
903If inaccessibleMember.DeclaredAccessibility = Accessibility.Friend AndAlso
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
29[Friend] = CUShort(Accessibility.Friend)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2364member.DeclaredAccessibility = Accessibility.Friend) Then
Symbols\Source\SourcePropertySymbol.vb (1)
1101Return (accessor < [property]) AndAlso ((accessor <> Accessibility.Protected) OrElse ([property] <> Accessibility.Friend))
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
47Return Accessibility.Friend
Symbols\Symbol.vb (1)
104Case Accessibility.Friend
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
182Return Accessibility.Friend
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (1)
102Return Accessibility.Friend
Syntax\SyntaxFacts.vb (1)
528Case Accessibility.Friend
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiers.vb (1)
70Return accessibility = Accessibility.Friend
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
206accessibility = Accessibility.Friend 209If accessibility = Accessibility.Friend Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenAsyncTests.vb (1)
9235Assert.Equal(Accessibility.Friend, method.DeclaredAccessibility)
CodeGen\CodeGenSelectCase.vb (1)
3371Assert.Equal(Accessibility.Friend, member.DeclaredAccessibility)
Emit\EmitMetadata.vb (3)
488Assert.Equal(Accessibility.Friend, classB.DeclaredAccessibility) 491Assert.Equal(Accessibility.Friend, classC.DeclaredAccessibility) 499Assert.Equal(Accessibility.Friend, classE.DeclaredAccessibility)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\PlaceholderMethodSymbol.vb (1)
55Return Accessibility.Friend
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiers.vb (1)
70Return accessibility = Accessibility.Friend
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Binding\LookupTests.vb (4)
964Assert.Equal(Accessibility.Friend, isolation.DeclaredAccessibilityOfMostAccessibleDescendantType) 966Assert.Equal(Accessibility.Friend, isolation.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType) 1121Assert.Equal(Accessibility.Friend, q.DeclaredAccessibilityOfMostAccessibleDescendantType) 1123Assert.Equal(Accessibility.Friend, q.RawLazyDeclaredAccessibilityOfMostAccessibleDescendantType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (39)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
111Assert.Equal(Accessibility.Friend, sym1.DeclaredAccessibility)
SymbolsTests\CompilationCreationTests.vb (2)
1883Assert.Equal(Accessibility.Friend, foo3.DeclaredAccessibility) 1905Assert.Equal(Accessibility.Friend, typeC302.DeclaredAccessibility)
SymbolsTests\Metadata\MetadataTypeTests.vb (1)
122Assert.Equal(Accessibility.Friend, class1.DeclaredAccessibility)
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
67Assert.Equal(Accessibility.Friend, f3.DeclaredAccessibility)
SymbolsTests\Metadata\PE\LoadingMethods.vb (1)
81Assert.Equal(Accessibility.Friend, (M4.DeclaredAccessibility))
SymbolsTests\Metadata\PE\TypeAccessibility.vb (2)
40Assert.Equal(Accessibility.Friend, fxAssembly.DeclaredAccessibility) 51Assert.Equal(Accessibility.Friend, ControlKeyState.DeclaredAccessibility)
SymbolsTests\Source\FieldTests.vb (2)
155Assert.Equal(Accessibility.Friend, fieldV.DeclaredAccessibility) 169Assert.Equal(Accessibility.Friend, fieldL.DeclaredAccessibility)
SymbolsTests\Source\MethodTests.vb (9)
113Assert.Equal(Accessibility.Friend, m3.DeclaredAccessibility) 144Assert.Equal(Accessibility.Friend, m6.DeclaredAccessibility) 263Assert.Equal(Accessibility.Friend, m2.DeclaredAccessibility) 1074Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility) 1082Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility) 1102Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility) 1122Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility) 1129Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility) 1138Assert.Equal(Accessibility.Friend, typemem.DeclaredAccessibility)
SymbolsTests\Source\NamespaceGlobalTests.vb (1)
492Assert.Equal(Accessibility.Friend, symbolC3(0).DeclaredAccessibility)
SymbolsTests\Source\PropertyTests.vb (10)
1253VerifyAutoProperty(type, "Q", Accessibility.Friend, isFromSource) 4514CheckPropertyAccessibility(p2, Accessibility.Friend, Accessibility.Friend, Accessibility.NotApplicable) 4518CheckPropertyAccessibility(p11, Accessibility.ProtectedOrFriend, Accessibility.Friend, Accessibility.ProtectedOrFriend) 4527CheckPropertyAccessibility(p8, Accessibility.Friend, Accessibility.Friend, privateOrNotApplicable) 4707Accessibility.[Friend]) 4721Accessibility.[Friend], 4725Accessibility.[Friend], 4726Accessibility.[Friend],
SymbolsTests\Source\TypeTests.vb (9)
94Assert.Equal(Accessibility.Friend, ifaceA.DeclaredAccessibility) 129Assert.Equal(Accessibility.Friend, delegateB.DeclaredAccessibility) 150Assert.Equal(Accessibility.Friend, enumE.DeclaredAccessibility) 165Assert.Equal(Accessibility.Friend, structI.DeclaredAccessibility) 180Assert.Equal(Accessibility.Friend, moduleM.DeclaredAccessibility) 608Assert.Equal(Accessibility.Friend, classA.DeclaredAccessibility) 811Assert.Equal(Accessibility.Friend, type1.DeclaredAccessibility) ' NOTE: for erroneous symbols we return 'best guess' 813Assert.Equal(Accessibility.Friend, type1.DeclaredAccessibility) ' NOTE: for erroneous symbols we return 'best guess' 815Assert.Equal(Accessibility.Friend, type1.DeclaredAccessibility) ' NOTE: for erroneous symbols we return 'best guess'
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
206accessibility = Accessibility.Friend 209If accessibility = Accessibility.Friend Then
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
EditorConfigParsing\NamingStyleParserTests.cs (8)
74accessibility => Assert.Equal(Accessibility.Friend, accessibility), 109accessibility => Assert.Equal(Accessibility.Friend, accessibility), 147accessibility => Assert.Equal(Accessibility.Friend, accessibility), 196accessibility => Assert.Equal(Accessibility.Friend, accessibility), 231accessibility => Assert.Equal(Accessibility.Friend, accessibility), 267accessibility => Assert.Equal(Accessibility.Friend, accessibility), 305accessibility => Assert.Equal(Accessibility.Friend, accessibility), 341accessibility => Assert.Equal(Accessibility.Friend, accessibility),
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
85case Accessibility.Friend:
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (2)
1409symbol.DeclaredAccessibility = Accessibility.Friend 1438Case Accessibility.Internal, Accessibility.Friend
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
148Case Accessibility.Friend
ObjectBrowser\DescriptionBuilder.vb (1)
319Case Accessibility.Friend