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

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

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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/mojom_reference_macros.tmpl
diff --git a/mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.tmpl b/mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.tmpl
index d93f9024f3635af6c8ff60adb9cd2c047821e96e..ce21c47639104ce01356bebc070727ea9d9e4dc2 100644
--- a/mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.tmpl
+++ b/mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.tmpl
@@ -3,10 +3,10 @@
// found in the LICENSE file.
{%- macro registerType(mapping, typepkg, pkg, type) -%}
-{%- if type|identifier|identifier_check('RegisterType') -%}{# Already printed out #}
+{%- if type|identifier|identifier_check -%}{# Already printed out #}
{%- elif type|package != '' -%} {# Don't print. That package will do it. #}
{%- else -%}
-{{type|identifier|identifier_store('RegisterType')}}
+{{type|identifier|identifier_store}}
{%- if type|mojom_type(typepkg) != "" -%}{#- simple kind case: do nothing -#}
{%- elif type|is_array -%}

Powered by Google App Engine
This is Rietveld 408576698