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

Unified Diff: client/dom/scripts/databasebuilder.py

Issue 9310119: Add ImplementedBy attribute for operations merged from [Supplemental=XXX] interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move new code to _merge_interfaces Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/databasebuilder.py
diff --git a/client/dom/scripts/databasebuilder.py b/client/dom/scripts/databasebuilder.py
index a08857464747d67e97ced21e6485c02dffb7b26f..30d4e05b1e0cbf3efefd3176e9012ecfaa50815b 100755
--- a/client/dom/scripts/databasebuilder.py
+++ b/client/dom/scripts/databasebuilder.py
@@ -360,6 +360,11 @@ class DatabaseBuilder(object):
def merge_list(what):
old_list = old_interface.__dict__[what]
new_list = new_interface.__dict__[what]
+
+ if what != 'parents' and old_interface.id != new_interface.id:
+ for node in new_list:
+ node.ext_attrs['ImplementedBy'] = new_interface.id
+
changed = self._merge_nodes(old_list, new_list, import_options)
# Delete list items with zero remaining annotations.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698