summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2009-03-28 10:07:37 -0400
committerColin Walters <walters@verbum.org>2009-08-24 15:19:28 -0400
commit7549c8053d0229a12d9196cc8abae54a01a555d0 (patch)
tree5bdc45428afe2bff2dae78b926f142a788c2129d /giscanner/girwriter.py
parent4ba8fa2f8a63bf658406f60e4d3a1f9cc5586ea4 (diff)
downloadgobject-introspection-7549c8053d0229a12d9196cc8abae54a01a555d0.tar.gz
Bug 556628 – (skip) annotation
Adds a (skip) option that can be added to the header of any doc comment to cause that symbol to be skipped in the .gir output
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 7725a38d..7697a2df 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -96,7 +96,8 @@ and/or use gtk-doc annotations. ''')
else:
return cmp(a, b)
for node in sorted(namespace.nodes, cmp=nscmp):
- self._write_node(node)
+ if not node.skip:
+ self._write_node(node)
def _write_node(self, node):
if isinstance(node, Function):