src/Pure/PIDE/resources.scala
changeset 66695 91500c024c7f
parent 65532 febfd9f78bd4
child 66696 8f863dae78a0
--- 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))