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

Unified Diff: mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.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/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
deleted file mode 100644
index fc130252c0f84681948da6545a3250de4e186906..0000000000000000000000000000000000000000
--- a/mojo/public/tools/bindings/generators/go_templates/mojom_reference_macros.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-{%- macro registerType(mapping, typepkg, pkg, type) -%}
-{% if type|is_enum %}
- {{mapping}}["{{type|mojom_type_identifier}}"] = &{{typepkg}}UserDefinedTypeEnumType{
- Value: {{type|mojom_type_identifier}}(),
- }
-{% elif type|is_struct %}
- {{mapping}}["{{type|mojom_type_identifier}}"] = &{{typepkg}}UserDefinedTypeStructType{
- Value: {{type|mojom_type_identifier}}(),
- }
-{% elif type|is_union %}
- {{mapping}}["{{type|mojom_type_identifier}}"] = &{{typepkg}}UserDefinedTypeUnionType{
- Value: {{type|mojom_type_identifier}}(),
- }
-{% elif type|is_interface %}
- {{mapping}}["{{type|mojom_type_identifier}}"] = &{{typepkg}}UserDefinedTypeInterfaceType{
- Value: {{type|mojom_type_identifier}}(),
- }
- {% for method in type.methods %}
-{{registerType(mapping, typepkg, pkg, method.param_struct)}}
- {% if method.response_parameters -%}
-{{registerType(mapping, typepkg, pkg, method.response_param_struct)}}
- {%- endif %}
- {%- endfor %}
-{%- else -%}
- {# Simple kinds, arrays, maps, and handles do not need to be registered. #}
-{%- endif -%}
-{%- endmacro -%}

Powered by Google App Engine
This is Rietveld 408576698