Whether the element has an annotation of the form @deprecated or @Deprecated('..').
@deprecated
@Deprecated('..')
@override bool get hasDeprecated => metadata.any((ElementAnnotation m) => m.isDeprecated);