summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-02-25 02:45:15 +0100
committerGiovanni Campagna <gcampagna@src.gnome.org>2014-02-26 17:27:07 +0100
commit5420484595418dc801d6f01ac02658f10255e699 (patch)
tree73c12a80c6ca6401c0a5d54996e8fd463ac9d956 /giscanner/doctemplates
parent32b6ee9bfa99b7c106958fec8ce0e64c6390c53b (diff)
downloadgobject-introspection-5420484595418dc801d6f01ac02658f10255e699.tar.gz
docwriter/gjs: add support for shadowed function names
If a function is shadowed, omit it from the documentation, and if a function shadows, uses the new name.
Diffstat (limited to 'giscanner/doctemplates')
-rw-r--r--giscanner/doctemplates/Gjs/function.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/doctemplates/Gjs/function.tmpl b/giscanner/doctemplates/Gjs/function.tmpl
index 012978ac..8e9d7417 100644
--- a/giscanner/doctemplates/Gjs/function.tmpl
+++ b/giscanner/doctemplates/Gjs/function.tmpl
@@ -21,7 +21,7 @@
<%block name="synopsis">
<synopsis><code mime="text/x-gjs">
function \
-${node.name}(\
+${node.name if node.shadows is None else node.shadows}(\
${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\
): ${formatter.format_out_parameters(node)} {
// Gjs wrapper for ${node.symbol}()