summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-14 12:23:59 -0400
committerColin Walters <walters@verbum.org>2010-09-14 12:24:43 -0400
commit53b4da85dcb49d1fd3dc5e4033e476119653b214 (patch)
tree1fc438f858c5893b3d96be96c0d49495f8e05190 /giscanner/girparser.py
parent303255d484165f7d2e3e3ad298168da43edcbd2e (diff)
downloadgobject-introspection-53b4da85dcb49d1fd3dc5e4033e476119653b214.tar.gz
scanner: Parse annotations for typedefs
* Explicitly check for ast.Alias in annotation pass * Add "generic" attribs handling for aliases like docs, introspectable=0 etc. https://bugzilla.gnome.org/show_bug.cgi?id=629668
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index ab2b29d6..582dcc06 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -179,6 +179,7 @@ class GIRParser(object):
alias = ast.Alias(node.attrib['name'],
typeval,
node.attrib.get(_cns('type')))
+ self._parse_generic_attribs(node, alias)
self._namespace.append(alias)
def _parse_generic_attribs(self, node, obj):