44 references to GetAssemblyOrModuleSymbol
ConfigurationSchemaGenerator (1)
ConfigSchemaGenerator.cs (1)
24var assemblySymbol = (IAssemblySymbol)compilation.GetAssemblyOrModuleSymbol(inputReference);
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1696if (a.Equals(compilation.GetAssemblyOrModuleSymbol(reference)))
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
RestrictedInternalsVisibleToAnalyzer.cs (1)
126foreach (var referencedAssemblySymbol in compilation.References.Select(compilation.GetAssemblyOrModuleSymbol).OfType<IAssemblySymbol>())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\UsedAssembliesTests.cs (3)
97Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0])); 644Assert.Same(comp2.ObjectType.ContainingAssembly, comp2.GetAssemblyOrModuleSymbol(used[0])); 2333Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0]));
Symbols\Source\ExternAliasTests.cs (1)
484var aliasedGlobalNamespace = ((IAssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef)).GlobalNamespace;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
178var assemblySymbol = (IAssemblySymbol?)compilation.GetAssemblyOrModuleSymbol(reference);
Microsoft.CodeAnalysis.Features (4)
AddImport\AbstractAddImportFeatureService.cs (1)
296if (compilation.GetAssemblyOrModuleSymbol(reference) is not IAssemblySymbol assembly)
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (1)
195var assemblySymbol = compilation.GetAssemblyOrModuleSymbol(reference) as IAssemblySymbol;
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
206originCompilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assemblySymbol)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
210_originatingSemanticModel.Compilation.GetAssemblyOrModuleSymbol(peReference) is not IAssemblySymbol assembly)
Microsoft.CodeAnalysis.Test.Utilities (1)
CompilationVerifier.cs (1)
824var symbol = dummy.GetAssemblyOrModuleSymbol(metadataReference);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\CommitBufferManager.vb (1)
317Dim refAssemblyOrModule = compilation.GetAssemblyOrModuleSymbol(reference)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
UsedAssembliesTests.vb (9)
73Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference)) 78Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference1)) 88Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used(0))) 225Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference)) 259Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference)) 381Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference1)) 467Assert.Same(comp2.ObjectType.ContainingAssembly, comp2.GetAssemblyOrModuleSymbol(used(0))) 482Assert.IsType(Of TAssemblySymbol)(DirectCast(comp2, VisualBasicCompilation).GetAssemblyOrModuleSymbol(reference0)) 2058Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used(0)))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Extensions.vb (2)
17Return DirectCast(compilation.GetAssemblyOrModuleSymbol(reference), AssemblySymbol) 22Return DirectCast(compilation.GetAssemblyOrModuleSymbol(reference), ModuleSymbol)
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
122var assemblySymbol = compilation.GetAssemblyOrModuleSymbol(arg.peReference) as IAssemblySymbol;
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
372var name = compilation.GetAssemblyOrModuleSymbol(peReference) is IAssemblySymbol { Name: string metadataAssemblyName }
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (1)
258var symbol = compilation.GetAssemblyOrModuleSymbol(metadataReference);
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
30/// of the symbols returned by <see cref="Compilation.GetAssemblyOrModuleSymbol(MetadataReference)"/> for
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
555r => GetProjectId(inProgressCompilationNotRef.GetAssemblyOrModuleSymbol(r) as IAssemblySymbol) == projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (2)
57/// cref="Compilation.GetAssemblyOrModuleSymbol(MetadataReference)"/> for all the references exposed by <see 79var symbol = compilation.GetAssemblyOrModuleSymbol(reference);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
646var symbol = compilation.GetAssemblyOrModuleSymbol(metadataReference) as IAssemblySymbol;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
1889var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1912var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1936var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref); 1959var sym = (IAssemblySymbol)mtcomp.GetAssemblyOrModuleSymbol(mtref);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
2978var assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference); 2985assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
207 if (compilation.GetAssemblyOrModuleSymbol(reference) is not IAssemblySymbol symbol)
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
496if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol referenceAssembly) 524if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol referenceAssembly) 654if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assemblySymbol)
Library\ObjectBrowser\Lists\ReferenceListItem.cs (1)
41=> compilation.GetAssemblyOrModuleSymbol(MetadataReference) as IAssemblySymbol;