tuned signature;
authorwenzelm
Thu, 04 Aug 2022 13:49:57 +0200
changeset 75754 72ffa12f9b2e
parent 75753 d0037f04bba0
child 75755 b515de95d564
tuned signature;
src/Pure/Thy/export.scala
--- a/src/Pure/Thy/export.scala	Thu Aug 04 13:44:21 2022 +0200
+++ b/src/Pure/Thy/export.scala	Thu Aug 04 13:49:57 2022 +0200
@@ -256,16 +256,15 @@
   /* abstract provider */
 
   object Provider {
-    def none: Provider =
+    val none: Provider =
       new Provider {
         def theory_names: List[String] = Nil
         def apply(export_name: String): Option[Entry] = None
         def focus(other_theory: String): Provider = this
-
         override def toString: String = "none"
       }
 
-    private def make_database(
+    private def database_provider(
         db: SQL.Database,
         cache: XML.Cache,
         session: String,
@@ -288,7 +287,7 @@
 
         def focus(other_theory: String): Provider =
           if (other_theory == theory) this
-          else make_database(db, cache, session, theory, _theory_names)
+          else database_provider(db, cache, session, theory, _theory_names)
 
         override def toString: String = db.toString
       }
@@ -299,7 +298,7 @@
       cache: XML.Cache,
       session: String,
       theory: String = ""
-    ): Provider = make_database(db, cache, session, theory, Synchronized(None))
+    ): Provider = database_provider(db, cache, session, theory, Synchronized(None))
 
     def snapshot(
       resources: Resources,