Index: tools/dom/scripts/dartmetadata.py |
diff --git a/tools/dom/scripts/dartmetadata.py b/tools/dom/scripts/dartmetadata.py |
index c0104c2f87c3d4568ced0830100c6c92bf38e2ba..0dc07527b3afcfc7241a9a2d00f73ab0479897f3 100644 |
--- a/tools/dom/scripts/dartmetadata.py |
+++ b/tools/dom/scripts/dartmetadata.py |
@@ -599,6 +599,11 @@ class DartMetadata(object): |
annotations = ann2 |
return annotations |
+ def IsDeprecated(self, interface, member_name): |
+ annotations = self._GetSupportLevelAnnotations(interface.id, member_name) |
+ return any( |
+ annotation.startswith('@deprecated') for annotation in annotations) |
+ |
def _GetCommonAnnotations(self, interface, member_name=None, |
source_member_name=None): |
if member_name: |