summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Gjs/function.tmpl
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-01 20:19:12 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-01 20:37:56 -0500
commitd1e368a22c8b9a9a7b260f7077142233b1a3e189 (patch)
tree3d5008a6cbbc3ed7e5fd8900c7f1c514550ac5b7 /giscanner/doctemplates/Gjs/function.tmpl
parent607ec4a55fce7e8e73a901420745b2c80df164f6 (diff)
downloadgobject-introspection-d1e368a22c8b9a9a7b260f7077142233b1a3e189.tar.gz
doctool: Update templates to include the actual instance parameter
Rather than fabricating one with a fake name.
Diffstat (limited to 'giscanner/doctemplates/Gjs/function.tmpl')
-rw-r--r--giscanner/doctemplates/Gjs/function.tmpl8
1 files changed, 1 insertions, 7 deletions
diff --git a/giscanner/doctemplates/Gjs/function.tmpl b/giscanner/doctemplates/Gjs/function.tmpl
index 92bfb3a9..d0fa096e 100644
--- a/giscanner/doctemplates/Gjs/function.tmpl
+++ b/giscanner/doctemplates/Gjs/function.tmpl
@@ -10,19 +10,13 @@
<api:type>${formatter.format_type(node.retval.type) | x}</api:type>
</api:returns>
<api:name>${node.symbol}</api:name>
-% if node.is_method:
- <api:arg>
- <api:type>${node.parent.ctype} *</api:type>
- <api:name>self</api:name>
- </api:arg>
-% endif
% for arg in node.parameters:
% if arg.type.ctype == '<varargs>':
<api:varargs/>
% else:
<api:arg>
<api:type>${formatter.format_type(arg.type) | x}</api:type>
- <api:name>${arg.argname}</api:name>
+ <api:name>${formatter.format_parameter_name(node, arg)}</api:name>
</api:arg>
% endif
% endfor