src/Pure/Thy/sessions.scala
changeset 72647 fd6dc1a4b9ca
parent 72634 5cea0993ee4f
child 72648 1cbac4ae934d
equal deleted inserted replaced
72646:054d8b212f94 72647:fd6dc1a4b9ca
   252 
   252 
   253             val document_errors =
   253             val document_errors =
   254               info.document_theories.flatMap(
   254               info.document_theories.flatMap(
   255               {
   255               {
   256                 case (thy, pos) =>
   256                 case (thy, pos) =>
   257                   val parent_sessions = sessions_structure.build_requirements(List(session_name))
   257                   val parent_sessions =
       
   258                     if (sessions_structure.build_graph.defined(session_name)) {
       
   259                       sessions_structure.build_requirements(List(session_name))
       
   260                     }
       
   261                     else Nil
   258 
   262 
   259                   def err(msg: String): Option[String] =
   263                   def err(msg: String): Option[String] =
   260                     Some(msg + " " + quote(thy) + Position.here(pos))
   264                     Some(msg + " " + quote(thy) + Position.here(pos))
   261 
   265 
   262                   known_theories.get(thy).map(_.name) match {
   266                   known_theories.get(thy).map(_.name) match {