{% for set in page.kotlinGrammar %}
{% for item in set.content %} {% case item.type %} {% when 'comment' %}
{% markdown %}{{ item.content }}{% endmarkdown %}
{% when 'item' %}
{% for item in item.content %} {% case item.type %} {% when 'annotation' %}
{{ item.content }}
{% when 'declaration' %}
{{ item.name }}
{% if item.usages.size > 0 %}
(used by {% for usage in item.usages %} {{ usage.name }}{% if forloop.last == false %},{% endif %}{% endfor %})
{% endif %}
{% when 'description' %} {% if item.content.size > 0 %}
{% for item in item.content %}{% case item.type %}{% when 'identifier' %}{{ item.name }}{% when 'string' %}{{ item.content | escape }}{% when 'symbol' %}{{ item.content }}{% when 'other' %}{{ item.content }}{% when 'whitespace' %}{{ item.content | replace:' ',' ' }}{% when 'crlf' %}
{% endcase %}{% endfor %}
{% endif %} {% endcase %} {% endfor %}
{% endcase %} {% endfor %}
{% endfor %}