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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl

Issue 1142043005: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl
index f523ba6b8589ec3fab2a76801e28e4f3fd48f2f0..fe9eb34963017f03d4adff5ade09d1f42c585001 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/struct.tmpl
@@ -91,7 +91,7 @@ if err := encoder.WritePointer(); err != nil {
return err
}
{% endif %}
-{% if kind|is_struct %}
+{% if kind|is_struct or kind|is_union %}
if err := {{value}}.Encode(encoder); err != nil {
return err
}
@@ -195,7 +195,7 @@ if err != nil {
{% macro decodePointerValue(value, kind, level=0) %}
-{% if kind|is_struct %}
+{% if kind|is_struct or kind|is_union %}
if err := {{value}}.Decode(decoder); err != nil {
return err
}

Powered by Google App Engine
This is Rietveld 408576698