prefer Theory_Ordering theory names are unique (due to proper session context);
authorwenzelm
Mon, 02 Sep 2019 10:41:14 +0200
changeset 70827 4c98d37e1448
parent 70826 a56eab490f4e
child 70828 f164cec7ac22
prefer Theory_Ordering theory names are unique (due to proper session context);
src/Pure/PIDE/headless.scala
src/Pure/Thy/sessions.scala
--- a/src/Pure/PIDE/headless.scala	Sun Sep 01 22:57:25 2019 +0200
+++ b/src/Pure/PIDE/headless.scala	Mon Sep 02 10:41:14 2019 +0200
@@ -399,7 +399,7 @@
         val entries =
           for ((name, theory) <- theories.toList)
           yield ((name, ()), theory.node_header.imports.map(_._1).filter(theories.isDefinedAt(_)))
-        Graph.make(entries, symmetric = true)(Document.Node.Name.Ordering)
+        Graph.make(entries, symmetric = true)(Document.Node.Name.Theory_Ordering)
       }
 
       def is_required(name: Document.Node.Name): Boolean = required.isDefinedAt(name)
--- a/src/Pure/Thy/sessions.scala	Sun Sep 01 22:57:25 2019 +0200
+++ b/src/Pure/Thy/sessions.scala	Mon Sep 02 10:41:14 2019 +0200
@@ -124,7 +124,7 @@
       val entries =
         for ((_, entry) <- theories.toList)
         yield ((entry.name, ()), entry.header.imports.map(imp => theories(imp._1.theory).name))
-      Graph.make(entries, symmetric = true)(Document.Node.Name.Ordering)
+      Graph.make(entries, symmetric = true)(Document.Node.Name.Theory_Ordering)
     }
 
     def get_file(file: JFile, bootstrap: Boolean = false): Option[Document.Node.Name] =