src/Pure/PIDE/protocol.scala
changeset 56469 ffc94a271633
parent 56468 30128d1acfbc
child 56470 8eda56033203
--- a/src/Pure/PIDE/protocol.scala	Tue Apr 08 15:12:54 2014 +0200
+++ b/src/Pure/PIDE/protocol.scala	Tue Apr 08 16:07:02 2014 +0200
@@ -302,13 +302,14 @@
 
   def message_positions(
     valid_id: Document_ID.Generic => Boolean,
+    chunk_name: Text.Chunk.Name,
     chunk: Text.Chunk,
     message: XML.Elem): Set[Text.Range] =
   {
     def elem_positions(props: Properties.T, set: Set[Text.Range]): Set[Text.Range] =
       props match {
-        case Position.Reported(id, chunk_name, symbol_range)
-        if valid_id(id) && chunk_name == chunk.name =>
+        case Position.Reported(id, name, symbol_range)
+        if valid_id(id) && name == chunk_name =>
           chunk.incorporate(symbol_range) match {
             case Some(range) => set + range
             case _ => set