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