| Index: mojo/public/tools/bindings/generators/dart_templates/module_definition.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/dart_templates/module_definition.tmpl b/mojo/public/tools/bindings/generators/dart_templates/module_definition.tmpl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e425463eb5b486f4e7d7e5a81d412922a62629cc
|
| --- /dev/null
|
| +++ b/mojo/public/tools/bindings/generators/dart_templates/module_definition.tmpl
|
| @@ -0,0 +1,20 @@
|
| +{#--- 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 #}
|
| +{% for struct in structs %}
|
| +{%- include "struct_definition.tmpl" %}
|
| +{%- endfor -%}
|
| +
|
| +{#--- Interface definitions #}
|
| +{%- for interface in interfaces -%}
|
| +{%- include "interface_definition.tmpl" %}
|
| +{%- endfor %}
|
|
|