src/Pure/PIDE/xml.scala
changeset 80461 38d020af64aa
parent 80458 b66ece8770a9
child 80816 774e5a0c4c9e
equal deleted inserted replaced
80460:8cd4c7da199a 80461:38d020af64aa
   336       XML.Elem(Markup(int_atom(tag), vector(data._1)), data._2)
   336       XML.Elem(Markup(int_atom(tag), vector(data._1)), data._2)
   337 
   337 
   338 
   338 
   339     /* representation of standard types */
   339     /* representation of standard types */
   340 
   340 
       
   341     val self: T[XML.Body] = identity
       
   342 
   341     val tree: T[XML.Tree] = (t => List(t))
   343     val tree: T[XML.Tree] = (t => List(t))
   342 
   344 
   343     val properties: T[Properties.T] =
   345     val properties: T[Properties.T] =
   344       (props => List(XML.Elem(Markup(":", props), Nil)))
   346       (props => List(XML.Elem(Markup(":", props), Nil)))
   345 
   347 
   417         case _ => throw new XML_Body(List(t))
   419         case _ => throw new XML_Body(List(t))
   418       }
   420       }
   419 
   421 
   420 
   422 
   421     /* representation of standard types */
   423     /* representation of standard types */
       
   424 
       
   425     val self: T[XML.Body] = identity
   422 
   426 
   423     val tree: T[XML.Tree] = {
   427     val tree: T[XML.Tree] = {
   424       case List(t) => t
   428       case List(t) => t
   425       case ts => throw new XML_Body(ts)
   429       case ts => throw new XML_Body(ts)
   426     }
   430     }