15 references to HasInternalAccessTo
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\AccessCheck.cs (4)
286return (object)withinAssembly == (object)assembly || withinAssembly.HasInternalAccessTo(assembly); 378return withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly); 381if (!withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly)) 392if (withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly))
FlowAnalysis\EmptyStructTypeCache.cs (1)
260if (!assembly.HasInternalAccessTo(symbol.ContainingAssembly)) return false;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
522if (!crossedAssemblyBoundaryWithoutInternalsVisibleTo && !curr.ContainingAssembly.HasInternalAccessTo(next.ContainingAssembly))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1709if (!overriding.ContainingAssembly.HasInternalAccessTo(overridden.ContainingAssembly) &&
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (2)
72if (!this.ContainingAssembly.HasInternalAccessTo(_overriddenAccessor.ContainingAssembly)) 84if (!this.ContainingAssembly.HasInternalAccessTo(_overriddenAccessor.ContainingAssembly))
Symbols\TypeSymbolExtensions.cs (6)
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)) 1089if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1107if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1127if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly) || 1138if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly) &&