Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions lib/src/model/model_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -831,16 +831,6 @@ extension on Element {
}
}

// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
// extension if it becomes public.
extension on Element {
/// Whether this Element is annotated with a `Deprecated` annotation with a
/// `_DeprecationKind` of [kind].
bool isDeprecatedWithKind(String kind) => metadata.annotations
.where((e) => e.isDeprecated)
.any((e) => e.deprecationKind == kind);
}

// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
// extension if it becomes public.
extension ElementAnnotationExtension on ElementAnnotation {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
sdk: ^3.6.0

dependencies:
analyzer: ^8.2.0
analyzer: ^8.4.0
args: ^2.4.1
collection: ^1.17.0
crypto: ^3.0.3
Expand Down