{% extends 'layout.txt.twig' %}

{% block content %}
{% set namespace = project.namespace %}
{{ block('sidebarNamespaces') }}
     
{#{{ node.parent|raw }}#}
{#====== {{ node.parent.fullyQualifiedStructuralElementName }}{{ node.name }} ======#}

{% if node.children|length > 0 %}
=====Namespaces=====
{% include 'includes/namespace-structure-toc.html.twig' with {structures: node.children} %}
----
{% endif %}

{% if node.traits|length > 0 %}
===== Traits =====
{% include 'includes/namespace-structure-toc.html.twig' with {structures: node.traits} %}
----
{%- endif %}

{% if node.interfaces|length > 0 %}
===== Interfaces =====
{% include 'includes/namespace-structure-toc.html.twig' with {structures: node.interfaces} %}
----
{% endif %}

{% if node.classes|length > 0 %}
===== Classes =====
{% include 'includes/namespace-structure-toc.html.twig' with {structures: node.classes} %}
----
{% endif %}



{#{% if node.constants|length > 0 %}#}
{#===== Constants =====#}
{#{% for constant in node.constants|sort_asc %}#}
{#    {{ block('constant') }}#}
{#{% endfor %}#}
{#{% endif %}#}

{#{% if node.functions|length > 0 %}#}
{#===== Functions =====#}

{#{% for method in node.functions|sort_asc %}#}
{#    {{ block('method') }}#}
{#{% endfor %}#}
{#{% endif %}#}

{% endblock %}
