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: lib/dom/scripts/databasebuilder.py

Issue 10513004: Implement v8-like overload resolving. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/dom/scripts/databasebuilder.py
diff --git a/lib/dom/scripts/databasebuilder.py b/lib/dom/scripts/databasebuilder.py
index de4c7548708e0cb62717c0b26895009c34684e0a..68e678fb3f193a297e6be2b52135f9532241ef0a 100755
--- a/lib/dom/scripts/databasebuilder.py
+++ b/lib/dom/scripts/databasebuilder.py
@@ -126,9 +126,8 @@ class DatabaseBuilder(object):
for i in range(0, len(op.arguments)):
argument = op.arguments[i]
in_optional_whitelist = (interface.id, op.id, argument.id) in optional_argument_whitelist
- if in_optional_whitelist or set(['Optional', 'Callback']).issubset(argument.ext_attrs.keys()):
+ if in_optional_whitelist:
argument.ext_attrs['Optional'] = None
- argument.ext_attrs['RequiredCppParameter'] = None
def _rename_types(self, idl_file, import_options):
"""Rename interface and type names with names provided in the

Powered by Google App Engine
This is Rietveld 408576698