added Load into compiler pipeline
This commit is contained in:
+5
-4
@@ -8,15 +8,16 @@ public record ResolvedWorkspace(
|
||||
ProjectId projectId,
|
||||
WorkspaceGraph graph,
|
||||
BuildStack stack) {
|
||||
|
||||
public ProjectDescriptor mainProject() {
|
||||
return graph.projectDescriptor(projectId);
|
||||
}
|
||||
|
||||
public Stream<ProjectDescriptor> topologicalOrder() {
|
||||
return stack.topologicalOrder.stream().map(graph::projectDescriptor);
|
||||
public Stream<ProjectId> topologicalOrder() {
|
||||
return stack.topologicalOrder.stream();
|
||||
}
|
||||
|
||||
public Stream<ProjectDescriptor> reverseTopologicalOrder() {
|
||||
return stack.reverseTopologicalOrder.stream().map(graph::projectDescriptor);
|
||||
public Stream<ProjectId> reverseTopologicalOrder() {
|
||||
return stack.reverseTopologicalOrder.stream();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user