src/Pure/Tools/server_commands.scala
changeset 75674 c8e6078fee73
parent 75658 5905c7f484b3
child 75920 27bf2533f4a4
equal deleted inserted replaced
75673:eb7480f29adc 75674:c8e6078fee73
   262                     (tree, pos) <- snapshot.messages if Protocol.is_exported(tree)
   262                     (tree, pos) <- snapshot.messages if Protocol.is_exported(tree)
   263                   } yield output_message(tree, pos))) +
   263                   } yield output_message(tree, pos))) +
   264                 ("exports" ->
   264                 ("exports" ->
   265                   (if (args.export_pattern == "") Nil else {
   265                   (if (args.export_pattern == "") Nil else {
   266                     val matcher = Export.make_matcher(List(args.export_pattern))
   266                     val matcher = Export.make_matcher(List(args.export_pattern))
   267                     for { entry <- snapshot.exports if matcher(entry.theory_name, entry.name) }
   267                     for { entry <- snapshot.exports if matcher(entry.entry_name) }
   268                     yield {
   268                     yield {
   269                       val (base64, body) = entry.uncompressed.maybe_encode_base64
   269                       val (base64, body) = entry.uncompressed.maybe_encode_base64
   270                       JSON.Object("name" -> entry.name, "base64" -> base64, "body" -> body)
   270                       JSON.Object("name" -> entry.name, "base64" -> base64, "body" -> body)
   271                     }
   271                     }
   272                   }))
   272                   }))