diff options
Diffstat (limited to 'generator/asttoxml.cpp')
-rw-r--r-- | generator/asttoxml.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generator/asttoxml.cpp b/generator/asttoxml.cpp index a215eaf..0c351ac 100644 --- a/generator/asttoxml.cpp +++ b/generator/asttoxml.cpp @@ -139,6 +139,12 @@ void writeOutFunction(QXmlStreamWriter &s, FunctionModelItem &item) { s.writeStartElement("function"); s.writeAttribute("name", qualified_name); + if (!item->exception().isEmpty()) { + s.writeStartElement("exception"); + s.writeAttribute("throw", item->exception()); + s.writeEndElement(); + } + ArgumentList arguments = item->arguments(); for(int i=0; i < arguments.size() ; i++) { s.writeStartElement("argument"); |