2017-06-29 17:23:27 -04:00
|
|
|
{% import "lib/paramList.html" as params -%}
|
|
|
|
|
|
|
|
{%- macro renderHeritage(exportDoc) -%}
|
|
|
|
{%- if exportDoc.extendsClauses.length %} extends {% for clause in exportDoc.extendsClauses -%}
|
|
|
|
{$ clause $}{% if not loop.last %}, {% endif -%}
|
|
|
|
{% endfor %}{% endif %}
|
|
|
|
{%- if exportDoc.implementsClauses.length %} implements {% for clause in exportDoc.implementsClauses -%}
|
|
|
|
{$ clause $}{% if not loop.last %}, {% endif -%}
|
|
|
|
{% endfor %}{% endif %}
|
|
|
|
{%- endmacro -%}
|
|
|
|
|
2017-07-12 17:20:55 -04:00
|
|
|
{%- macro renderMember(member, truncate) -%}
|
2017-06-29 17:23:27 -04:00
|
|
|
{%- if member.accessibility !== 'public' %}{$ member.accessibility $} {% endif -%}
|
|
|
|
{%- if member.isGetAccessor %}get {% endif -%}
|
|
|
|
{%- if member.isSetAccessor %}set {% endif -%}
|
|
|
|
{%- if member.isStatic %}static {% endif -%}
|
2017-07-12 17:20:55 -04:00
|
|
|
{$ member.name $}{$ member.typeParameters | escape $}{$ params.paramList(member.parameters, truncate) | trim $}
|
2017-06-29 17:23:27 -04:00
|
|
|
{%- if member.isOptional %}?{% endif -%}
|
2017-07-12 17:20:55 -04:00
|
|
|
{$ params.returnType(member.type) | trim | truncateFirstLine $}
|
2017-06-29 17:23:27 -04:00
|
|
|
{%- endmacro -%}
|
|
|
|
|
|
|
|
{%- macro renderMemberDetail(member, cssClass) -%}
|
|
|
|
<div class="{$ cssClass $}">
|
|
|
|
<a id="{$ member.anchor $}"></a>
|
|
|
|
<code-example hideCopy="true">{$ renderMember(member) $}</code-example>
|
|
|
|
{%- if not member.notYetDocumented %}
|
|
|
|
{$ member.description | marked $}
|
|
|
|
{% endif -%}
|
|
|
|
</div>
|
|
|
|
{% endmacro -%}
|
|
|
|
|
|
|
|
{% macro renderMemberDetails(members, containerClass, itemClass, titleText) %}
|
|
|
|
{% if members.length %}
|
|
|
|
<section class="{$ containerClass $}">
|
|
|
|
<h2>{$ titleText $}</h2>
|
|
|
|
{% for member in members %}{% if not member.internal %}
|
|
|
|
{$ renderMemberDetail(member, itemClass) $}
|
|
|
|
{% if not loop.last %}<hr>{% endif %}
|
|
|
|
{% endif %}{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|