tuned signature;
authorwenzelm
Sat, 09 Jul 2011 12:56:51 +0200
changeset 43714 3749d1e6dde9
parent 43713 1ba5331b4623
child 43715 518e44a0ee15
tuned signature;
src/Pure/General/pretty.scala
src/Pure/General/sha1.scala
src/Pure/General/symbol.scala
src/Pure/PIDE/command.scala
src/Pure/PIDE/markup_tree.scala
src/Pure/PIDE/text.scala
src/Tools/jEdit/src/plugin.scala
--- a/src/Pure/General/pretty.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/General/pretty.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -53,7 +53,7 @@
           Library.chunks(text).toList.map((s: CharSequence) => XML.Text(s.toString)))
     }
 
-  case class Text(tx: XML.Body = Nil, val pos: Double = 0.0, val nl: Int = 0)
+  sealed case class Text(tx: XML.Body = Nil, val pos: Double = 0.0, val nl: Int = 0)
   {
     def newline: Text = copy(tx = FBreak :: tx, pos = 0.0, nl = nl + 1)
     def string(s: String, len: Double): Text = copy(tx = XML.Text(s) :: tx, pos = pos + len)
--- a/src/Pure/General/sha1.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/General/sha1.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -12,7 +12,7 @@
 
 object SHA1
 {
-  case class Digest(rep: String)
+  sealed case class Digest(rep: String)
   {
     override def toString: String = rep
   }
--- a/src/Pure/General/symbol.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/General/symbol.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -120,7 +120,7 @@
 
   class Index(text: CharSequence)
   {
-    case class Entry(chr: Int, sym: Int)
+    sealed case class Entry(chr: Int, sym: Int)
     val index: Array[Entry] =
     {
       val matcher = new Matcher(text)
--- a/src/Pure/PIDE/command.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/PIDE/command.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -16,7 +16,7 @@
 {
   /** accumulated results from prover **/
 
-  case class State(
+  sealed case class State(
     val command: Command,
     val status: List[Markup] = Nil,
     val results: SortedMap[Long, XML.Tree] = SortedMap.empty,
--- a/src/Pure/PIDE/markup_tree.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/PIDE/markup_tree.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -48,7 +48,7 @@
 }
 
 
-case class Markup_Tree(val branches: Markup_Tree.Branches.T)
+sealed case class Markup_Tree(val branches: Markup_Tree.Branches.T)
 {
   import Markup_Tree._
 
--- a/src/Pure/PIDE/text.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Pure/PIDE/text.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -52,7 +52,7 @@
 
   /* information associated with text range */
 
-  case class Info[A](val range: Text.Range, val info: A)
+  sealed case class Info[A](val range: Text.Range, val info: A)
   {
     def restrict(r: Text.Range): Info[A] = Info(range.restrict(r), info)
     def try_restrict(r: Text.Range): Option[Info[A]] =
--- a/src/Tools/jEdit/src/plugin.scala	Fri Jul 08 22:00:53 2011 +0200
+++ b/src/Tools/jEdit/src/plugin.scala	Sat Jul 09 12:56:51 2011 +0200
@@ -105,7 +105,7 @@
 
   /* text area ranges */
 
-  case class Gfx_Range(val x: Int, val y: Int, val length: Int)
+  sealed case class Gfx_Range(val x: Int, val y: Int, val length: Int)
 
   def gfx_range(text_area: TextArea, range: Text.Range): Option[Gfx_Range] =
   {