2 implementations of IAssemblySymbol_GivesAccessTo
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
63bool IAssemblySymbol.GivesAccessTo(IAssemblySymbol assemblyWantingAccess)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
739Private Function IAssemblySymbol_GivesAccessTo(assemblyWantingAccess As IAssemblySymbol) As Boolean Implements IAssemblySymbol.GivesAccessTo
37 references to IAssemblySymbol_GivesAccessTo
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
58 case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo (compilation.Assembly):
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
51case Utilities.SymbolVisibility.Internal when currentType.ContainingAssembly.GivesAccessTo(compilation.Assembly):
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (1)
65toAssembly.GivesAccessTo(assembly);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
577return symbol.ContainingAssembly.GivesAccessTo(finalDestination.ContainingAssembly) 581return symbol.ContainingAssembly.GivesAccessTo(finalDestination.ContainingAssembly)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\InternalsVisibleToAndStrongNameTests.cs (4)
1274Assert.True(other.Assembly.GivesAccessTo(requestor.Assembly)); 1306Assert.False(other.Assembly.GivesAccessTo(requestor.Assembly)); 1342Assert.False(other.Assembly.GivesAccessTo(requestor.Assembly)); 1387Assert.True(giver.Assembly.GivesAccessTo(requestor.Assembly));
Microsoft.CodeAnalysis.UnitTests (6)
GivesAccessTo.cs (6)
56Assert.True(CS.ContainingAssembly.GivesAccessTo(CS2.ContainingAssembly)); 57Assert.True(CS.ContainingAssembly.GivesAccessTo(VB.ContainingAssembly)); 58Assert.False(CS.ContainingAssembly.GivesAccessTo(VB2.ContainingAssembly)); 60Assert.True(VB.ContainingAssembly.GivesAccessTo(VB2.ContainingAssembly)); 61Assert.True(VB.ContainingAssembly.GivesAccessTo(CS.ContainingAssembly)); 62Assert.False(VB.ContainingAssembly.GivesAccessTo(CS2.ContainingAssembly));
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
739Private Function IAssemblySymbol_GivesAccessTo(assemblyWantingAccess As IAssemblySymbol) As Boolean Implements IAssemblySymbol.GivesAccessTo
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
LineCommit\CommitBufferManager.vb (2)
314refCompilation.Assembly().GivesAccessTo(compilation.Assembly) 322refAssembly.GivesAccessTo(compilation.Assembly)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\InternalsVisibleToAndStrongNameTests.vb (4)
893Assert.True(DirectCast(other.Assembly, IAssemblySymbol).GivesAccessTo(requestor.Assembly)) 992Assert.True(DirectCast(other.Assembly, IAssemblySymbol).GivesAccessTo(requestor.Assembly)) 1023Assert.False(DirectCast(other.Assembly, IAssemblySymbol).GivesAccessTo(requestor.Assembly)) 1057Assert.True(DirectCast(giver.Assembly, IAssemblySymbol).GivesAccessTo(requestor.Assembly))
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
51case Utilities.SymbolVisibility.Internal when currentType.ContainingAssembly.GivesAccessTo(compilation.Assembly):
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (1)
65toAssembly.GivesAccessTo(assembly);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
577return symbol.ContainingAssembly.GivesAccessTo(finalDestination.ContainingAssembly) 581return symbol.ContainingAssembly.GivesAccessTo(finalDestination.ContainingAssembly)
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
74case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
74case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
60case SymbolVisibility.Internal when referencedAssembly.GivesAccessTo(compilation.Assembly):