toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  var children = <XmlNode>[];
  children.addAll(args.map((a) => a.toXml()));
  children.addAll(annotations.map((a) => a.toXml()));
  return XmlElement(
      XmlName('method'), [XmlAttribute(XmlName('name'), name)], children);
}