Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: mojo/public/tools/bindings/generators/go_templates/union.tmpl

Issue 1719873003: Mojom runtime type info: New implementation for Go. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e8710c182e7c9433a8574f1d4b42d5627d988b29..a0fcd795ec3613b5749d798621ab80f4db1bbc5c 100644
--- a/mojo/public/tools/bindings/generators/go_templates/union.tmpl
+++ b/mojo/public/tools/bindings/generators/go_templates/union.tmpl
@@ -3,7 +3,6 @@
// found in the LICENSE file.
{% import "encoding_macros.tmpl" as encoding_macros %}
-{% import "mojom_type_macros.tmpl" as mojom_type_macros %}
{% macro define(union, typepkg, package, exported=True) %}
type {{union|name(exported)}} interface {
@@ -77,8 +76,6 @@ 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) %}

Powered by Google App Engine
This is Rietveld 408576698