[gobject-introspection] Pass in blocks to IntrospectablePass
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Pass in blocks to IntrospectablePass
- Date: Tue, 21 Sep 2010 02:40:13 +0000 (UTC)
commit f3bf705c1461d9bc64ced0e373b49bdf94319ec6
Author: Johan Dahlin <johan gnome org>
Date: Mon Sep 20 23:15:08 2010 -0300
Pass in blocks to IntrospectablePass
giscanner/introspectablepass.py | 3 ++-
giscanner/scannermain.py | 2 +-
tests/warn/warningtester.py | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index 1432a10..0de25c8 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -22,9 +22,10 @@ from . import message
class IntrospectablePass(object):
- def __init__(self, transformer):
+ def __init__(self, transformer, blocks):
self._transformer = transformer
self._namespace = transformer.namespace
+ self._blocks = blocks
# Public API
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 3a9f27c..503524e 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -354,7 +354,7 @@ see --identifier-prefix and --symbol-prefix."""
utils.break_on_debug_flag('tree')
- final = IntrospectablePass(transformer)
+ final = IntrospectablePass(transformer, blocks)
final.validate()
if options.warn_fatal and logger.did_warn():
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index a3de1e8..909a07a 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -91,7 +91,7 @@ def check(args):
main = MainTransformer(transformer, blocks)
main.transform()
- final = IntrospectablePass(transformer)
+ final = IntrospectablePass(transformer, blocks)
final.validate()
raw = output.getvalue()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]