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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py

Issue 1448123002: New Mojom Compiler: Do not prepend parent kind name to enum name. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix mojom_translator_unittest.py. 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py b/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py
index cab9432e983e25fef5cf10ee720db51840bbe2ea..669767b4fbb6394151eb72ef240a99025506df72 100755
--- a/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py
@@ -250,7 +250,6 @@ class FileTranslator(object):
if mojom_enum.decl_data.container_type_key:
parent_kind = self.UserDefinedFromTypeKey(
mojom_enum.decl_data.container_type_key)
- enum.name = '%s.%s' % (parent_kind.name, enum.name)
enum.parent_kind = parent_kind
enum.fields = [self.EnumFieldFromMojom(value)
for value in mojom_enum.values]
« no previous file with comments | « no previous file | mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698