blob: cf72c1eede08773aa79afbf6d8fa0f75d044669e [file] [log] [blame]
{#--- Constants #}
{%- for constant in module.constants %}
final {{constant.name}} = {{constant.value|expression_to_text}};
{%- endfor %}
{#--- Enums #}
{%- from "enum_definition.tmpl" import enum_def %}
{%- for enum in enums %}
{{ enum_def("", enum) }}
{%- endfor %}
{#--- Struct definitions #}
{%- from "struct_definition.tmpl" import struct_def %}
{% for struct in structs %}
{{ struct_def(struct) }}
{%- endfor -%}
{#--- Interface definitions #}
{%- for interface in interfaces -%}
{%- include "interface_definition.tmpl" %}
{%- endfor %}