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

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

Issue 454043004: Deprecate MouseEvent.elementTo and elementFrom since they have the same (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | « tools/dom/dom.json ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartmetadata.py
diff --git a/tools/dom/scripts/dartmetadata.py b/tools/dom/scripts/dartmetadata.py
index b1cb0a1a51215efb8c35a09fddd8c1a491625978..114c4558bf4b8c7274812634579d3344c7fa1efd 100644
--- a/tools/dom/scripts/dartmetadata.py
+++ b/tools/dom/scripts/dartmetadata.py
@@ -647,10 +647,10 @@ class DartMetadata(object):
annotations = ann2
return annotations
- def IsDeprecated(self, interface, member_name):
+ def IsSuppressed(self, interface, member_name):
annotations = self._GetSupportLevelAnnotations(interface.id, member_name)
return any(
- annotation.startswith('@deprecated') for annotation in annotations)
+ annotation.startswith('@removed') for annotation in annotations)
def _GetCommonAnnotations(self, interface, member_name=None,
source_member_name=None):
@@ -801,8 +801,10 @@ class DartMetadata(object):
elif dart_action == 'suppress':
if comment:
annotations.append('// %s' % comment)
- annotations.append('@deprecated // %s' % support_level)
- # TODO (blois): suppress generation of these APIs as a separate CL.
+ anAnnotation = 'deprecated'
+ if member_id:
+ anAnnotation = 'removed'
+ annotations.append('@%s // %s' % (anAnnotation, support_level))
pass
elif dart_action == 'stable':
pass
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698