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

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

Issue 551053002: mojo: Adding struct's fields for python bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding constructors. Created 6 years, 3 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/data.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/data.py b/mojo/public/tools/bindings/pylib/mojom/generate/data.py
index 130eba45c42a953b5a38209fa9d2371711d309ae..fab7e2e875b3ad5e13de2108ad55d2fd586ffdb5 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/data.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/data.py
@@ -318,7 +318,7 @@ def ConstantFromData(module, data, parent_kind):
constant.kind = KindFromData(module.kinds, data['kind'], scope)
constant.value = FixupExpression(module, data.get('value'), scope, None)
- value = mojom.NamedValue(module, parent_kind, constant.name)
+ value = mojom.ConstantValue(module, parent_kind, constant)
module.values[value.GetSpec()] = value
return constant

Powered by Google App Engine
This is Rietveld 408576698