summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Gjs/class.tmpl
blob: 887c646b470e629e1e3382d75b423a748e6dd405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%inherit file="/class.tmpl"/>
<%block name="synopsis">
  <synopsis><code>
const ${namespace.name} = imports.gi.${namespace.name};

let ${formatter.to_underscores(node.name).lower()} = new ${namespace.name}.${node.name}(\
% if len(node.properties) > 0:
{
% for ix, property_ in enumerate(node.properties):
% if property_.construct or property_.construct_only or property_.writable:
    <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>: value,
% endif
% endfor
}\
% endif
);
  </code></synopsis>
</%block>