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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/parse/translate.py

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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/parse/translate.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/translate.py b/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
index 8ad952cb040e5c721901374eb80d50da91a4ca1e..8407a088c6b8f99cd2ca705c7d10db53340928ab 100644
--- a/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
@@ -33,6 +33,8 @@ def _MapKind(kind):
'handle<shared_buffer>': 'h:s'}
if kind.endswith('[]'):
return 'a:' + _MapKind(kind[0:len(kind)-2])
+ if kind.endswith('&'):
+ return 'r:' + _MapKind(kind[0:len(kind)-1])
if kind in map_to_kind:
return map_to_kind[kind]
return 'x:' + kind

Powered by Google App Engine
This is Rietveld 408576698