Catch the return type when it's inside a <ref> tag.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2009-04-10 22:40:24 +00:00
parent f613f81ac9
commit 0ed9af4ed9

View File

@ -95,6 +95,8 @@ Detailed Description:
def getTextValue(node, recursive=False):
text = ""
for child in node.childNodes:
if child.nodeType == child.ELEMENT_NODE and child.nodeName == "ref":
text += getTextValue(child)
if child.nodeType == child.TEXT_NODE:
text += child.nodeValue.strip()
@ -147,6 +149,7 @@ class DoxyMLParser:
if child.nodeType == child.ELEMENT_NODE:
param[child.nodeName] = getTextValue(child)
new_method.params.append(param)
print "Adding %s" % (new_method.name + new_method.argsstring)
new_class.methods.append(new_method)
if __name__ == "__main__":