[gobject-introspection/wip/transformer] Implement return value display
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] Implement return value display
- Date: Fri, 30 Jul 2010 22:04:39 +0000 (UTC)
commit 74d483816ab8eed823b8848f471f11ab1f1dbd59
Author: Zachary Goldberg <zgoldberg src gnome org>
Date: Thu Jul 29 06:24:04 2010 -0400
Implement return value display
giscanner/gicodeformatters.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/gicodeformatters.py b/giscanner/gicodeformatters.py
index dc6c3a8..2dbcf00 100644
--- a/giscanner/gicodeformatters.py
+++ b/giscanner/gicodeformatters.py
@@ -148,6 +148,13 @@ class DocBookFormatter(object):
writer.write_line(");\n")
if divs:
+ retval = Parameter("Returns", method.retval.type, direction="out",
+ transfer=method.retval.transfer)
+ retval.introspectable = method.retval.introspectable
+ retval.doc = method.retval.doc
+ if str(retval.type.ctype) != "void":
+ parameters.append(retval)
+
writer.pop_tag()
writer.write_tag("para", [], method.doc)
writer.push_tag("variablelist", [("role", "params")])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]