diff options
author | Colin Walters <walters@verbum.org> | 2010-09-14 12:23:59 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-14 12:24:43 -0400 |
commit | 53b4da85dcb49d1fd3dc5e4033e476119653b214 (patch) | |
tree | 1fc438f858c5893b3d96be96c0d49495f8e05190 /giscanner/girwriter.py | |
parent | 303255d484165f7d2e3e3ad298168da43edcbd2e (diff) | |
download | gobject-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/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index a450bb19..d3b023aa 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -154,7 +154,9 @@ and/or use gtk-doc annotations. ''') attrs = [('name', alias.name)] if alias.ctype is not None: attrs.append(('c:type', alias.ctype)) + self._append_node_generic(alias, attrs) with self.tagcontext('alias', attrs): + self._write_generic(alias) self._write_type(alias.target) def _write_callable(self, callable, tag_name, extra_attrs): |