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