5 instantiations of ProjectDependencyGraph
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
36return new ProjectDependencyGraph(
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
45return new ProjectDependencyGraph(
Workspace\Solution\ProjectDependencyGraph_RemoveAllProjectReferences.cs (1)
29return new ProjectDependencyGraph(
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (1)
32return new ProjectDependencyGraph(
Workspace\Solution\ProjectDependencyGraph_RemoveProjectReference.cs (1)
27return new ProjectDependencyGraph(
57 references to ProjectDependencyGraph
Microsoft.CodeAnalysis.Features (6)
AddImport\AbstractAddImportFeatureService.cs (1)
457var dependencyGraph = solution.GetProjectDependencyGraph();
AddMissingReference\AddMissingReferenceCodeAction.cs (1)
31var dependencyGraph = project.Solution.GetProjectDependencyGraph();
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
77var graph = solution.GetProjectDependencyGraph();
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
144var graph = project.Solution.GetProjectDependencyGraph();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
439var graph = solution.GetProjectDependencyGraph();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
302var graph = solution.GetProjectDependencyGraph();
Microsoft.CodeAnalysis.Workspaces (39)
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
69var dependencyGraph = solution.GetProjectDependencyGraph();
FindSymbols\FindReferences\DependentTypeFinder.cs (4)
404var dependencyGraph = solution.GetProjectDependencyGraph(); 440ProjectDependencyGraph dependencyGraph, Project project) 468var dependencyGraph = solution.GetProjectDependencyGraph(); 483var dependencyGraph = solution.GetProjectDependencyGraph();
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
100var dependencyGraph = baseSolution.GetProjectDependencyGraph();
Workspace\Solution\ProjectDependencyGraph.cs (4)
16/// A <see cref="ProjectDependencyGraph"/> models the dependencies between projects in a solution. 63internal static readonly ProjectDependencyGraph Empty = new( 131internal ProjectDependencyGraph WithProjectReferences(ProjectId projectId, IReadOnlyList<ProjectReference> projectReferences) 519internal readonly struct TestAccessor(ProjectDependencyGraph instance)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
11internal ProjectDependencyGraph WithAdditionalProject(ProjectId projectId)
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
15internal ProjectDependencyGraph WithAdditionalProjectReferences(ProjectId projectId, IReadOnlyCollection<ProjectReference> projectReferences)
Workspace\Solution\ProjectDependencyGraph_RemoveAllProjectReferences.cs (1)
13internal ProjectDependencyGraph WithAllProjectReferencesRemoved(ProjectId projectId)
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (1)
12internal ProjectDependencyGraph WithProjectRemoved(ProjectId projectId)
Workspace\Solution\ProjectDependencyGraph_RemoveProjectReference.cs (1)
13internal ProjectDependencyGraph WithProjectReferenceRemoved(ProjectId projectId, ProjectId referencedProjectId)
Workspace\Solution\Solution.cs (2)
1682/// Gets a <see cref="ProjectDependencyGraph"/> that details the dependencies between projects for this solution. 1684public ProjectDependencyGraph GetProjectDependencyGraph() => this.SolutionState.GetProjectDependencyGraph();
Workspace\Solution\SolutionCompilationState.cs (8)
183var newDependencyGraph = newSolutionState.GetProjectDependencyGraph(); 216ProjectDependencyGraph dependencyGraph, 224static bool CanReuse(ProjectId id, (ProjectId changedProjectId, ProjectDependencyGraph dependencyGraph) arg) 244ProjectDependencyGraph dependencyGraph, 252static bool CanReuse(ProjectId id, (ImmutableArray<ProjectId> changedProjectIds, ProjectDependencyGraph dependencyGraph) arg) 331var newDependencyGraph = newSolutionState.GetProjectDependencyGraph(); 367var originalDependencyGraph = this.SolutionState.GetProjectDependencyGraph(); 1488var dependencyGraph = SolutionState.CreateDependencyGraph(this.SolutionState.ProjectIds, newIdToProjectStateMap);
Workspace\Solution\SolutionState.cs (13)
56private readonly ProjectDependencyGraph _dependencyGraph; 74ProjectDependencyGraph dependencyGraph, 120dependencyGraph: ProjectDependencyGraph.Empty, 173ProjectDependencyGraph? dependencyGraph = null) 392var newDependencyGraph = _dependencyGraph; 448var newDependencyGraph = _dependencyGraph; 738var newDependencyGraph = _dependencyGraph.WithAdditionalProjectReferences(projectId, projectReferences); 762ProjectDependencyGraph newDependencyGraph; 796var newDependencyGraph = _dependencyGraph.WithProjectReferences(projectId, projectReferences); 1150ProjectDependencyGraph? newDependencyGraph = null) 1188public static ProjectDependencyGraph CreateDependencyGraph( 1339/// Gets a <see cref="ProjectDependencyGraph"/> that details the dependencies between projects for this solution. 1341public ProjectDependencyGraph GetProjectDependencyGraph()
Workspace\Workspace_SourceGeneration.cs (1)
75var dependencyGraph = solution.GetProjectDependencyGraph();
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\ProjectDependencyGraphTests.cs (9)
46/// Verifies that <see cref="ProjectDependencyGraph.GetTopologicallySortedProjects(CancellationToken)"/> 55var projectDependencyGraph = solution.GetProjectDependencyGraph(); 90var projectDependencyGraph = solution.GetProjectDependencyGraph(); 225var dependencyGraph = solution.GetProjectDependencyGraph(); 279var projectDependencyGraph = solution.GetProjectDependencyGraph(); 291var projectDependencyGraph = solution.GetProjectDependencyGraph(); 295private static void VerifyTransitiveReferences(Solution solution, ProjectDependencyGraph projectDependencyGraph, string project, string[] expectedResults) 647var projectDependencyGraph = solution.GetProjectDependencyGraph(); 659var projectDependencyGraph = solution.GetProjectDependencyGraph();
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
25ProjectDependencyGraph dependencyGraph = solution.GetProjectDependencyGraph();
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
25ProjectDependencyGraph dependencyGraph = solution.GetProjectDependencyGraph();
Microsoft.VisualStudio.LanguageServices (1)
GenerateType\GenerateTypeDialogViewModel.cs (1)
727var dependencyGraph = document.Project.Solution.GetProjectDependencyGraph();