src/Pure/PIDE/prover.scala
changeset 73359 d8a0e996614b
parent 73340 0ffcad1f6130
child 73367 77ef8bef0593
equal deleted inserted replaced
73358:78aa7846e91f 73359:d8a0e996614b
   347 
   347 
   348   def protocol_command_raw(name: String, args: List[Bytes]): Unit =
   348   def protocol_command_raw(name: String, args: List[Bytes]): Unit =
   349     command_input match {
   349     command_input match {
   350       case Some(thread) if thread.is_active =>
   350       case Some(thread) if thread.is_active =>
   351         if (trace) {
   351         if (trace) {
   352           val payload = (0 /: args)({ case (n, b) => n + b.length })
   352           val payload = args.foldLeft(0) { case (n, b) => n + b.length }
   353           Output.writeln(
   353           Output.writeln(
   354             "protocol_command " + name + ", args = " + args.length + ", payload = " + payload)
   354             "protocol_command " + name + ", args = " + args.length + ", payload = " + payload)
   355         }
   355         }
   356         thread.send(Bytes(name) :: args)
   356         thread.send(Bytes(name) :: args)
   357       case _ => error("Inactive prover input thread for command " + quote(name))
   357       case _ => error("Inactive prover input thread for command " + quote(name))