diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-01-07 17:15:52 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-01-07 17:18:37 +0100 |
commit | d6c8a24095de9ab26d9d5d22974027a31918013a (patch) | |
tree | aac76defb7c959d7c8459307db718bbf08b6b905 /giscanner/introspectablepass.py | |
parent | f132cc5dfb232815f5fefc57fcf565cad51ff1dc (diff) | |
download | gobject-introspection-d6c8a24095de9ab26d9d5d22974027a31918013a.tar.gz |
scanner: Make sure that vfuncs made to the GIR
* don't skip those associated to a signal
* don't warn if it doesn't have an invoker
https://bugzilla.gnome.org/show_bug.cgi?id=637215
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r-- | giscanner/introspectablepass.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index 4b35f7d9..36d70b20 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -38,14 +38,6 @@ class IntrospectablePass(object): self._namespace.walk(self._introspectable_callable_analysis) self._namespace.walk(self._introspectable_pass3) - def _interface_vfunc_check(self, node, stack): - if isinstance(node, ast.Interface): - for vfunc in node.virtual_methods: - if not vfunc.invoker: - message.warn_node(vfunc, -"""Virtual function %r has no known invoker""" % (vfunc.name, ), - context=node) - def _parameter_warning(self, parent, param, text, position=None): # Suppress VFunctions and Callbacks warnings for now # they cause more problems then they are worth @@ -183,8 +175,6 @@ class IntrospectablePass(object): def _analyze_node(self, obj, stack): if obj.skip: return False - # Combine one-pass checks here - self._interface_vfunc_check(obj, stack) # Our first pass for scriptability if isinstance(obj, ast.Callable): for param in obj.parameters: |