diff options
author | David Zeuthen <davidz@redhat.com> | 2011-05-13 12:20:05 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-05-13 14:18:48 -0400 |
commit | 9c6797e0478b5025c3f2f37b1331c1328cf34f4d (patch) | |
tree | 21efe4e901211a20bf52037da529a8a490d27ab7 /giscanner/girwriter.py | |
parent | b29b3ec7c9f4f9f6d979aff1bfc3dc6cb05970d2 (diff) | |
download | gobject-introspection-9c6797e0478b5025c3f2f37b1331c1328cf34f4d.tar.gz |
Add support for the (skip) annotation on parameters or return values
This was discussed in bug 649657.
https://bugzilla.gnome.org/show_bug.cgi?id=649657
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index 1eca6159..ad601eeb 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -196,6 +196,8 @@ and/or use gtk-doc annotations. ''') attrs = [] if return_.transfer: attrs.append(('transfer-ownership', return_.transfer)) + if return_.skip: + attrs.append(('skip', '1')) with self.tagcontext('return-value', attrs): self._write_generic(return_) self._write_type(return_.type, function=parent) @@ -228,6 +230,8 @@ and/or use gtk-doc annotations. ''') if parameter.destroy_name is not None: idx = parent.get_parameter_index(parameter.destroy_name) attrs.append(('destroy', '%d' % (idx, ))) + if parameter.skip: + attrs.append(('skip', '1')) with self.tagcontext('parameter', attrs): self._write_generic(parameter) self._write_type(parameter.type, function=parent) |