--- a/src/Pure/PIDE/resources.scala Tue Sep 26 17:32:16 2017 +0200
+++ b/src/Pure/PIDE/resources.scala Tue Sep 26 20:54:40 2017 +0200
@@ -64,6 +64,13 @@
}
else Nil
+ def loaded_files(syntax: Outer_Syntax, name: Document.Node.Name): List[Path] =
+ {
+ val text = with_thy_reader(name, reader => Symbol.decode(reader.source.toString))
+ val dir = Path.explode(name.master_dir)
+ loaded_files(syntax, text).map(a => dir + Path.explode(a))
+ }
+
def theory_qualifier(name: Document.Node.Name): String =
session_base.global_theories.getOrElse(name.theory, Long_Name.qualifier(name.theory))
--- a/src/Pure/Thy/thy_info.scala Tue Sep 26 17:32:16 2017 +0200
+++ b/src/Pure/Thy/thy_info.scala Tue Sep 26 20:54:40 2017 +0200
@@ -90,14 +90,8 @@
def loaded_files: List[Path] =
{
- def loaded(dep: Thy_Info.Dep): List[Path] =
- {
- val string = resources.with_thy_reader(dep.name,
- reader => Symbol.decode(reader.source.toString))
- resources.loaded_files(syntax, string).
- map(a => Path.explode(dep.name.master_dir) + Path.explode(a))
- }
- val dep_files = Par_List.map(loaded _, rev_deps)
+ val dep_files =
+ Par_List.map((dep: Thy_Info.Dep) => resources.loaded_files(syntax, dep.name), rev_deps)
((Nil: List[Path]) /: dep_files) { case (acc_files, files) => files ::: acc_files }
}