src/Pure/PIDE/markup_tree.scala
changeset 39178 83e9f3ccea9f
parent 39177 0468964aec11
child 43520 cec9b95fa35d
--- a/src/Pure/PIDE/markup_tree.scala	Tue Sep 07 22:28:58 2010 +0200
+++ b/src/Pure/PIDE/markup_tree.scala	Tue Sep 07 23:06:52 2010 +0200
@@ -43,6 +43,8 @@
   }
 
   val empty = new Markup_Tree(Branches.empty)
+
+  type Select[A] = PartialFunction[Text.Info[Any], A]
 }
 
 
@@ -89,7 +91,7 @@
   private def overlapping(range: Text.Range): Stream[(Text.Range, Branches.Entry)] =
     Branches.overlapping(range, branches).toStream
 
-  def select[A](root_range: Text.Range)(result: PartialFunction[Text.Info[Any], A])
+  def select[A](root_range: Text.Range)(result: Markup_Tree.Select[A])
     : Stream[Text.Info[Option[A]]] =
   {
     def stream(