OLD | NEW |
| (Empty) |
1 {#--- Constants #} | |
2 {%- for constant in module.constants %} | |
3 final {{constant.name}} = {{constant.value|expression_to_text}}; | |
4 {%- endfor %} | |
5 | |
6 {#--- Enums #} | |
7 {%- from "enum_definition.tmpl" import enum_def %} | |
8 {%- for enum in enums %} | |
9 {{ enum_def("", enum) }} | |
10 {%- endfor %} | |
11 | |
12 {#--- Struct definitions #} | |
13 {%- from "struct_definition.tmpl" import struct_def %} | |
14 {% for struct in structs %} | |
15 {{ struct_def(struct) }} | |
16 {%- endfor -%} | |
17 | |
18 {#--- Interface definitions #} | |
19 {%- for interface in interfaces -%} | |
20 {%- include "interface_definition.tmpl" %} | |
21 {%- endfor %} | |
OLD | NEW |