--- a/src/Pure/ML/ml_statistics.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/ML/ml_statistics.scala Thu Apr 21 10:03:38 2022 +0200
@@ -103,7 +103,8 @@
}
}
- override val functions = List(Markup.ML_Statistics.name -> ml_statistics)
+ override val functions: Session.Protocol_Functions =
+ List(Markup.ML_Statistics.name -> ml_statistics)
}
--- a/src/Pure/PIDE/session.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/PIDE/session.scala Thu Apr 21 10:03:38 2022 +0200
@@ -106,11 +106,12 @@
/* protocol handlers */
type Protocol_Function = Prover.Protocol_Output => Boolean
+ type Protocol_Functions = List[(String, Protocol_Function)]
abstract class Protocol_Handler extends Isabelle_System.Service {
def init(session: Session): Unit = {}
def exit(): Unit = {}
- def functions: List[(String, Protocol_Function)] = Nil
+ def functions: Protocol_Functions = Nil
def prover_options(options: Options): Options = options
}
}
--- a/src/Pure/System/scala.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/System/scala.scala Thu Apr 21 10:03:38 2022 +0200
@@ -235,7 +235,7 @@
}
}
- override val functions =
+ override val functions: Session.Protocol_Functions =
List(
Markup.Invoke_Scala.name -> invoke_scala,
Markup.Cancel_Scala.name -> cancel_scala)
--- a/src/Pure/Tools/build_job.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/Tools/build_job.scala Thu Apr 21 10:03:38 2022 +0200
@@ -321,7 +321,7 @@
case _ => false
}
- override val functions =
+ override val functions: Session.Protocol_Functions =
List(
Markup.Build_Session_Finished.name -> build_session_finished,
Markup.Loading_Theory.name -> loading_theory,
--- a/src/Pure/Tools/debugger.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/Tools/debugger.scala Thu Apr 21 10:03:38 2022 +0200
@@ -133,7 +133,7 @@
}
}
- override val functions =
+ override val functions: Session.Protocol_Functions =
List(
Markup.DEBUGGER_STATE -> debugger_state,
Markup.DEBUGGER_OUTPUT -> debugger_output)
--- a/src/Pure/Tools/print_operation.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/Tools/print_operation.scala Thu Apr 21 10:03:38 2022 +0200
@@ -34,6 +34,7 @@
true
}
- override val functions = List(Markup.PRINT_OPERATIONS -> put)
+ override val functions: Session.Protocol_Functions =
+ List(Markup.PRINT_OPERATIONS -> put)
}
}
--- a/src/Pure/Tools/simplifier_trace.scala Sat Apr 09 15:40:29 2022 +0200
+++ b/src/Pure/Tools/simplifier_trace.scala Thu Apr 21 10:03:38 2022 +0200
@@ -313,6 +313,7 @@
false
}
- override val functions = List(Markup.SIMP_TRACE_CANCEL -> cancel)
+ override val functions: Session.Protocol_Functions =
+ List(Markup.SIMP_TRACE_CANCEL -> cancel)
}
}