From d84dec39b0fc9bfaff946257bc8fad64ecb8517e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 20 Dec 2011 22:33:09 +0000 Subject: [PATCH] Add FunctionDef.hasOverloads() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etgtools/extractors.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etgtools/extractors.py b/etgtools/extractors.py index dbd6d449..4aa69994 100644 --- a/etgtools/extractors.py +++ b/etgtools/extractors.py @@ -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.