src/Pure/PIDE/protocol.scala
changeset 76861 1ffd8f92983f
parent 76860 f95ed5a0600c
child 77501 2d8815f98537
equal deleted inserted replaced
76860:f95ed5a0600c 76861:1ffd8f92983f
    23   /* batch build */
    23   /* batch build */
    24 
    24 
    25   object Loading_Theory {
    25   object Loading_Theory {
    26     def unapply(props: Properties.T): Option[(Document.Node.Name, Document_ID.Exec)] =
    26     def unapply(props: Properties.T): Option[(Document.Node.Name, Document_ID.Exec)] =
    27       (props, props, props) match {
    27       (props, props, props) match {
    28         case (Markup.Name(name), Position.File(file), Position.Id(id))
    28         case (Markup.Name(theory), Position.File(file), Position.Id(id))
    29         if Path.is_wellformed(file) => Some((Document.Node.Name(file, theory = name), id))
    29         if Path.is_wellformed(file) => Some((Document.Node.Name(file, theory = theory), id))
    30         case _ => None
    30         case _ => None
    31       }
    31       }
    32   }
    32   }
    33 
    33 
    34 
    34