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 {% for struct in structs %} |
| 14 {%- include "struct_definition.tmpl" %} |
| 15 {%- endfor -%} |
| 16 |
| 17 {#--- Interface definitions #} |
| 18 {%- for interface in interfaces -%} |
| 19 {%- include "interface_definition.tmpl" %} |
| 20 {%- endfor %} |
OLD | NEW |