We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d03ad commit f72b62fCopy full SHA for f72b62f
lib/src/model/model_element.dart
@@ -831,16 +831,6 @@ extension on Element {
831
}
832
833
834
-// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
835
-// extension if it becomes public.
836
-extension on Element {
837
- /// Whether this Element is annotated with a `Deprecated` annotation with a
838
- /// `_DeprecationKind` of [kind].
839
- bool isDeprecatedWithKind(String kind) => metadata.annotations
840
- .where((e) => e.isDeprecated)
841
- .any((e) => e.deprecationKind == kind);
842
-}
843
-
844
// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
845
// extension if it becomes public.
846
extension ElementAnnotationExtension on ElementAnnotation {
0 commit comments