tuned signature;
authorwenzelm
Sun, 01 Jan 2017 12:20:51 +0100
changeset 64732 00f3c4bef2e0
parent 64731 84192ecae582
child 64733 20174e871623
tuned signature;
src/Pure/Tools/build.scala
src/Tools/jEdit/src/jedit_sessions.scala
--- a/src/Pure/Tools/build.scala	Sun Jan 01 12:10:21 2017 +0100
+++ b/src/Pure/Tools/build.scala	Sun Jan 01 12:20:51 2017 +0100
@@ -95,13 +95,19 @@
 
   /* source dependencies and static content */
 
+  object Session_Content
+  {
+    def empty: Session_Content =
+      Session_Content(Set.empty, Map.empty, Nil, Outer_Syntax.empty, Nil, Graph_Display.empty_graph)
+  }
+
   sealed case class Session_Content(
-    loaded_theories: Set[String] = Set.empty,
-    known_theories: Map[String, Document.Node.Name] = Map.empty,
-    keywords: Thy_Header.Keywords = Nil,
-    syntax: Outer_Syntax = Outer_Syntax.empty,
-    sources: List[(Path, SHA1.Digest)] = Nil,
-    session_graph: Graph_Display.Graph = Graph_Display.empty_graph)
+    loaded_theories: Set[String],
+    known_theories: Map[String, Document.Node.Name],
+    keywords: Thy_Header.Keywords,
+    syntax: Outer_Syntax,
+    sources: List[(Path, SHA1.Digest)],
+    session_graph: Graph_Display.Graph)
 
   sealed case class Deps(deps: Map[String, Session_Content])
   {
--- a/src/Tools/jEdit/src/jedit_sessions.scala	Sun Jan 01 12:10:21 2017 +0100
+++ b/src/Tools/jEdit/src/jedit_sessions.scala	Sun Jan 01 12:20:51 2017 +0100
@@ -85,7 +85,7 @@
       try {
         Build.session_content(PIDE.options.value, inlined_files, session_dirs(), session_name())
       }
-      catch { case ERROR(_) => Build.Session_Content() }
+      catch { case ERROR(_) => Build.Session_Content.empty }
     content.copy(known_theories =
       content.known_theories.mapValues(name => name.map(File.platform_path(_))))
   }