[gobject-introspection/wip/transformer] Do a type resolution pass before annotation processing



commit 38921c72657931806125a227408e969dbff138fe
Author: Colin Walters <walters verbum org>
Date:   Wed Jul 28 18:59:50 2010 -0400

    Do a type resolution pass before annotation processing

 giscanner/primarytransformer.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/primarytransformer.py b/giscanner/primarytransformer.py
index ce8e1f2..4ebe888 100644
--- a/giscanner/primarytransformer.py
+++ b/giscanner/primarytransformer.py
@@ -52,6 +52,11 @@ class PrimaryTransformer(object):
     # Public API
 
     def transform(self):
+        # Do a type resolution pass before doing resolution
+        # so that annotation processing can figure out transfer
+        # defaults better.
+        self._namespace.walk(self._pass_type_resolution)
+
         self._namespace.walk(self._pass_read_annotations)
         
         # We have a rough tree which should have all



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]