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

Unified Diff: lib/dom/scripts/dartgenerator.py

Issue 10541029: Do not merge IDL interfaces in dartdomgenerator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed shadowing. 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
« no previous file with comments | « no previous file | lib/dom/scripts/systemfrog.py » ('j') | lib/dom/scripts/systemfrog.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/dartgenerator.py
diff --git a/lib/dom/scripts/dartgenerator.py b/lib/dom/scripts/dartgenerator.py
index a2338bbf0b35a1d7058097361332efb35a2571cc..c446486d6be565472b57f9dcce0f6d8e3242707d 100755
--- a/lib/dom/scripts/dartgenerator.py
+++ b/lib/dom/scripts/dartgenerator.py
@@ -80,13 +80,10 @@ class DartGenerator(object):
if database.HasInterface(old_name):
_logger.info('renaming interface %s to %s' % (old_name, new_name))
interface = database.GetInterface(old_name)
- database.DeleteInterface(old_name)
if not database.HasInterface(new_name):
interface.id = new_name
+ database.DeleteInterface(old_name)
database.AddInterface(interface)
- else:
- new_interface = database.GetInterface(new_name)
- MergeNodes(new_interface, interface)
if rename_javascript_binding_names:
interface.javascript_binding_name = new_name
« no previous file with comments | « no previous file | lib/dom/scripts/systemfrog.py » ('j') | lib/dom/scripts/systemfrog.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698