Update xml.cxx to return typenames (#777)

Typenames were being returned wrong, so add a condition to handle templateparms correctly.
This commit is contained in:
ahmed-usman 2016-09-26 22:15:47 -04:00 committed by Olly Betts
commit 2d871655e3

View file

@ -144,8 +144,8 @@ public:
Xml_print_kwargs(Getattr(obj, k));
} else if (Cmp(k, "parms") == 0 || Cmp(k, "pattern") == 0) {
Xml_print_parmlist(Getattr(obj, k));
} else if (Cmp(k, "catchlist") == 0) {
Xml_print_parmlist(Getattr(obj, k), "catchlist");
} else if (Cmp(k, "catchlist") == 0 || Cmp(k, "templateparms") == 0) {
Xml_print_parmlist(Getattr(obj, k), Char(k));
} else {
DOH *o;
print_indent(0);