diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-03-02 18:16:26 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@gnome.org> | 2014-03-05 17:12:39 +0100 |
commit | 9395abd2b1b497455a3cf8c06d8b7b295bffc233 (patch) | |
tree | efe109a8678e83a4f00c3ce9288f239780c30c5c /giscanner | |
parent | bb42b4a72ad888d5af5cb424c07a0d746821970e (diff) | |
download | gobject-introspection-9395abd2b1b497455a3cf8c06d8b7b295bffc233.tar.gz |
docwriter/gjs: restore documentation for return values
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/docwriter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py index db271052..7852289a 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) |