From f72b62f46b895b75ca1feaf78362e935fb7c1709 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Wed, 22 Oct 2025 09:42:44 -0700 Subject: [PATCH 1/2] Remove unused extension method, replaced in analyzer 8.4.0 --- lib/src/model/model_element.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/src/model/model_element.dart b/lib/src/model/model_element.dart index 0b01fa554d..a8bb8f8662 100644 --- a/lib/src/model/model_element.dart +++ b/lib/src/model/model_element.dart @@ -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 { From dc523d3db7b07cc13b49ea56ca1972b8b38c90de Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Wed, 22 Oct 2025 09:43:52 -0700 Subject: [PATCH 2/2] bump analyzer --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index b897320cfc..20b8d3272b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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