summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-03-02 17:16:26 (GMT)
committerGiovanni Campagna <gcampagna@gnome.org>2014-03-05 16:12:39 (GMT)
commit9395abd2b1b497455a3cf8c06d8b7b295bffc233 (patch)
treeefe109a8678e83a4f00c3ce9288f239780c30c5c
parentbb42b4a72ad888d5af5cb424c07a0d746821970e (diff)
downloadgobject-introspection-9395abd2b1b497455a3cf8c06d8b7b295bffc233.tar.gz
gobject-introspection-9395abd2b1b497455a3cf8c06d8b7b295bffc233.tar.xz
docwriter/gjs: restore documentation for return values
-rw-r--r--giscanner/docwriter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index db27105..7852289 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -780,8 +780,10 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
if node.retval.type.target_fundamental == 'gboolean':
name = 'ok'
- params.append(ast.Parameter(name, node.retval.type,
- ast.PARAM_DIRECTION_OUT))
+ ret_param = ast.Parameter(name, node.retval.type,
+ ast.PARAM_DIRECTION_OUT)
+ ret_param.doc = node.retval.doc
+ params.append(ret_param)
for param in node.parameters:
if param not in skip:
params.append(param)