%inherit file="/base.tmpl"/>
<%block name="info">
${formatter.format_xref(node.parent, type="guide", group=page_kind)}
${formatter.format_type(node.retval.type) | x}
${node.symbol}
% for arg in formatter.get_in_parameters(node):
% if arg.type.ctype == '':
% else:
${formatter.format_type(arg.type) | x}
${formatter.format_parameter_name(node, arg)}
% endif
% endfor
%block>
<%block name="synopsis">
function \
${node.name if node.shadows is None else node.shadows}(\
${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\
): ${formatter.format_out_parameters(node)} {
// Gjs wrapper for ${node.symbol}()
}
%block>
<%block name="details">
% if formatter.has_any_parameters(node):
% for arg in formatter.get_in_parameters(node):
-
${arg.argname}
${formatter.format(node, arg.doc)}
% endfor
% for arg in formatter.get_out_parameters(node):
-
${(arg.argname + ' (out)') if arg.direction == 'inout' else arg.argname}
${formatter.format(node, arg.doc)}
% endfor
% endif
%block>