src/Pure/PIDE/resources.scala
changeset 76587 6cd6c553b480
parent 76050 f1dc3d9d5164
child 76590 3fc3c7c285cd
equal deleted inserted replaced
76586:127ee77c24ff 76587:6cd6c553b480
   452     lazy val overall_syntax: Outer_Syntax =
   452     lazy val overall_syntax: Outer_Syntax =
   453       Outer_Syntax.merge(loaded_theories.maximals.map(loaded_theories.get_node))
   453       Outer_Syntax.merge(loaded_theories.maximals.map(loaded_theories.get_node))
   454 
   454 
   455     override def toString: String = entries.toString
   455     override def toString: String = entries.toString
   456   }
   456   }
       
   457 
       
   458 
       
   459   /* resolve implicit theory dependencies */
       
   460 
       
   461   def resolve_dependencies[A](
       
   462     models: Map[A, Document.Model],
       
   463     theories: List[(Document.Node.Name, Position.T)]
       
   464   ): List[Document.Node.Name] = {
       
   465     val model_theories =
       
   466       (for (model <- models.valuesIterator if model.is_theory)
       
   467         yield (model.node_name, Position.none)).toList
       
   468 
       
   469     val thy_files1 = dependencies(model_theories ::: theories).theories
       
   470 
       
   471     val thy_files2 =
       
   472       (for {
       
   473         model <- models.valuesIterator if !model.is_theory
       
   474         thy_name <- make_theory_name(model.node_name)
       
   475       } yield thy_name).toList
       
   476 
       
   477     thy_files1 ::: thy_files2
       
   478   }
   457 }
   479 }