tuned signature;
authorwenzelm
Mon, 17 Oct 2022 12:15:23 +0200
changeset 76322 43e66527fa93
parent 76321 3e1e2f9198bb
child 76323 3637a0d06fe1
tuned signature;
src/Pure/PIDE/session.scala
--- a/src/Pure/PIDE/session.scala	Mon Oct 17 11:58:13 2022 +0200
+++ b/src/Pure/PIDE/session.scala	Mon Oct 17 12:15:23 2022 +0200
@@ -255,7 +255,7 @@
     def flush(): Unit = synchronized {
       if (assignment || nodes.nonEmpty || commands.nonEmpty)
         commands_changed.post(Session.Commands_Changed(assignment, nodes, commands))
-      if (nodes.nonEmpty) consolidation.update(nodes)
+      if (nodes.nonEmpty) consolidation.update(more_nodes = nodes)
       assignment = false
       nodes = Set.empty
       commands = Set.empty
@@ -312,10 +312,10 @@
       state.change(_ => None)
     }
 
-    def update(new_nodes: Set[Document.Node.Name] = Set.empty): Unit = {
+    def update(more_nodes: Set[Document.Node.Name] = Set.empty): Unit = {
       val active =
         state.change_result(st =>
-          (st.isDefined, st.map(nodes => if (nodes.isEmpty) new_nodes else nodes ++ new_nodes)))
+          (st.isDefined, st.map(nodes => if (nodes.isEmpty) more_nodes else nodes ++ more_nodes)))
       if (active) delay.invoke()
     }