src/Pure/PIDE/resources.scala
changeset 66695 91500c024c7f
parent 65532 febfd9f78bd4
child 66696 8f863dae78a0
     1.1 --- a/src/Pure/PIDE/resources.scala	Tue Sep 26 17:32:16 2017 +0200
     1.2 +++ b/src/Pure/PIDE/resources.scala	Tue Sep 26 20:54:40 2017 +0200
     1.3 @@ -64,6 +64,13 @@
     1.4      }
     1.5      else Nil
     1.6  
     1.7 +  def loaded_files(syntax: Outer_Syntax, name: Document.Node.Name): List[Path] =
     1.8 +  {
     1.9 +    val text = with_thy_reader(name, reader => Symbol.decode(reader.source.toString))
    1.10 +    val dir = Path.explode(name.master_dir)
    1.11 +    loaded_files(syntax, text).map(a => dir + Path.explode(a))
    1.12 +  }
    1.13 +
    1.14    def theory_qualifier(name: Document.Node.Name): String =
    1.15      session_base.global_theories.getOrElse(name.theory, Long_Name.qualifier(name.theory))
    1.16