1 interface inheriting from IAssemblySymbol
Microsoft.CodeAnalysis (1)
Symbols\ISourceAssemblySymbol.cs (1)
14public interface ISourceAssemblySymbol : IAssemblySymbol
2 implementations of IAssemblySymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
15internal abstract class AssemblySymbol : Symbol, IAssemblySymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
23Implements IAssemblySymbol, IAssemblySymbolInternal
411 references to IAssemblySymbol
ConfigurationSchemaGenerator (4)
ConfigSchemaGenerator.cs (3)
24var assemblySymbol = (IAssemblySymbol)compilation.GetAssemblyOrModuleSymbol(inputReference); 53internal static ConfigSchemaAttributeInfo? GetConfigurationSchema(IAssemblySymbol assembly)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
51 foreach (var referencedAssembly in module.ReferencedAssemblySymbols) {
Microsoft.AspNetCore.Analyzers (2)
ConfigureMethodVisitor.cs (2)
11public static List<IMethodSymbol> FindConfigureMethods(StartupSymbols symbols, IAssemblySymbol assembly) 27public override void VisitAssembly(IAssemblySymbol symbol)
Microsoft.CodeAnalysis (27)
CommandLine\CommonCompiler.cs (2)
617var currentAssembly = compilation.Assembly; 626foreach (var assembly in currentAssembly.Modules.First().ReferencedAssemblySymbols.OrderBy(a => a.Name))
Compilation\Compilation.cs (13)
883/// Gets the <see cref="IAssemblySymbol"/> or <see cref="IModuleSymbol"/> for a metadata reference used to create this 904public MetadataReference? GetMetadataReference(IAssemblySymbol assemblySymbol) 909private protected abstract MetadataReference? CommonGetMetadataReference(IAssemblySymbol assemblySymbol); 925/// The <see cref="IAssemblySymbol"/> that represents the assembly being created. 927public IAssemblySymbol Assembly { get { return CommonAssembly; } } 928protected abstract IAssemblySymbol CommonAssembly { get; } 1261var corLib = ObjectType.ContainingAssembly; 1268foreach (var referencedAssembly in SourceModule.ReferencedAssemblySymbols) 1612/// compilation. <paramref name="within"/> is required to be an <see cref="INamedTypeSymbol"/> or <see cref="IAssemblySymbol"/>. 1640if (!(within is INamedTypeSymbol || within is IAssemblySymbol)) 1662bool assemblyIsInReferences(IAssemblySymbol a) 1686bool assemblyIsInCompilationReferences(IAssemblySymbol a, Compilation compilation) 1711return assemblyIsInReferences((IAssemblySymbol)s);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
313Debug.Assert(symbol is IAssemblySymbol || symbol is IModuleSymbol);
PEWriter\MetadataWriter.PortablePdb.cs (1)
968var peReader = pair.AssemblySymbol.GetISymbol() is IAssemblySymbol assemblySymbol
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
148if (symbol is IAssemblySymbol assemblySymbol)
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
56var assemblyToScope = model.Compilation.Assembly;
Symbols\IAssemblySymbol.cs (1)
56bool GivesAccessTo(IAssemblySymbol toAssembly);
Symbols\IModuleSymbol.cs (1)
42ImmutableArray<IAssemblySymbol> ReferencedAssemblySymbols { get; }
Symbols\ISymbol.cs (2)
73/// Gets the <see cref="IAssemblySymbol"/> for the containing assembly. Returns null if the 76IAssemblySymbol ContainingAssembly { get; }
Symbols\ISymbolExtensions.cs (1)
106internal static bool IsNetModule(this IAssemblySymbol assembly) =>
Symbols\SymbolVisitor.cs (1)
28public virtual void VisitAssembly(IAssemblySymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
31public virtual TResult? VisitAssembly(IAssemblySymbol symbol)
Symbols\SymbolVisitor`2.cs (1)
36public virtual TResult VisitAssembly(IAssemblySymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.CodeStyle (47)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (7)
14this List<IAssemblySymbol> assemblies, 19foreach (var a in assemblies) 30public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 36foreach (var a in assemblies) 47foreach (var a in assemblies) 60public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (2)
42public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 60var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
539[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (13)
21if (within is IAssemblySymbol assembly) 40IAssemblySymbol within, 90Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 176Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 210IAssemblySymbol assembly, 214Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 216var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 251Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 258var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 332IAssemblySymbol withinAssembly, 410Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
11private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 15public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 23SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 29using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 36foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
27/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 28/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
94case IAssemblySymbol assembly:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
338public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
11private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 13public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 15public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 18public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
48private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 60IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
117SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 148private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
60SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 86private int CombineHashCodes(IAssemblySymbol x, int currentHash)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
430IAssemblySymbol? containingAssembly = null) 449IAssemblySymbol? containingAssembly = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
28IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
28IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
20IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
35IAssemblySymbol containingAssembly, 84public IAssemblySymbol ContainingAssembly { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
18IAssemblySymbol containingAssembly,
Microsoft.CodeAnalysis.CSharp (26)
Compilation\CSharpCompilation.cs (3)
1344public new MetadataReference? GetMetadataReference(IAssemblySymbol assemblySymbol) 1349private protected override MetadataReference? CommonGetMetadataReference(IAssemblySymbol assemblySymbol) 3930protected override IAssemblySymbol CommonAssembly
SymbolDisplay\SymbolDisplayVisitor.cs (1)
151public override void VisitAssembly(IAssemblySymbol symbol)
Symbols\PublicModel\AssemblySymbol.cs (13)
21INamespaceSymbol IAssemblySymbol.GlobalNamespace 29IEnumerable<IModuleSymbol> IAssemblySymbol.Modules 40bool IAssemblySymbol.IsInteractive => UnderlyingAssemblySymbol.IsInteractive; 42AssemblyIdentity IAssemblySymbol.Identity => UnderlyingAssemblySymbol.Identity; 44ICollection<string> IAssemblySymbol.TypeNames => UnderlyingAssemblySymbol.TypeNames; 46ICollection<string> IAssemblySymbol.NamespaceNames => UnderlyingAssemblySymbol.NamespaceNames; 48bool IAssemblySymbol.MightContainExtensionMethods => UnderlyingAssemblySymbol.MightContainExtensionMethods; 50AssemblyMetadata IAssemblySymbol.GetMetadata() => UnderlyingAssemblySymbol.GetMetadata(); 52INamedTypeSymbol IAssemblySymbol.ResolveForwardedType(string fullyQualifiedMetadataName) 57ImmutableArray<INamedTypeSymbol> IAssemblySymbol.GetForwardedTypes() 63bool IAssemblySymbol.GivesAccessTo(IAssemblySymbol assemblyWantingAccess) 99INamedTypeSymbol? IAssemblySymbol.GetTypeByMetadataName(string metadataName)
Symbols\PublicModel\ModuleSymbol.cs (1)
37ImmutableArray<IAssemblySymbol> IModuleSymbol.ReferencedAssemblySymbols
Symbols\PublicModel\PreprocessingSymbol.cs (1)
108IAssemblySymbol? ISymbol.ContainingAssembly => null;
Symbols\PublicModel\Symbol.cs (1)
205IAssemblySymbol ISymbol.ContainingAssembly => UnderlyingSymbol.ContainingAssembly.GetPublicSymbol();
Symbols\SymbolExtensions.cs (6)
402internal static AssemblySymbol? EnsureCSharpSymbolOrNull(this IAssemblySymbol? symbol, string paramName) 605internal static IAssemblySymbol? GetPublicSymbol(this AssemblySymbol? symbol) 607return symbol.GetPublicSymbol<IAssemblySymbol>(); 749internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 751return GetPublicSymbols<IAssemblySymbol>(StaticCast<Symbol>.From(symbols)); 802internal static AssemblySymbol? GetSymbol(this IAssemblySymbol? symbol)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Emit\CompilationEmitTests.cs (6)
4016var assembly = compilation.Assembly; 4052var assembly = compilation.Assembly; 4082var assembly = compilation.Assembly; 4113var assembly = compilation.Assembly; 4144var assembly = compilation.Assembly; 4175var assembly = compilation.Assembly;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests.cs (3)
8679var assembly = compilation.Assembly; 8722var assembly = compilation.Assembly; 8769var assembly = compilation.Assembly;
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
155var missingB = m.ReferencedAssemblySymbols.Single(a => a.Name == "libA").Modules.Single().ReferencedAssemblySymbols.Single(a => a.Name == "libB");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\AccessCheckTests.cs (4)
738IAssemblySymbol sourceAssem = c.SourceModule.ContainingAssembly; 739IAssemblySymbol mscorlibAssem = ((CSharpCompilation)c).GetReferencedAssemblySymbol(c.ExternalReferences[0]).GetPublicSymbol(); 899IAssemblySymbol sourceAssem = c1.SourceModule.ContainingAssembly; 900IAssemblySymbol mscorlibAssem = ((CSharpCompilation)c1).GetReferencedAssemblySymbol(c1.ExternalReferences[0]).GetPublicSymbol();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Compilation\CompilationAPITests.cs (3)
2369var assembly = (IAssemblySymbol)vbComp.GetBoundReferenceManager().GetReferencedAssemblies().First().Value; 2373Assert.Null(comp.GetMetadataReference((IAssemblySymbol)null));
Compilation\ReferenceManagerTests.cs (3)
1327Assert.Throws<TestException>(() => { var a = c.Assembly; }); 2152var assembly1 = corlib1.Assembly; 2155var assembly2 = corlib2.Assembly;
Compilation\SymbolVisitorTests.cs (9)
56public override void VisitAssembly(IAssemblySymbol symbol) 227public override string VisitAssembly(IAssemblySymbol symbol) 390public override int VisitAssembly(IAssemblySymbol symbol, StringBuilder argument) 536IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly); 587IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly); 638IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly); 695IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly); 739IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly); 783IAssemblySymbol asm = new SourceAssemblySymbol(c.SourceAssembly);
Symbols\AssemblyAndNamespaceTests.cs (1)
31var sym = comp.Assembly;
Symbols\CompilationCreationTests.cs (1)
2978var sourceAssembly = lib2.Assembly;
Symbols\Metadata\PE\LoadingMetadataTokens.cs (1)
104var assembly = compilation.Assembly;
Symbols\Metadata\PE\NoPia.cs (2)
372var localTypes1Asm = localTypes1.Assembly; 376var localTypes2Asm = localTypes2.Assembly;
Symbols\Metadata\PE\TypeForwarders.cs (1)
1527private static IEnumerable<string> GetNamesOfForwardedTypes(IAssemblySymbol assembly)
Symbols\NamespaceExtentTests.cs (2)
21var a1 = c1.Assembly; 22var a2 = c2.Assembly;
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
72var c1Assembly = compilation1.Assembly;
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
35var c1Assembly = c1.Assembly; 149var c1Assembly = c1.Assembly;
Symbols\Source\ExternAliasTests.cs (1)
484var aliasedGlobalNamespace = ((IAssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef)).GlobalNamespace;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (2)
178var assemblySymbol = (IAssemblySymbol?)compilation.GetAssemblyOrModuleSymbol(reference);
Utilities\SymbolEquivalenceComparerTests.cs (5)
1775private sealed class AssemblySymbolIdentityComparer : IEqualityComparer<IAssemblySymbol> 1777public static readonly IEqualityComparer<IAssemblySymbol> Instance = new AssemblySymbolIdentityComparer(); 1779public bool Equals(IAssemblySymbol x, IAssemblySymbol y) 1782public int GetHashCode(IAssemblySymbol obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
146public sealed override void VisitAssembly(IAssemblySymbol symbol)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
MetadataAsSource\OmniSharpMetadataAsSourceHelpers.cs (2)
13public static string GetAssemblyInfo(IAssemblySymbol assemblySymbol) 16public static string GetAssemblyDisplay(Compilation compilation, IAssemblySymbol assemblySymbol)
Microsoft.CodeAnalysis.Features (43)
AddImport\AbstractAddImportFeatureService.cs (4)
145var projectToAssembly = new ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>>(concurrencyLevel: 2, capacity: project.Solution.ProjectIds.Count); 170ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> projectToAssembly, 215ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> projectToAssembly, 296if (compilation.GetAssemblyOrModuleSymbol(reference) is not IAssemblySymbol assembly)
AddImport\SearchScopes\MetadataSymbolsSearchScope.cs (2)
18IAssemblySymbol assembly, 23private readonly IAssemblySymbol _assembly = assembly;
AddImport\SearchScopes\SourceSymbolsProjectSearchScope.cs (4)
24ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly, 27private readonly ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> _projectToAssembly = projectToAssembly; 50static AsyncLazy<IAssemblySymbol?> CreateLazyAssembly(Project project) 54return (IAssemblySymbol?)compilation.Assembly;
AddImport\SymbolReferenceFinder.cs (2)
98internal Task<ImmutableArray<SymbolReference>> FindInSourceSymbolsInProjectAsync(ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> projectToAssembly, Project project, bool exact, CancellationToken cancellationToken) 101internal Task<ImmutableArray<SymbolReference>> FindInMetadataSymbolsAsync(IAssemblySymbol assembly, Project assemblyProject, PortableExecutableReference metadataReference, bool exact, CancellationToken cancellationToken)
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
187var assemblySymbol = compilation.GetAssemblyOrModuleSymbol(reference) as IAssemblySymbol;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
182var targetSymbol = compilation.Assembly;
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (2)
190if (originCompilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assemblySymbol) 210IAssemblySymbol assembly,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (3)
174var originatingAssembly = _originatingSemanticModel.Compilation.Assembly; 228_originatingSemanticModel.Compilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assembly) 346IAssemblySymbol assembly,
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
64if (AssemblySymbolKey.Resolve(originCompilation).Symbol is not IAssemblySymbol assemblySymbol)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
909IAssemblySymbol containingAssembly,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
2333private sealed class AssemblyEqualityComparer : IEqualityComparer<IAssemblySymbol?> 2335public static readonly IEqualityComparer<IAssemblySymbol?> Instance = new AssemblyEqualityComparer(); 2337public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 2351public int GetHashCode(IAssemblySymbol? obj)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (3)
138var assembly = symbol.ContainingAssembly; 209private void EnqueueFullProjectDependency(Project project, IAssemblySymbol? internalVisibleToAssembly = null) 232var assembly = compilation.Assembly;
FindUsages\DefinitionItemFactory.cs (5)
153internal static AssemblyLocation GetMetadataLocation(IAssemblySymbol assembly, Solution solution, out ProjectId originatingProjectId) 172var assembly = definition as IAssemblySymbol ?? definition.ContainingAssembly; 205var containingAssembly = constituentNamespace.ContainingAssembly; 227if (definition is IAssemblySymbol or IModuleSymbol or INamespaceSymbol { IsGlobalNamespace: true } or IPreprocessingSymbol)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
29public override void VisitAssembly(IAssemblySymbol symbol)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
31public IAssemblySymbol ContainingAssembly => _symbol.ContainingAssembly;
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
223private (MetadataReference? metadataReference, string? assemblyLocation, bool isReferenceAssembly) GetReferenceInfo(Compilation compilation, IAssemblySymbol containingAssembly) 379var containingAssembly = topLevelNamedType.ContainingAssembly;
MetadataAsSource\MetadataAsSourceHelpers.cs (3)
34public static string GetAssemblyInfo(IAssemblySymbol assemblySymbol) 42public static string GetAssemblyDisplay(Compilation compilation, IAssemblySymbol assemblySymbol) 105public static bool IsReferenceAssembly(IAssemblySymbol assemblySymbol)
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
56var assemblyToScope = model.Compilation.Assembly;
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
134var a = compilation.Assembly;
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\DecompiledSource\AssemblyResolver.cs (6)
27private readonly Dictionary<string, List<IAssemblySymbol>> _cache = []; 103IAssemblySymbol highestVersion = null; 104IAssemblySymbol exactMatch = null; 108foreach (var assembly in assemblies) 125var chosen = exactMatch ?? highestVersion; 129PEFile MakePEFile(IAssemblySymbol assembly)
Microsoft.CodeAnalysis.Test.Utilities (1)
CompilationVerifier.cs (1)
700return ((IAssemblySymbol)symbol).Modules.First();
Microsoft.CodeAnalysis.VisualBasic (19)
Compilation\VisualBasicCompilation.vb (2)
1341Private Protected Overrides Function CommonGetMetadataReference(assemblySymbol As IAssemblySymbol) As MetadataReference 2732Protected Overrides ReadOnly Property CommonAssembly As IAssemblySymbol
SymbolDisplay\SymbolDisplayVisitor.vb (1)
180Public Overrides Sub VisitAssembly(symbol As IAssemblySymbol)
Symbols\AssemblySymbol.vb (13)
85Public Overridable ReadOnly Property IsInteractive As Boolean Implements IAssemblySymbol.IsInteractive 96Public MustOverride Function GetMetadata() As AssemblyMetadata Implements IAssemblySymbol.GetMetadata 101Public MustOverride ReadOnly Property Identity As AssemblyIdentity Implements IAssemblySymbol.Identity, IAssemblySymbolInternal.Identity 461Public MustOverride ReadOnly Property TypeNames As ICollection(Of String) Implements IAssemblySymbol.TypeNames 463Public MustOverride ReadOnly Property NamespaceNames As ICollection(Of String) Implements IAssemblySymbol.NamespaceNames 716Public MustOverride ReadOnly Property MightContainExtensionMethods As Boolean Implements IAssemblySymbol.MightContainExtensionMethods 733Private ReadOnly Property IAssemblySymbol_GlobalNamespace As INamespaceSymbol Implements IAssemblySymbol.GlobalNamespace 739Private Function IAssemblySymbol_GivesAccessTo(assemblyWantingAccess As IAssemblySymbol) As Boolean Implements IAssemblySymbol.GivesAccessTo 765Private ReadOnly Property IAssemblySymbol_Modules As IEnumerable(Of IModuleSymbol) Implements IAssemblySymbol.Modules 771Private Function IAssemblySymbol_ResolveForwardedType(metadataName As String) As INamedTypeSymbol Implements IAssemblySymbol.ResolveForwardedType 775Private Function IAssemblySymbol_GetForwardedTypes() As ImmutableArray(Of INamedTypeSymbol) Implements IAssemblySymbol.GetForwardedTypes 779Private Function IAssemblySymbol_GetTypeByMetadataName(metadataName As String) As INamedTypeSymbol Implements IAssemblySymbol.GetTypeByMetadataName
Symbols\ModuleSymbol.vb (2)
307Private ReadOnly Property IModuleSymbol_ReferencedAssemblySymbols As ImmutableArray(Of IAssemblySymbol) Implements IModuleSymbol.ReferencedAssemblySymbols 309Return ImmutableArray(Of IAssemblySymbol).CastUp(ReferencedAssemblySymbols)
Symbols\Symbol.vb (1)
1175Private ReadOnly Property ISymbol_ContainingAssembly As IAssemblySymbol Implements ISymbol.ContainingAssembly
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\CommitBufferManager.vb (1)
321Dim refAssembly = DirectCast(refAssemblyOrModule, IAssemblySymbol)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
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))
Emit\DeterministicTests.vb (1)
261Return DirectCast(assembly, IAssemblySymbol).GetForwardedTypes()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2508Assert.Null(comp.GetMetadataReference(DirectCast(assembly.GetISymbol(), IAssemblySymbol)))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (1)
479Assert.Empty(DirectCast(missingAssembly, IAssemblySymbol).GetForwardedTypes())
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
1216Return DirectCast(assembly, IAssemblySymbol).GetForwardedTypes().Select(Function(t) t.ToDisplayString(SymbolDisplayFormat.QualifiedNameArityFormat))
Microsoft.CodeAnalysis.Workspaces (93)
Editing\SymbolEditor.cs (1)
131private ImmutableArray<ProjectId> GetProjectsForAssembly(IAssemblySymbol assembly)
FindSymbols\Declarations\DeclarationFinder.cs (1)
69AsyncLazy<IAssemblySymbol?> lazyAssembly,
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (2)
122var assemblySymbol = compilation.GetAssemblyOrModuleSymbol(arg.peReference) as IAssemblySymbol;
FindSymbols\FindReferences\DependentProjectsFinder.cs (12)
28/// name of the <see cref="IAssemblySymbol"/> defined by it. 36(IAssemblySymbol assembly, Project? sourceProject, SymbolVisibility visibility), 101/// cref="IAssemblySymbol"/> for both source and metadata symbols, and an optional <see cref="Project"/> if this 104private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 107var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 111var assembly = symbol.OriginalDefinition.ContainingAssembly; 136(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 164(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 259(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 284private static HashSet<string> GetInternalsVisibleToSet(IAssemblySymbol assembly) 307(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 372var name = compilation.GetAssemblyOrModuleSymbol(peReference) is IAssemblySymbol { Name: string metadataAssemblyName }
FindSymbols\SymbolFinder_Helpers.cs (1)
180foreach (var assembly in forwardedToCompilation.GetReferencedAssemblySymbols())
FindSymbols\SymbolTree\SymbolTreeInfo.cs (8)
25/// will still incur a heavy cost (for example, getting the <see cref="IAssemblySymbol"/> root symbol for a 119SearchQuery query, IAssemblySymbol assembly, SymbolFilter filter, CancellationToken cancellationToken) 126query, AsyncLazy.Create((IAssemblySymbol?)assembly), filter, cancellationToken); 130SearchQuery query, AsyncLazy<IAssemblySymbol?> lazyAssembly, 143SearchQuery query, AsyncLazy<IAssemblySymbol?> lazyAssembly, CancellationToken cancellationToken) 168AsyncLazy<IAssemblySymbol?> lazyAssembly, string name, CancellationToken cancellationToken) 214AsyncLazy<IAssemblySymbol?> lazyAssembly, 223IAssemblySymbol? assemblySymbol = null;
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
122var assembly = compilation?.Assembly;
Shared\Extensions\INamespaceSymbolExtensions.cs (2)
129IAssemblySymbol assembly) 158IAssemblySymbol assembly,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IAssemblySymbolExtensions.cs (7)
14this List<IAssemblySymbol> assemblies, 19foreach (var a in assemblies) 30public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 36foreach (var a in assemblies) 47foreach (var a in assemblies) 60public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (2)
42public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 60var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
539[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (13)
21if (within is IAssemblySymbol assembly) 40IAssemblySymbol within, 90Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 176Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 210IAssemblySymbol assembly, 214Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 216var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 251Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 258var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 332IAssemblySymbol withinAssembly, 410Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
11private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 15public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 23SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 29using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 36foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
27/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 28/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
94case IAssemblySymbol assembly:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
338public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
11private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 13public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 15public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 18public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
48private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 60IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
117SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 148private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
60SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 86private int CombineHashCodes(IAssemblySymbol x, int currentHash)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
430IAssemblySymbol? containingAssembly = null) 449IAssemblySymbol? containingAssembly = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
28IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
28IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
20IAssemblySymbol containingAssembly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
35IAssemblySymbol containingAssembly, 84public IAssemblySymbol ContainingAssembly { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
18IAssemblySymbol containingAssembly,
Workspace\Solution\Solution.cs (4)
165public Project? GetProject(IAssemblySymbol assemblySymbol, 178/// This function differs from <see cref="GetProject(IAssemblySymbol, CancellationToken)"/> in terms of how it 179/// treats <see cref="IAssemblySymbol"/>s. Specifically, say there is the following: 187/// symbol than Symbol-A from Project-A. However, <see cref="GetProject(IAssemblySymbol, CancellationToken)"/>
Workspace\Solution\SolutionCompilationState.cs (2)
30/// Symbols need to be either <see cref="IAssemblySymbol"/> or <see cref="IModuleSymbol"/>. 1075public static ProjectId? GetProjectId(IAssemblySymbol? assemblySymbol)
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (2)
21/// given <paramref name="symbol"/>. The symbol must be a <see cref="IAssemblySymbol"/>, <see 27/// cref="IAssemblySymbol"/> and <paramref name="primary"/> is <see langword="true"/> then this will only
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
551r => GetProjectId(inProgressCompilationNotRef.GetAssemblyOrModuleSymbol(r) as IAssemblySymbol) == projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
56/// The <see cref="IAssemblySymbol"/>s or <see cref="IModuleSymbol"/>s produced through <see
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
644var symbol = compilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
VisualStudioMSBuildWorkspaceTests.cs (8)
1904var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1927var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1951var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1974var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
2949var assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference); 2956assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
63foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
63foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Maui.Controls.SourceGen (6)
CodeBehindGenerator.cs (6)
198 var internalsVisible = new List<IAssemblySymbol>(); 207 if (compilation.GetAssemblyOrModuleSymbol(reference) is not IAssemblySymbol symbol) 583 static bool IsPublicOrVisibleInternal(INamedTypeSymbol type, IEnumerable<IAssemblySymbol> internalsVisible) 758 public static readonly AssemblyCaches Empty = new(Array.Empty<XmlnsDefinitionAttribute>(), Array.Empty<IAssemblySymbol>()); 760 public AssemblyCaches(IReadOnlyList<XmlnsDefinitionAttribute> xmlnsDefinitions, IReadOnlyList<IAssemblySymbol> internalsVisible) 768 public IReadOnlyList<IAssemblySymbol> InternalsVisible { get; }
Microsoft.ML.InternalCodeAnalyzer (3)
BestFriendAnalyzer.cs (3)
62var myAssembly = comp.Assembly; 63var assemblyHasAttrMap = new Dictionary<IAssemblySymbol, bool>(); 80var symbolAssembly = symbol.ContainingAssembly;
Microsoft.VisualStudio.LanguageServices (40)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (2)
44protected void AddAssemblyLink(IAssemblySymbol assemblySymbol) 264if (containingSymbol is IAssemblySymbol assemblySymbol)
Library\ObjectBrowser\AbstractListItemFactory.cs (17)
137private static bool IncludeMemberSymbol(ISymbol symbol, IAssemblySymbol assemblySymbol) 405public void CollectNamespaceListItems(IAssemblySymbol assemblySymbol, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 445var assemblySymbol = parentListItem is ReferenceListItem 456private class AssemblySymbolComparer : IEqualityComparer<(ProjectId, IAssemblySymbol)> 458public bool Equals((ProjectId, IAssemblySymbol) x, (ProjectId, IAssemblySymbol) y) 461public int GetHashCode((ProjectId, IAssemblySymbol) obj) 465public async Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync( 496if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol referenceAssembly) 507public async Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync(Project project, bool lookInReferences, CancellationToken cancellationToken) 524if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol referenceAssembly) 535private static bool ContainsAccessibleTypeMember(INamespaceOrTypeSymbol namespaceOrTypeSymbol, IAssemblySymbol assemblySymbol) 548private static ImmutableArray<INamedTypeSymbol> GetAccessibleTypeMembers(INamespaceOrTypeSymbol namespaceOrTypeSymbol, IAssemblySymbol assemblySymbol) 564private static bool IncludeTypeMember(INamedTypeSymbol typeMember, IAssemblySymbol assemblySymbol) 654if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assemblySymbol) 743public void CollectTypeListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 775public void CollectMemberListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager_ListItems.cs (5)
17internal void CollectMemberListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 20internal void CollectNamespaceListItems(IAssemblySymbol assemblySymbol, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 23internal void CollectTypeListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString) 26internal Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync(Solution solution, string languageName, CancellationToken cancellationToken) 29internal Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync(Project project, bool lookInReferences, CancellationToken cancellationToken)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager_Search.cs (4)
41ImmutableHashSet<(ProjectId, IAssemblySymbol)> projectAndAssemblySet, 59var assemblySymbol = projectIdAndAssembly.Item2; 74var assemblySymbol = projectIdAndAssembly.Item2; 93var assemblySymbol = projectIdAndAssembly.Item2;
Library\ObjectBrowser\Lists\ReferenceListItem.cs (2)
40public IAssemblySymbol GetAssembly(Compilation compilation) 41=> compilation.GetAssemblyOrModuleSymbol(MetadataReference) as IAssemblySymbol;
Library\VsNavInfo\NavInfoFactory.cs (3)
38case IAssemblySymbol assemblySymbol: 60public IVsNavInfo CreateForAssembly(IAssemblySymbol assemblySymbol) 128private IVsNavInfo Create(IAssemblySymbol containingAssembly, Project project, Compilation compilation, bool useExpandedHierarchy = false,
Progression\GraphBuilder.cs (2)
263node = await GetOrCreateNodeAssemblyAsync(graph, (IAssemblySymbol)symbol, solution, cancellationToken).ConfigureAwait(false); 332private static async Task<GraphNode> GetOrCreateNodeAssemblyAsync(Graph graph, IAssemblySymbol assemblySymbol, Solution solution, CancellationToken cancellationToken)
Progression\GraphNodeCreation.cs (1)
36return await GraphNodeIdCreation.GetIdForAssemblyAsync((IAssemblySymbol)symbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphNodeIdCreation.cs (4)
370private static IAssemblySymbol GetContainingAssembly(ISymbol symbol) 394var containingAssembly = GetContainingAssembly(symbol); 398private static async Task<Uri> GetAssemblyFullPathAsync(IAssemblySymbol containingAssembly, Solution solution, CancellationToken cancellationToken) 446internal static async Task<GraphNodeId> GetIdForAssemblyAsync(IAssemblySymbol assemblySymbol, Solution solution, CancellationToken cancellationToken)
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
50private static INamespaceSymbol GetNamespace(IAssemblySymbol assembly, params string[] namespaceNames)
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)