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

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

Issue 10068019: Fix ApiDoc to work with new dart:html code. Tweak dart:html generator to generate clearer @domName … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 8 years, 8 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/dartdomgenerator.py ('k') | lib/dom/scripts/idlnode.py » ('j') | no next file with comments »
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 7e3d246ec89ce8dcb2be9c44ec308bb2091b3c2b..4d8f18f152015727452a3915a0ebd9dae4c32089 100755
--- a/lib/dom/scripts/dartgenerator.py
+++ b/lib/dom/scripts/dartgenerator.py
@@ -108,8 +108,13 @@ class DartGenerator(object):
new_interface = database.GetInterface(new_name)
MergeNodes(new_interface, interface)
- interface.javascript_binding_name = (old_name if rename_javascript_binding_names
- else new_name)
+ if rename_javascript_binding_names:
+ interface.javascript_binding_name = new_name
+ interface.doc_js_name = new_name
+ for member in (interface.operations + interface.constants
+ + interface.attributes):
+ member.doc_js_interface_name = new_name
+
# Fix references:
for interface in database.GetInterfaces():
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698