scanner: Also traverse GObject properties when walking namespace
authorColin Walters <walters@verbum.org>
Sun, 24 Feb 2013 14:49:28 +0000 (09:49 -0500)
committerColin Walters <walters@verbum.org>
Tue, 26 Feb 2013 21:25:10 +0000 (16:25 -0500)
This could be done manually by the caller, but it's better if we're
consistent here, since we do traverse fields.

https://bugzilla.gnome.org/show_bug.cgi?id=694593

giscanner/ast.py

index c2f89a6..09616f6 100644 (file)
@@ -1020,6 +1020,8 @@ class Class(Node, Registered):
                 field.anonymous_node.walk(callback, chain)
         for sig in self.signals:
             sig.walk(callback, chain)
+        for prop in self.properties:
+            prop.walk(callback, chain)
 
 
 class Interface(Node, Registered):