src/Pure/Thy/sessions.scala
changeset 66848 982baed14542
parent 66843 be08a7691c62
child 66857 f8f42289c4df
--- a/src/Pure/Thy/sessions.scala	Thu Oct 12 05:37:58 2017 +0200
+++ b/src/Pure/Thy/sessions.scala	Thu Oct 12 11:25:06 2017 +0200
@@ -509,18 +509,17 @@
       (selected, new T(build_graph1, imports_graph1))
     }
 
-    def build_ancestors(name: String): List[String] =
-      build_graph.all_preds(List(name)).tail.reverse
-
     def build_descendants(names: List[String]): List[String] =
       build_graph.all_succs(names)
-
+    def build_requirements(names: List[String]): List[String] =
+      build_graph.all_preds(names).reverse
     def build_topological_order: List[Info] =
       build_graph.topological_order.map(apply(_))
 
-    def imports_ancestors(name: String): List[String] =
-      imports_graph.all_preds(List(name)).tail.reverse
-
+    def imports_descendants(names: List[String]): List[String] =
+      imports_graph.all_succs(names)
+    def imports_requirements(names: List[String]): List[String] =
+      imports_graph.all_preds(names).reverse
     def imports_topological_order: List[Info] =
       imports_graph.topological_order.map(apply(_))