{# Signature (copy-paste ready). For @overload members, render every captured
signature variant (source order) instead of a single signature. #}
{% if m.is_overloaded and (m.signature_variants | length > 0) %}
{% for variant in m.signature_variants %}
{{ variant }}
{% end %}
{% elif m.signature %}
{{ m.signature }}
{% end %}
{# Full description - only show if truncated in header #}
{% let desc_stripped = (m.description | striptags | trim) if m.description else '' %}
{% if m.description and desc_stripped | length > 77 %}
{{ m.description | markdownify | xref_docstring | safe }}
{% end %}
{# Member parameters - using ParamView from MemberView.params #}
{% if m.params | length > 0 %}
Parameters
| Name |
Type |
Description |
{% for p in m.params %}
{{ p.name }} |
{{ (p.type | xref_type) if p.type else '—' }} |
{{ (p.description | markdownify | safe) if p.description else '' }}
{% if p.default is not none and p.default != '' %}
Default: {{ p.default }}
{% end %}
|
{% end %}
{% end %}
{# Member return type (detailed) - only show if has description OR non-trivial type #}
{% let is_nontrivial_return = m.return_type and m.return_type not in ('None', 'none', 'void', '') %}
{% if m.return_description or is_nontrivial_return %}
Returns
{{ m.return_type | xref_type }}
{% if m.return_description %}
{{ m.return_description }}
{% end %}
{% end %}