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 8bf6b3e commit cb8f442Copy full SHA for cb8f442
lib/src/model/model_element.dart
@@ -835,16 +835,6 @@ extension on Element {
835
}
836
837
838
-// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
839
-// extension if it becomes public.
840
-extension on Element {
841
- /// Whether this Element is annotated with a `Deprecated` annotation with a
842
- /// `_DeprecationKind` of [kind].
843
- bool isDeprecatedWithKind(String kind) => metadata.annotations
844
- .where((e) => e.isDeprecated)
845
- .any((e) => e.deprecationKind == kind);
846
-}
847
-
848
// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
849
// extension if it becomes public.
850
extension ElementAnnotationExtension on ElementAnnotation {
0 commit comments