Add FunctionDef.hasOverloads()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-12-20 22:33:09 +00:00
parent 36e182f5bd
commit d84dec39b0

View File

@@ -313,6 +313,13 @@ class FunctionDef(BaseDef):
return None
def hasOverloads(self):
"""
Returns True if there are any overloads that are not ignored.
"""
return bool([x for x in self.overloads if not x.ignored])
def ignore(self, val=True):
# If the item being ignored has overloads then try to reorder the
# items so the primary item is not an ignored one.