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