Pass in blocks to IntrospectablePass
authorJohan Dahlin <johan@gnome.org>
Tue, 21 Sep 2010 02:15:08 +0000 (23:15 -0300)
committerJohan Dahlin <johan@gnome.org>
Tue, 21 Sep 2010 02:31:17 +0000 (23:31 -0300)
giscanner/introspectablepass.py
giscanner/scannermain.py
tests/warn/warningtester.py

index 1432a1078588b75a51ba7d7232b7d5cfc94d073e..0de25c8d1721da6dc9219fc7b80fe54482fc1e4f 100644 (file)
@@ -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
 
index 3a9f27c962571fc04a4d43f9d3cde00d70a9f318..503524e101a1515d3fe32afb8d132be660c92db7 100644 (file)
@@ -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():
index a3de1e8bf8c97326c80263c5c067878f1a1aa3f9..909a07af0e3617cfaf2b6d0d70680b94ede374e3 100644 (file)
@@ -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()