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

Unified Diff: sky/engine/bindings/scripts/dart_methods.py

Issue 923093003: Add support for named arguments to our bindings generation. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: sky/engine/bindings/scripts/dart_methods.py
diff --git a/sky/engine/bindings/scripts/dart_methods.py b/sky/engine/bindings/scripts/dart_methods.py
index 25b3d88bd9d6fafa3ea8f076e91bb60e38146c94..014f28b7b49e7f29495ee11812e2ec08e6b36bd3 100644
--- a/sky/engine/bindings/scripts/dart_methods.py
+++ b/sky/engine/bindings/scripts/dart_methods.py
@@ -125,6 +125,7 @@ def argument_context(interface, method, argument, index):
'local_cpp_type': local_cpp_type,
# FIXME: check that the default value's type is compatible with the argument's
'default_value': default_value,
+ 'is_named': 'Named' in extended_attributes,
'dart_default_value': dart_default_value,
'enum_validation_expression': idl_type.enum_validation_expression,
'preprocessed_type': preprocessed_type,
« no previous file with comments | « sky/engine/bindings/IDLExtendedAttributes.txt ('k') | sky/engine/bindings/scripts/templates/interface_dart.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698