src/Pure/PIDE/session.scala
changeset 72721 79f5e843e5ec
parent 72692 22aeec526ffd
child 72816 ea4f86914cb2
equal deleted inserted replaced
72720:f2d641e856ac 72721:79f5e843e5ec
   179   }
   179   }
   180 
   180 
   181 
   181 
   182   /* outlets */
   182   /* outlets */
   183 
   183 
   184   val finished_theories = new Session.Outlet[Command.State](dispatcher)
   184   val finished_theories = new Session.Outlet[Document.Snapshot](dispatcher)
   185   val command_timings = new Session.Outlet[Session.Command_Timing](dispatcher)
   185   val command_timings = new Session.Outlet[Session.Command_Timing](dispatcher)
   186   val theory_timings = new Session.Outlet[Session.Theory_Timing](dispatcher)
   186   val theory_timings = new Session.Outlet[Session.Theory_Timing](dispatcher)
   187   val runtime_statistics = new Session.Outlet[Session.Runtime_Statistics](dispatcher)
   187   val runtime_statistics = new Session.Outlet[Session.Runtime_Statistics](dispatcher)
   188   val task_statistics = new Session.Outlet[Session.Task_Statistics](dispatcher)
   188   val task_statistics = new Session.Outlet[Session.Task_Statistics](dispatcher)
   189   val global_options = new Session.Outlet[Session.Global_Options](dispatcher)
   189   val global_options = new Session.Outlet[Session.Global_Options](dispatcher)
   509                 try { global_state.change(_.begin_theory(node_name, id, msg.text)) }
   509                 try { global_state.change(_.begin_theory(node_name, id, msg.text)) }
   510                 catch { case _: Document.State.Fail => bad_output() }
   510                 catch { case _: Document.State.Fail => bad_output() }
   511 
   511 
   512               case Markup.Finished_Theory(theory) =>
   512               case Markup.Finished_Theory(theory) =>
   513                 try {
   513                 try {
   514                   val st = global_state.change_result(_.end_theory(theory))
   514                   val snapshot = global_state.change_result(_.end_theory(theory))
   515                   finished_theories.post(st)
   515                   finished_theories.post(snapshot)
   516                 }
   516                 }
   517                 catch { case _: Document.State.Fail => bad_output() }
   517                 catch { case _: Document.State.Fail => bad_output() }
   518 
   518 
   519               case List(Markup.Commands_Accepted.PROPERTY) =>
   519               case List(Markup.Commands_Accepted.PROPERTY) =>
   520                 msg.text match {
   520                 msg.text match {