author | wenzelm |
Sun, 06 Dec 2009 22:22:48 +0100 | |
changeset 33999 | d3b200894e21 |
parent 33998 | fc56cfc6906e |
child 34000 | 1fecda948697 |
--- a/src/Pure/General/xml.scala Sun Dec 06 21:56:23 2009 +0100 +++ b/src/Pure/General/xml.scala Sun Dec 06 22:22:48 2009 +0100 @@ -26,6 +26,9 @@ case class Elem(name: String, attributes: Attributes, body: List[Tree]) extends Tree case class Text(content: String) extends Tree + def elem(name: String, body: List[Tree]) = Elem(name, Nil, body) + def elem(name: String) = Elem(name, Nil, Nil) + /* string representation */