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

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

Issue 975133003: Set Message{Is,Expects} response correctly in go bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/go_templates/interface.tmpl
diff --git a/mojo/public/tools/bindings/generators/go_templates/interface.tmpl b/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
index 32ba383839d33b2e04724db70654b5ccd3283c05..d41df270b4fc2f27c959f1435a5d2a39886ed452 100644
--- a/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
+++ b/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
@@ -23,13 +23,13 @@
-{%- macro flags(response_parameters, is_renponse) -%}
+{%- macro flags(response_parameters, is_response) -%}
{%- if not response_parameters -%}
bindings.MessageNoFlag
-{%- elif is_parameter: -%}
- bindings.MessageExpectsResponseFlag
-{%- else -%}
+{%- elif is_response: -%}
bindings.MessageIsResponseFlag
+{%- else -%}
+ bindings.MessageExpectsResponseFlag
{%- endif -%}
{%- endmacro -%}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698