src/Pure/PIDE/document_status.scala
changeset 83215 0526a640f44f
parent 83210 9cc5d77d505c
child 83219 f143ff394324
equal deleted inserted replaced
83214:911fbc338de7 83215:0526a640f44f
   344       state: Document.State,
   344       state: Document.State,
   345       version: Document.Version,
   345       version: Document.Version,
   346       name: Document.Node.Name,
   346       name: Document.Node.Name,
   347       threshold: Time = Time.max
   347       threshold: Time = Time.max
   348     ): Nodes_Status = {
   348     ): Nodes_Status = {
   349       val st = Document_Status.Node_Status.make(state, version, name, threshold = threshold)
   349       val node_status = Document_Status.Node_Status.make(state, version, name, threshold = threshold)
   350       if (apply(name) == st) this
   350       new Nodes_Status(rep + (name -> node_status))
   351       else new Nodes_Status(rep + (name -> st))
       
   352     }
   351     }
   353 
   352 
   354     def update_nodes(
   353     def update_nodes(
   355       resources: Resources,
   354       resources: Resources,
   356       state: Document.State,
   355       state: Document.State,