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

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

Issue 2863353002: Mojo code generator: change where to add computed data to mojom definitions (Closed)
Patch Set: . Created 3 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: mojo/public/tools/bindings/pylib/mojom/generate/module.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
index fd346e2f6efd32a1f83ce797ea64faca095549a4..906d3fde279d4e9546e72e181915c4454157f599 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
@@ -623,9 +623,8 @@ class Enum(Kind):
class Module(object):
- def __init__(self, name=None, namespace=None, attributes=None):
- self.name = name
- self.path = name
+ def __init__(self, path=None, namespace=None, attributes=None):
+ self.path = path
self.namespace = namespace
self.structs = []
self.unions = []
@@ -639,10 +638,10 @@ class Module(object):
def Repr(self, as_ref=True):
if as_ref:
- return '<%s name=%r namespace=%r>' % (
- self.__class__.__name__, self.name, self.namespace)
+ return '<%s path=%r namespace=%r>' % (
+ self.__class__.__name__, self.path, self.namespace)
else:
- return GenericRepr(self, {'name': False, 'namespace': False,
+ return GenericRepr(self, {'path': False, 'namespace': False,
'attributes': False, 'structs': False,
'interfaces': False, 'unions': False})

Powered by Google App Engine
This is Rietveld 408576698