src/Pure/PIDE/command.scala
changeset 57615 df1b3452d71c
parent 56782 433cf57550fa
child 57842 8e4ae2db1849
equal deleted inserted replaced
57614:416ce9617780 57615:df1b3452d71c
   312     val empty: Perspective = Perspective(Nil)
   312     val empty: Perspective = Perspective(Nil)
   313   }
   313   }
   314 
   314 
   315   sealed case class Perspective(commands: List[Command])  // visible commands in canonical order
   315   sealed case class Perspective(commands: List[Command])  // visible commands in canonical order
   316   {
   316   {
       
   317     def is_empty: Boolean = commands.isEmpty
       
   318 
   317     def same(that: Perspective): Boolean =
   319     def same(that: Perspective): Boolean =
   318     {
   320     {
   319       val cmds1 = this.commands
   321       val cmds1 = this.commands
   320       val cmds2 = that.commands
   322       val cmds2 = that.commands
   321       require(!cmds1.exists(_.is_undefined))
   323       require(!cmds1.exists(_.is_undefined))