summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Gjs/vfunc.tmpl
blob: 1d132c78d7abfd35a3aefb734a18f280545123cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%inherit file="/base.tmpl"/>
<%block name="synopsis">
<synopsis><code mime="text/x-gjs">
function vfunc_${node.name}(\
${', '.join('%s:%s' % (arg.argname, formatter.format_type(arg.type)) for arg in formatter.get_parameters(node))}\
):${formatter.format_type(node.retval.type)} {
}
</code></synopsis>
</%block>
<%block name="details">
% if formatter.get_parameters(node) or node.retval:
<dl>
% for arg in formatter.get_parameters(node):
<dt><p>${arg.argname} :</p></dt>
<dd>${formatter.format(node, arg.doc)}</dd>
% endfor
% if node.retval and node.retval.type.ctype != 'void':
<dt><p>Returns :</p></dt>
<dd>${formatter.format(node, node.retval.doc)}</dd>
% endif
</dl>
% endif
</%block>