tuned signature;
authorwenzelm
Wed, 15 Mar 2017 10:08:27 +0100
changeset 65250 13a6c81534a8
parent 65249 c3ee88b9c3cb
child 65251 4b0a43afc3fb
tuned signature;
src/Pure/PIDE/resources.scala
src/Pure/Tools/build.scala
--- a/src/Pure/PIDE/resources.scala	Tue Mar 14 23:25:53 2017 +0100
+++ b/src/Pure/PIDE/resources.scala	Wed Mar 15 10:08:27 2017 +0100
@@ -15,8 +15,6 @@
 
 object Resources
 {
-  def thy_path(path: Path): Path = path.ext("thy")
-
   val empty: Resources = new Resources(Sessions.Base.empty)
 }
 
@@ -24,6 +22,8 @@
 {
   val thy_info = new Thy_Info(this)
 
+  def thy_path(path: Path): Path = path.ext("thy")
+
 
   /* document node names */
 
@@ -100,7 +100,7 @@
         val theory = path.base.implode
         if (Long_Name.is_qualified(theory)) dummy_name(theory)
         else {
-          val node = append(master.master_dir, Resources.thy_path(path))
+          val node = append(master.master_dir, thy_path(path))
           val master_dir = append(master.master_dir, path.dir)
           Document.Node.Name(node, master_dir, Long_Name.qualify(no_qualifier, theory))
         }
@@ -128,7 +128,7 @@
         val (name, pos) = header.name
         if (base_name != name)
           error("Bad theory name " + quote(name) +
-            " for file " + Resources.thy_path(Path.basic(base_name)) + Position.here(pos) +
+            " for file " + thy_path(Path.basic(base_name)) + Position.here(pos) +
             Completion.report_names(pos, 1, List((base_name, ("theory", base_name)))))
 
         val imports =
--- a/src/Pure/Tools/build.scala	Tue Mar 14 23:25:53 2017 +0100
+++ b/src/Pure/Tools/build.scala	Wed Mar 15 10:08:27 2017 +0100
@@ -135,7 +135,7 @@
                   case (global, _, thys) =>
                     thys.map(thy =>
                       (resources.node_name(
-                        if (global) "" else name, info.dir + Resources.thy_path(thy)), info.pos))
+                        if (global) "" else name, info.dir + resources.thy_path(thy)), info.pos))
                 })
               val thy_deps = resources.thy_info.dependencies(name, root_theories)