src/Pure/PIDE/protocol.scala
changeset 66873 9953ae603a23
parent 66717 67dbf5cdc056
child 67219 81e9804b2014
equal deleted inserted replaced
66872:69afe45a6062 66873:9953ae603a23
   111 
   111 
   112   object Command_Timing
   112   object Command_Timing
   113   {
   113   {
   114     def unapply(props: Properties.T): Option[(Document_ID.Generic, isabelle.Timing)] =
   114     def unapply(props: Properties.T): Option[(Document_ID.Generic, isabelle.Timing)] =
   115       props match {
   115       props match {
   116         case (Markup.FUNCTION, Markup.COMMAND_TIMING) :: args =>
   116         case Markup.COMMAND_TIMING :: args =>
   117           (args, args) match {
   117           (args, args) match {
   118             case (Position.Id(id), Markup.Timing_Properties(timing)) => Some((id, timing))
   118             case (Position.Id(id), Markup.Timing_Properties(timing)) => Some((id, timing))
       
   119             case _ => None
       
   120           }
       
   121         case _ => None
       
   122       }
       
   123   }
       
   124 
       
   125 
       
   126   /* theory timing */
       
   127 
       
   128   object Theory_Timing
       
   129   {
       
   130     def unapply(props: Properties.T): Option[(String, isabelle.Timing)] =
       
   131       props match {
       
   132         case Markup.THEORY_TIMING :: args =>
       
   133           (args, args) match {
       
   134             case (Markup.Name(name), Markup.Timing_Properties(timing)) => Some((name, timing))
   119             case _ => None
   135             case _ => None
   120           }
   136           }
   121         case _ => None
   137         case _ => None
   122       }
   138       }
   123   }
   139   }