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

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

Issue 10703194: Extract interfaces and members renaming logic to a new HtmlRenamer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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 | « lib/dom/scripts/dartgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/database.py
diff --git a/lib/dom/scripts/database.py b/lib/dom/scripts/database.py
index 4c9ef0947e6c94581031c649d1f91ad0d4a79e96..387cc3fb18e1ea176293f2cefd23a6a0f8105da3 100755
--- a/lib/dom/scripts/database.py
+++ b/lib/dom/scripts/database.py
@@ -225,3 +225,12 @@ class Database(object):
if os.path.exists(file_path):
_logger.debug('deleting %s' % file_path)
os.remove(file_path)
+
+ def Hierarchy(self, interface):
+ yield interface
+ for parent in interface.parents:
+ parent_name = parent.type.id
+ if not self.HasInterface(parent.type.id):
+ continue
+ for parent_interface in self.Hierarchy(self.GetInterface(parent.type.id)):
+ yield parent_interface
« no previous file with comments | « lib/dom/scripts/dartgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698