| Index: mojo/public/tools/bindings/generators/go_templates/union.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/go_templates/union.tmpl b/mojo/public/tools/bindings/generators/go_templates/union.tmpl
|
| index aaea489fa1ded810e5715ce52df18161a3467664..e8710c182e7c9433a8574f1d4b42d5627d988b29 100644
|
| --- a/mojo/public/tools/bindings/generators/go_templates/union.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/go_templates/union.tmpl
|
| @@ -3,9 +3,9 @@
|
| // found in the LICENSE file.
|
|
|
| {% import "encoding_macros.tmpl" as encoding_macros %}
|
| +{% import "mojom_type_macros.tmpl" as mojom_type_macros %}
|
|
|
| -
|
| -{% macro define(union, exported=True) %}
|
| +{% macro define(union, typepkg, package, exported=True) %}
|
| type {{union|name(exported)}} interface {
|
| Tag() uint32
|
| Interface() interface{}
|
| @@ -77,6 +77,8 @@ func (u *{{struct_name}}) decodeInternal(decoder *bindings.Decoder) error {
|
|
|
| {% endfor %}
|
|
|
| +{{ mojom_type_macros.writeMojomTypeDef(typepkg, union, package, exported) }}
|
| +
|
| {% endmacro %}
|
|
|
| {% macro encode_union_field(value, kind) %}
|
|
|