[gobject-introspection] [IntrospectablePass] Suppress callback/vfunction warnings
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [IntrospectablePass] Suppress callback/vfunction warnings
- Date: Tue, 21 Sep 2010 02:40:33 +0000 (UTC)
commit 7d478a50602f3783b67a6cf9b53eac1bbc1df7ba
Author: Johan Dahlin <johan gnome org>
Date: Mon Sep 20 23:30:25 2010 -0300
[IntrospectablePass] Suppress callback/vfunction warnings
Suppress a callback and virtual function warnings until
there's a clear way to document them.
giscanner/introspectablepass.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index cc3a59d..7de9b92 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -45,6 +45,11 @@ class IntrospectablePass(object):
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
+ if isinstance(parent, (ast.VFunction, ast.Callback)):
+ return
+
if hasattr(parent, 'symbol'):
prefix = '%s: ' % (parent.symbol, )
block = self._blocks.get(parent.symbol)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]