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
801 references to IAssemblySymbol
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
1122var containingAssembly = type.ContainingAssembly;
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)
GenerateDocumentationAndConfigFiles (61)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (5)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 38.Distinct<IAssemblySymbol>(SymbolEqualityComparer.Default) 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 72/// so we can query <see cref="IAssemblySymbol.NamespaceNames"/>. 145foreach (IAssemblySymbol? referencedAssembly in _referencedAssemblies.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
425IAssemblySymbol? containingAssembly = null) 444IAssemblySymbol? containingAssembly = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
30IAssemblySymbol containingAssembly, 79public IAssemblySymbol ContainingAssembly { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
ILLink.RoslynAnalyzer (12)
CompilationExtensions.cs (1)
53foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
RequiresAnalyzerBase.cs (2)
428var refAssembly = context.Compilation.GetAssemblyOrModuleSymbol(reference) as IAssemblySymbol;
TrimAnalysis\TypeNameResolver.cs (9)
66ITypeSymbol? ResolveTypeName(IAssemblySymbol assembly, TypeName typeName) 97private ITypeSymbol? GetSimpleType(IAssemblySymbol assembly, TypeName typeName) 99IAssemblySymbol module = assembly; 102if (ResolveAssembly(assemblyName) is not IAssemblySymbol resolvedAssembly) 114private static ITypeSymbol? GetSimpleTypeFromModule(TypeName typeName, IAssemblySymbol module) 120private ITypeSymbol? GetGenericType(IAssemblySymbol assembly, TypeName typeName) 136IAssemblySymbol? ResolveAssembly(AssemblyNameInfo? assemblyName) 146if (_compilation.GetAssemblyOrModuleSymbol(metadataReference) is not IAssemblySymbol asmSym) 158IAssemblySymbol? assembly = ResolveAssembly(new AssemblyNameInfo(assemblySimpleName));
Microsoft.AspNetCore.Analyzers (2)
ConfigureMethodVisitor.cs (2)
11public static List<IMethodSymbol> FindConfigureMethods(StartupSymbols symbols, IAssemblySymbol assembly) 27public override void VisitAssembly(IAssemblySymbol symbol)
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
Helpers\AssemblyTypeSymbolsVisitor.cs (2)
15internal sealed class AssemblyTypeSymbolsVisitor(IAssemblySymbol assemblySymbol, CancellationToken cancellation) : SymbolVisitor 28public override void VisitAssembly(IAssemblySymbol symbol)
Microsoft.CodeAnalysis (27)
CommandLine\CommonCompiler.cs (2)
606var currentAssembly = compilation.Assembly; 615foreach (var assembly in currentAssembly.Modules.First().ReferencedAssemblySymbols.OrderBy(a => a.Name))
Compilation\Compilation.cs (13)
904/// Gets the <see cref="IAssemblySymbol"/> or <see cref="IModuleSymbol"/> for a metadata reference used to create this 925public MetadataReference? GetMetadataReference(IAssemblySymbol assemblySymbol) 930private protected abstract MetadataReference? CommonGetMetadataReference(IAssemblySymbol assemblySymbol); 946/// The <see cref="IAssemblySymbol"/> that represents the assembly being created. 948public IAssemblySymbol Assembly { get { return CommonAssembly; } } 949protected abstract IAssemblySymbol CommonAssembly { get; } 1282var corLib = ObjectType.ContainingAssembly; 1289foreach (var referencedAssembly in SourceModule.ReferencedAssemblySymbols) 1633/// compilation. <paramref name="within"/> is required to be an <see cref="INamedTypeSymbol"/> or <see cref="IAssemblySymbol"/>. 1661if (!(within is INamedTypeSymbol || within is IAssemblySymbol)) 1683bool assemblyIsInReferences(IAssemblySymbol a) 1707bool assemblyIsInCompilationReferences(IAssemblySymbol a, Compilation compilation) 1732return assemblyIsInReferences((IAssemblySymbol)s);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
342Debug.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)
161if (symbol is IAssemblySymbol assemblySymbol)
src\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
77var 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.Analyzers (68)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
20IAssemblySymbol symbol, int maintainabilityIndex, 31internal static async Task<AssemblyMetricData> ComputeAsync(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 37internal static AssemblyMetricData ComputeSynchronously(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
267SymbolKind.Assembly => await AssemblyMetricData.ComputeAsync((IAssemblySymbol)symbol, context).ConfigureAwait(false), 305SymbolKind.Assembly => AssemblyMetricData.ComputeSynchronously((IAssemblySymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (5)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 38.Distinct<IAssemblySymbol>(SymbolEqualityComparer.Default) 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 72/// so we can query <see cref="IAssemblySymbol.NamespaceNames"/>. 145foreach (IAssemblySymbol? referencedAssembly in _referencedAssemblies.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
425IAssemblySymbol? containingAssembly = null) 444IAssemblySymbol? containingAssembly = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
30IAssemblySymbol containingAssembly, 79public IAssemblySymbol ContainingAssembly { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
Microsoft.CodeAnalysis.AnalyzerUtilities (60)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
20IAssemblySymbol symbol, int maintainabilityIndex, 31internal static async Task<AssemblyMetricData> ComputeAsync(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 37internal static AssemblyMetricData ComputeSynchronously(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
267SymbolKind.Assembly => await AssemblyMetricData.ComputeAsync((IAssemblySymbol)symbol, context).ConfigureAwait(false), 305SymbolKind.Assembly => AssemblyMetricData.ComputeSynchronously((IAssemblySymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (5)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 38.Distinct<IAssemblySymbol>(SymbolEqualityComparer.Default) 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 72/// so we can query <see cref="IAssemblySymbol.NamespaceNames"/>. 145foreach (IAssemblySymbol? referencedAssembly in _referencedAssemblies.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
Microsoft.CodeAnalysis.CodeStyle (48)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
425IAssemblySymbol? containingAssembly = null) 444IAssemblySymbol? containingAssembly = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
30IAssemblySymbol containingAssembly, 79public IAssemblySymbol ContainingAssembly { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
Microsoft.CodeAnalysis.CSharp (26)
Compilation\CSharpCompilation.cs (3)
1427public new MetadataReference? GetMetadataReference(IAssemblySymbol assemblySymbol) 1432private protected override MetadataReference? CommonGetMetadataReference(IAssemblySymbol assemblySymbol) 4142protected 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.MightContainExtensions; 50AssemblyMetadata IAssemblySymbol.GetMetadata() => UnderlyingAssemblySymbol.GetMetadata(); 52INamedTypeSymbol IAssemblySymbol.ResolveForwardedType(string fullyQualifiedMetadataName) 57ImmutableArray<INamedTypeSymbol> IAssemblySymbol.GetForwardedTypes() 63bool IAssemblySymbol.GivesAccessTo(IAssemblySymbol assemblyWantingAccess) 105INamedTypeSymbol? 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)
390internal static AssemblySymbol? EnsureCSharpSymbolOrNull(this IAssemblySymbol? symbol, string paramName) 593internal static IAssemblySymbol? GetPublicSymbol(this AssemblySymbol? symbol) 595return symbol.GetPublicSymbol<IAssemblySymbol>(); 737internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 739return GetPublicSymbols<IAssemblySymbol>(StaticCast<Symbol>.From(symbols)); 790internal static AssemblySymbol? GetSymbol(this IAssemblySymbol? symbol)
Microsoft.CodeAnalysis.Extensions.Package (37)
Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
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 (44)
AddImport\AbstractAddImportFeatureService.cs (4)
147var projectToAssembly = new ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>>(concurrencyLevel: 2, capacity: project.Solution.ProjectIds.Count); 172ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly, 217ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly, 298if (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)
97internal Task<ImmutableArray<SymbolReference>> FindInSourceSymbolsInProjectAsync(ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly, Project project, bool exact, CancellationToken cancellationToken) 100internal Task<ImmutableArray<SymbolReference>> FindInMetadataSymbolsAsync(IAssemblySymbol assembly, Project assemblyProject, PortableExecutableReference metadataReference, bool exact, CancellationToken cancellationToken)
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
195var assemblySymbol = compilation.GetAssemblyOrModuleSymbol(reference) as IAssemblySymbol;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
182var targetSymbol = compilation.Assembly;
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (2)
210originCompilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assemblySymbol) 229IAssemblySymbol assembly,
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (4)
191var originatingAssembly = _originatingSemanticModel.Compilation.Assembly; 199var assembly = compilation.Assembly; 245_originatingSemanticModel.Compilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assembly) 398IAssemblySymbol assembly,
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
77if (AssemblySymbolKey.Resolve(originCompilation).Symbol is not IAssemblySymbol assemblySymbol)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
909IAssemblySymbol containingAssembly,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
2510private sealed class AssemblyEqualityComparer : IEqualityComparer<IAssemblySymbol?> 2512public static readonly IEqualityComparer<IAssemblySymbol?> Instance = new AssemblyEqualityComparer(); 2514public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 2528public 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)
158internal static AssemblyLocation GetMetadataLocation(IAssemblySymbol assembly, Solution solution, out ProjectId originatingProjectId) 177var assembly = definition as IAssemblySymbol ?? definition.ContainingAssembly; 210var containingAssembly = constituentNamespace.ContainingAssembly; 237if (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)
238private (MetadataReference? metadataReference, string? assemblyLocation, bool isReferenceAssembly) GetReferenceInfo(Compilation compilation, IAssemblySymbol containingAssembly) 405var containingAssembly = topLevelNamedType.ContainingAssembly;
MetadataAsSource\MetadataAsSourceHelpers.cs (3)
33public static string GetAssemblyInfo(IAssemblySymbol assemblySymbol) 41public static string GetAssemblyDisplay(Compilation compilation, IAssemblySymbol assemblySymbol) 104public static bool IsReferenceAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
77var assemblyToScope = model.Compilation.Assembly;
Microsoft.CodeAnalysis.Razor.Compiler (16)
Language\SymbolCache.AssemblySymbolData.cs (2)
16public sealed partial class AssemblySymbolData(IAssemblySymbol symbol) 28private static bool CalculateMightContainTagHelpers(IAssemblySymbol assembly)
Language\SymbolCache.cs (1)
21public static AssemblySymbolData GetAssemblySymbolData(IAssemblySymbol symbol)
Language\TagHelperDiscoverer.cs (1)
49public TagHelperCollection GetTagHelpers(IAssemblySymbol assembly, CancellationToken cancellationToken = default)
Language\TagHelperDiscoveryService.cs (1)
60if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol referenceAssembly)
Language\TagHelpers\Producers\BindTagHelperProducer.cs (1)
101public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\FormNameTagHelperProducer.cs (1)
25public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\KeyTagHelperProducer.cs (1)
25public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\RefTagHelperProducer.cs (1)
25public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\RenderModeTagHelperProducer.cs (1)
25public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\SplatTagHelperProducer.cs (1)
25public override void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
Language\TagHelpers\Producers\TagHelperProducer.cs (1)
28public virtual void AddStaticTagHelpers(IAssemblySymbol assembly, ref TagHelperCollection.RefBuilder results)
SourceGenerators\RazorSourceGenerator.cs (3)
167if (oldSymbol is not IAssemblySymbol oldAssembly || newSymbol is not IAssemblySymbol newAssembly) 226if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly)
SourceGenerators\StaticCompilationTagHelperFeature.cs (1)
18public TagHelperCollection GetTagHelpers(IAssemblySymbol assembly, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ResxSourceGenerator (60)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
20IAssemblySymbol symbol, int maintainabilityIndex, 31internal static async Task<AssemblyMetricData> ComputeAsync(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 37internal static AssemblyMetricData ComputeSynchronously(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
267SymbolKind.Assembly => await AssemblyMetricData.ComputeAsync((IAssemblySymbol)symbol, context).ConfigureAwait(false), 305SymbolKind.Assembly => AssemblyMetricData.ComputeSynchronously((IAssemblySymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (5)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 38.Distinct<IAssemblySymbol>(SymbolEqualityComparer.Default) 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 72/// so we can query <see cref="IAssemblySymbol.NamespaceNames"/>. 145foreach (IAssemblySymbol? referencedAssembly in _referencedAssemblies.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
Microsoft.CodeAnalysis.VisualBasic (19)
Compilation\VisualBasicCompilation.vb (2)
1343Private Protected Overrides Function CommonGetMetadataReference(assemblySymbol As IAssemblySymbol) As MetadataReference 2756Protected 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 481Public MustOverride ReadOnly Property TypeNames As ICollection(Of String) Implements IAssemblySymbol.TypeNames 483Public MustOverride ReadOnly Property NamespaceNames As ICollection(Of String) Implements IAssemblySymbol.NamespaceNames 736Public MustOverride ReadOnly Property MightContainExtensionMethods As Boolean Implements IAssemblySymbol.MightContainExtensionMethods 753Private ReadOnly Property IAssemblySymbol_GlobalNamespace As INamespaceSymbol Implements IAssemblySymbol.GlobalNamespace 759Private Function IAssemblySymbol_GivesAccessTo(assemblyWantingAccess As IAssemblySymbol) As Boolean Implements IAssemblySymbol.GivesAccessTo 790Private ReadOnly Property IAssemblySymbol_Modules As IEnumerable(Of IModuleSymbol) Implements IAssemblySymbol.Modules 796Private Function IAssemblySymbol_ResolveForwardedType(metadataName As String) As INamedTypeSymbol Implements IAssemblySymbol.ResolveForwardedType 800Private Function IAssemblySymbol_GetForwardedTypes() As ImmutableArray(Of INamedTypeSymbol) Implements IAssemblySymbol.GetForwardedTypes 804Private 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)
1188Private ReadOnly Property ISymbol_ContainingAssembly As IAssemblySymbol Implements ISymbol.ContainingAssembly
Microsoft.CodeAnalysis.Workspaces (95)
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), 111/// cref="IAssemblySymbol"/> for both source and metadata symbols, and an optional <see cref="Project"/> if this 114private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 117var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 121var assembly = symbol.OriginalDefinition.ContainingAssembly; 146(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 174(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 269(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 294private static HashSet<string> GetInternalsVisibleToSet(IAssemblySymbol assembly) 317(IAssemblySymbol assembly, Project? sourceProject) symbolOrigination, 382var name = compilation.GetAssemblyOrModuleSymbol(peReference) is IAssemblySymbol { Name: string metadataAssemblyName }
FindSymbols\SymbolFinder_Helpers.cs (1)
174foreach (var assembly in forwardedToCompilation.GetReferencedAssemblySymbols())
FindSymbols\SymbolTree\SymbolTreeInfo.cs (8)
26/// 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)
123var assembly = compilation?.Assembly;
Shared\Extensions\INamespaceSymbolExtensions.cs (2)
129IAssemblySymbol assembly) 158IAssemblySymbol assembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
425IAssemblySymbol? containingAssembly = null) 444IAssemblySymbol? containingAssembly = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
30IAssemblySymbol containingAssembly, 79public IAssemblySymbol ContainingAssembly { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
Workspace\Solution\Solution.cs (4)
175public Project? GetProject(IAssemblySymbol assemblySymbol, 188/// This function differs from <see cref="GetProject(IAssemblySymbol, CancellationToken)"/> in terms of how it 189/// treats <see cref="IAssemblySymbol"/>s. Specifically, say there is the following: 197/// 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"/>. 1161public 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)
564r => 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
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
144else if (symbol is IAssemblySymbol or IModuleSymbol or IDynamicTypeSymbol)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
653var symbol = compilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol;
Microsoft.DotNet.ApiCompatibility (73)
ApiComparer.cs (22)
39public IEnumerable<CompatDifference> GetDifferences(IAssemblySymbol left, 40IAssemblySymbol right) 42return GetDifferences(new ElementContainer<IAssemblySymbol>(left, MetadataInformation.DefaultLeft), 43new ElementContainer<IAssemblySymbol>(right, MetadataInformation.DefaultRight)); 47public IEnumerable<CompatDifference> GetDifferences(ElementContainer<IAssemblySymbol> left, 48ElementContainer<IAssemblySymbol> right) 61public IEnumerable<CompatDifference> GetDifferences(IEnumerable<ElementContainer<IAssemblySymbol>> left, 62IEnumerable<ElementContainer<IAssemblySymbol>> right) 75public IEnumerable<CompatDifference> GetDifferences(IEnumerable<IAssemblySymbol> left, 76IEnumerable<IAssemblySymbol> right) 78List<ElementContainer<IAssemblySymbol>> transformedLeft = []; 79foreach (IAssemblySymbol assemblySymbol in left) 81transformedLeft.Add(new ElementContainer<IAssemblySymbol>(assemblySymbol, MetadataInformation.DefaultLeft)); 84List<ElementContainer<IAssemblySymbol>> transformedRight = []; 85foreach (IAssemblySymbol assemblySymbol in right) 87transformedRight.Add(new ElementContainer<IAssemblySymbol>(assemblySymbol, MetadataInformation.DefaultRight)); 94public IEnumerable<CompatDifference> GetDifferences(ElementContainer<IAssemblySymbol> left, 95IReadOnlyList<ElementContainer<IAssemblySymbol>> right) 112public IEnumerable<CompatDifference> GetDifferences(IEnumerable<ElementContainer<IAssemblySymbol>> left, 113IReadOnlyList<IEnumerable<ElementContainer<IAssemblySymbol>>> right) 130IEnumerable<ElementContainer<IAssemblySymbol>> inputMetadata) 135foreach (ElementContainer<IAssemblySymbol> elementContainer in inputMetadata)
Comparing\SymbolEqualityComparer.cs (1)
34if (symbol is IAssemblySymbol assembly)
IApiComparer.cs (12)
25IEnumerable<CompatDifference> GetDifferences(IAssemblySymbol left, IAssemblySymbol right); 34IEnumerable<CompatDifference> GetDifferences(ElementContainer<IAssemblySymbol> left, ElementContainer<IAssemblySymbol> right); 43IEnumerable<CompatDifference> GetDifferences(ElementContainer<IAssemblySymbol> left, IReadOnlyList<ElementContainer<IAssemblySymbol>> right); 52IEnumerable<CompatDifference> GetDifferences(IEnumerable<IAssemblySymbol> left, IEnumerable<IAssemblySymbol> right); 61IEnumerable<CompatDifference> GetDifferences(IEnumerable<ElementContainer<IAssemblySymbol>> left, IEnumerable<ElementContainer<IAssemblySymbol>> right); 70IEnumerable<CompatDifference> GetDifferences(IEnumerable<ElementContainer<IAssemblySymbol>> left, IReadOnlyList<IEnumerable<ElementContainer<IAssemblySymbol>>> right);
Mapping\AssemblyMapper.cs (4)
10/// Object that represents a mapping between multiple <see cref="IAssemblySymbol"/> objects. 21IAssemblySetMapper? containingAssemblySet = null) : ElementMapper<ElementContainer<IAssemblySymbol>>(ruleRunner, settings, rightSetSize), IAssemblyMapper 41void AddOrCreateMappers(ElementContainer<IAssemblySymbol>? assemblyContainer, ElementSide side, int setIndex = 0) 102Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> ResolveTypeForwards(ElementContainer<IAssemblySymbol> assembly,
Mapping\AssemblySetMapper.cs (6)
10/// Object that represents a mapping between two lists of <see cref="IAssemblySymbol"/>. 17int rightSetSize) : ElementMapper<IEnumerable<ElementContainer<IAssemblySymbol>>>(ruleRunner, settings, rightSetSize), IAssemblySetMapper 19private Dictionary<IAssemblySymbol, IAssemblyMapper>? _assemblies; 29_assemblies = new Dictionary<IAssemblySymbol, IAssemblyMapper>(Settings.SymbolEqualityComparer); 37void AddOrCreateMappers(IEnumerable<ElementContainer<IAssemblySymbol>>? assemblyContainers, ElementSide side, int setIndex = 0) 45foreach (ElementContainer<IAssemblySymbol> assemblyContainer in assemblyContainers)
Mapping\IAssemblyMapper.cs (2)
9/// Interface that represents a mapping between multiple <see cref="IAssemblySymbol"/> objects. 13public interface IAssemblyMapper : IElementMapper<ElementContainer<IAssemblySymbol>>
Mapping\IAssemblySetMapper.cs (3)
9/// Interface that represents a mapping between two lists of <see cref="IAssemblySymbol"/>. 11public interface IAssemblySetMapper : IElementMapper<IEnumerable<ElementContainer<IAssemblySymbol>>> 19/// Gets the assembly mappers built from the provided lists of <see cref="IAssemblySymbol"/>.
Rules\AssemblyIdentityMustMatch.cs (2)
33private void RunOnAssemblySymbol(IAssemblySymbol? left, IAssemblySymbol? right, MetadataInformation leftMetadata, MetadataInformation rightMetadata, bool singleAssembly, IList<CompatDifference> differences)
Rules\IRuleRegistrationContext.cs (3)
15/// Registers a callback to invoke when two <see cref="IAssemblySymbol"/> are compared. 18void RegisterOnAssemblySymbolAction(Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>> action);
Rules\IRuleRunnerContext.cs (2)
13void RunOnAssemblySymbolActions(IAssemblySymbol? left, IAssemblySymbol? right, MetadataInformation leftMetadata, MetadataInformation rightMetadata, bool isSingleAssembly, IList<CompatDifference> differences);
Rules\RuleContext.cs (8)
13private readonly List<Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>>> _onAssemblySymbolActions = []; 19public void RegisterOnAssemblySymbolAction(Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>> action) 43public void RunOnAssemblySymbolActions(IAssemblySymbol? left, IAssemblySymbol? right, MetadataInformation leftMetadata, MetadataInformation rightMetadata, bool isSingleAssembly, IList<CompatDifference> differences) 45foreach (Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>> action in _onAssemblySymbolActions)
Runner\ApiCompatRunner.cs (8)
35List<ElementContainer<IAssemblySymbol>> leftContainerList = CreateAssemblySymbols(workItem.Left, out bool resolvedExternallyProvidedAssemblyReferences); 38List<IEnumerable<ElementContainer<IAssemblySymbol>>> rightContainersList = new(workItem.Right.Count); 41List<ElementContainer<IAssemblySymbol>> rightContainers = CreateAssemblySymbols(right.ToImmutableArray(), out resolvedExternallyProvidedAssemblyReferences); 100private List<ElementContainer<IAssemblySymbol>> CreateAssemblySymbols(IReadOnlyList<MetadataInformation> metadataInformation, 112IReadOnlyList<IAssemblySymbol?>? assemblySymbols = null; 127List<ElementContainer<IAssemblySymbol>> elementContainerList = new(metadataInformation.Count); 130IAssemblySymbol? assemblySymbol = assemblySymbols[i]; 139elementContainerList.Add(new ElementContainer<IAssemblySymbol>(assemblySymbol, metadataInformation[i]));
Microsoft.DotNet.ApiSymbolExtensions (44)
AssemblySymbolLoader.cs (25)
15/// Loads <see cref="IAssemblySymbol"/> objects from source files, binaries or directories containing binaries. 64public static (AssemblySymbolLoader, Dictionary<string, IAssemblySymbol>) CreateFromFiles( 75new Dictionary<string, IAssemblySymbol>()); 94Dictionary<string, IAssemblySymbol> dictionary = []; 97if (loader._cSharpCompilation.GetAssemblyOrModuleSymbol(metadataReference) is IAssemblySymbol assemblySymbol && 153public IReadOnlyList<IAssemblySymbol?> LoadAssemblies(params string[] paths) 165IAssemblySymbol?[] assemblySymbols = new IAssemblySymbol[assembliesToReturn.Count]; 170assemblySymbols[i] = symbol as IAssemblySymbol; 179public IReadOnlyList<IAssemblySymbol?> LoadAssembliesFromArchive(string archivePath, IReadOnlyList<string> relativePaths) 217IAssemblySymbol?[] assemblySymbols = new IAssemblySymbol[metadataReferences.Length]; 223_cSharpCompilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol : 233public IAssemblySymbol? LoadAssembly(string path) 238IAssemblySymbol? assemblySymbol = _cSharpCompilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol; 245public IAssemblySymbol? LoadAssembly(string name, Stream stream) 260IAssemblySymbol? assemblySymbol = _cSharpCompilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol; 267public IAssemblySymbol LoadAssemblyFromSourceFiles(IEnumerable<string> filePaths, string? assemblyName, IEnumerable<string> referencePaths) 296public IEnumerable<IAssemblySymbol> LoadMatchingAssemblies(IEnumerable<IAssemblySymbol> fromAssemblies, IEnumerable<string> searchPaths, bool validateMatchingIdentity = true, bool warnOnMissingAssemblies = true) 298List<IAssemblySymbol> matchingAssemblies = []; 299foreach (IAssemblySymbol assembly in fromAssemblies) 315if (symbol is IAssemblySymbol matchingAssembly)
IAssemblySymbolLoader.cs (19)
9/// Loads <see cref="IAssemblySymbol"/> objects from source files, binaries or directories containing binaries. 22/// Loads a list of assemblies and gets its corresponding <see cref="IAssemblySymbol"/> from the specified paths. 25/// <returns>The list of resolved <see cref="IAssemblySymbol"/>.</returns> 26IReadOnlyList<IAssemblySymbol?> LoadAssemblies(params string[] paths); 33/// <returns>The list of resolved and unresolved <see cref="IAssemblySymbol"/>.</returns> 34IReadOnlyList<IAssemblySymbol?> LoadAssembliesFromArchive(string archivePath, IReadOnlyList<string> relativePaths); 40/// <returns><see cref="IAssemblySymbol"/> representing the loaded assembly.</returns> 41IAssemblySymbol? LoadAssembly(string path); 48/// <returns><see cref="IAssemblySymbol"/> representing the given <paramref name="stream"/>. If an 50IAssemblySymbol? LoadAssembly(string name, Stream stream); 53/// Loads an <see cref="IAssemblySymbol"/> containing the metadata from the provided source files and given assembly name. 55/// <param name="filePaths">The file paths to use as syntax trees to create the <see cref="IAssemblySymbol"/>.</param> 56/// <param name="assemblyName">The name of the <see cref="IAssemblySymbol"/>.</param> 58/// <returns>The <see cref="IAssemblySymbol"/> containing the metadata from the provided source files.</returns> 59IAssemblySymbol LoadAssemblyFromSourceFiles(IEnumerable<string> filePaths, string assemblyName, IEnumerable<string> referencePaths); 64/// <param name="fromAssemblies">List of <see cref="IAssemblySymbol"/> to search for.</param> 68/// <returns>The list of matching assemblies represented as <see cref="IAssemblySymbol"/>.</returns> 69IEnumerable<IAssemblySymbol> LoadMatchingAssemblies(IEnumerable<IAssemblySymbol> fromAssemblies, IEnumerable<string> searchPaths, bool validateMatchingIdentity = true, bool warnOnMissingAssemblies = true);
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Extensions.Options.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\RoslynExtensions.cs (1)
62foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
62foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
62foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
Microsoft.Interop.SourceGeneration (1)
src\runtime\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>(SymbolEqualityComparer.Default); 80var symbolAssembly = symbol.ContainingAssembly;
Roslyn.Diagnostics.Analyzers (69)
AbstractDoNotCopyValue.cs (1)
255public override void VisitAssembly(IAssemblySymbol symbol)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
20IAssemblySymbol symbol, int maintainabilityIndex, 31internal static async Task<AssemblyMetricData> ComputeAsync(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 37internal static AssemblyMetricData ComputeSynchronously(IAssemblySymbol assembly, CodeMetricsAnalysisContext context) 43private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 72private static ImmutableArray<INamespaceOrTypeSymbol> GetChildSymbols(IAssemblySymbol assembly)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
267SymbolKind.Assembly => await AssemblyMetricData.ComputeAsync((IAssemblySymbol)symbol, context).ConfigureAwait(false), 305SymbolKind.Assembly => AssemblyMetricData.ComputeSynchronously((IAssemblySymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (5)
33_referencedAssemblies = new Lazy<ImmutableArray<IAssemblySymbol>>( 38.Distinct<IAssemblySymbol>(SymbolEqualityComparer.Default) 62private readonly Lazy<ImmutableArray<IAssemblySymbol>> _referencedAssemblies; 72/// so we can query <see cref="IAssemblySymbol.NamespaceNames"/>. 145foreach (IAssemblySymbol? referencedAssembly in _referencedAssemblies.Value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (5)
9private sealed class AssemblySymbolKey : AbstractSymbolKey<IAssemblySymbol> 13public sealed override void Create(IAssemblySymbol symbol, SymbolKeyWriter visitor) 21SymbolKeyReader reader, IAssemblySymbol? contextualSymbol, out string? failureReason) 27using var result = PooledArrayBuilder<IAssemblySymbol>.GetInstance(); 34foreach (var assembly in compilation.GetReferencedAssemblySymbols())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
28/// <item>Two <see cref="IAssemblySymbol"/>s are the "same" if 29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
32if (symbol is not IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
93case IAssemblySymbol assembly:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
700if (assemblyResolution.GetAnySymbol() is IAssemblySymbol assembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
335public override void VisitAssembly(IAssemblySymbol assemblySymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (2)
48public static ImmutableArray<IAssemblySymbol> GetReferencedAssemblySymbols(this Compilation compilation, bool excludePreviousSubmissions = false) 66var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (7)
17this List<IAssemblySymbol> assemblies, 22foreach (var a in assemblies) 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false) 39foreach (var a in assemblies) 50foreach (var a in assemblies) 63public static bool IsSameAssemblyOrHasFriendAccessTo(this IAssemblySymbol assembly, IAssemblySymbol toAssembly)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
538[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 542[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, AttributeTargets validTargets, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (13)
23if (within is IAssemblySymbol assembly) 42IAssemblySymbol within, 92Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 179Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 213IAssemblySymbol assembly, 217Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 219var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 254Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol); 261var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly; 335IAssemblySymbol withinAssembly, 413Debug.Assert(within is INamedTypeSymbol or IAssemblySymbol);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (5)
13private sealed class SimpleNameAssemblyComparer : IEqualityComparer<IAssemblySymbol?> 15public static readonly IEqualityComparer<IAssemblySymbol> Instance = new SimpleNameAssemblyComparer(); 17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 20public int GetHashCode(IAssemblySymbol? obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (2)
50private readonly IEqualityComparer<IAssemblySymbol>? _assemblyComparer; 62IEqualityComparer<IAssemblySymbol>? assemblyComparer,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
118SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y), 149private bool AssembliesAreEquivalent(IAssemblySymbol x, IAssemblySymbol y)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
63SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash), 89private int CombineHashCodes(IAssemblySymbol x, int currentHash)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
425IAssemblySymbol? containingAssembly = null) 444IAssemblySymbol? containingAssembly = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
23IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
30IAssemblySymbol containingAssembly, 79public IAssemblySymbol ContainingAssembly { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
13IAssemblySymbol containingAssembly,
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
50private static INamespaceSymbol GetNamespace(IAssemblySymbol assembly, params string[] namespaceNames)
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
51foreach (var referencedAssembly in module.ReferencedAssemblySymbols)