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

Unified Diff: tools/dom/scripts/generator.py

Issue 12035037: Removing @DocsEditable from classes we have darttemplates for. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 8fa13f64ba2b4eb14342eff5adca411ce5d162e6..738cd1dac63ffda3124309a3f32b8024b12198fd 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -796,8 +796,12 @@ def FindCommonAnnotations(interface_name, member_name=None):
else:
key = interface_name
- annotations = ["@DocsEditable",
- "@DomName('" + key + "')",]
+ annotations = ["@DomName('" + key + "')",]
+ # Only add this for members, so we don't add DocsEditable to templated classes
+ # (they get it from the default class template)
+ if member_name:
+ annotations.append('@DocsEditable');
Andrei Mouravski 2013/01/22 22:49:10 Can you make this prepend so that the diff is near
blois 2013/01/22 22:58:50 If the order of attributes is not necessary, then
+
if (dart_annotations.get(key) != None):
annotations.extend(dart_annotations.get(key))

Powered by Google App Engine
This is Rietveld 408576698