src/Pure/PIDE/resources.scala
changeset 63584 68751fe1c036
parent 63579 73939a9b70a3
child 64654 31b681e38c70
equal deleted inserted replaced
63583:a39baba12732 63584:68751fe1c036
    21 }
    21 }
    22 
    22 
    23 class Resources(
    23 class Resources(
    24   val loaded_theories: Set[String],
    24   val loaded_theories: Set[String],
    25   val known_theories: Map[String, Document.Node.Name],
    25   val known_theories: Map[String, Document.Node.Name],
    26   val base_syntax: Prover.Syntax)
    26   val base_syntax: Outer_Syntax)
    27 {
    27 {
    28   /* document node names */
    28   /* document node names */
    29 
    29 
    30   def node_name(qualifier: String, raw_path: Path): Document.Node.Name =
    30   def node_name(qualifier: String, raw_path: Path): Document.Node.Name =
    31   {
    31   {
    53   }
    53   }
    54 
    54 
    55 
    55 
    56   /* theory files */
    56   /* theory files */
    57 
    57 
    58   def loaded_files(syntax: Prover.Syntax, text: String): List[String] =
    58   def loaded_files(syntax: Outer_Syntax, text: String): List[String] =
    59     if (syntax.load_commands_in(text)) {
    59     if (syntax.load_commands_in(text)) {
    60       val spans = syntax.parse_spans(text)
    60       val spans = syntax.parse_spans(text)
    61       spans.iterator.map(Command.span_files(syntax, _)._1).flatten.toList
    61       spans.iterator.map(Command.span_files(syntax, _)._1).flatten.toList
    62     }
    62     }
    63     else Nil
    63     else Nil