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