tuned signature: avoid alias that is unclear wrt. lazy state and Symbol.encode/decode status;
authorwenzelm
Fri, 06 Jan 2023 16:54:16 +0100
changeset 76935 da3310cc00f0
parent 76934 fffb978dd683
child 76936 ee785742c694
tuned signature: avoid alias that is unclear wrt. lazy state and Symbol.encode/decode status;
src/Pure/Thy/sessions.scala
src/Pure/Tools/build_job.scala
--- a/src/Pure/Thy/sessions.scala	Fri Jan 06 16:50:43 2023 +0100
+++ b/src/Pure/Thy/sessions.scala	Fri Jan 06 16:54:16 2023 +0100
@@ -67,7 +67,6 @@
     override def toString: String = name
 
     def bytes: Bytes = if (compressed) body.uncompress(cache = cache) else body
-    def text: String = bytes.text
   }
 
   object Sources {
--- a/src/Pure/Tools/build_job.scala	Fri Jan 06 16:50:43 2023 +0100
+++ b/src/Pure/Tools/build_job.scala	Fri Jan 06 16:54:16 2023 +0100
@@ -51,7 +51,7 @@
             Document.Blobs.Item(bytes, text, chunk, changed = false)
         }
 
-      val thy_source = read_source_file(thy_file).text
+      val thy_source = read_source_file(thy_file).bytes.text
       val thy_xml = read_xml(Export.MARKUP)
       val blobs_xml =
         for (i <- (1 to blobs.length).toList)