[analysis_server] Removing ignoring `hash_and_equals` lint

Bug: #48785
Change-Id: I9007eb2388adac3f5f33ae81346e4bc0485a405f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247556
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
diff --git a/pkg/analysis_server/analysis_options.yaml b/pkg/analysis_server/analysis_options.yaml
index 4cc8715..54612a2 100644
--- a/pkg/analysis_server/analysis_options.yaml
+++ b/pkg/analysis_server/analysis_options.yaml
@@ -15,7 +15,6 @@
     camel_case_types: ignore
     constant_identifier_names: ignore
     file_names: ignore
-    hash_and_equals: ignore
     implementation_imports: ignore
     non_constant_identifier_names: ignore
     overridden_fields: ignore
diff --git a/pkg/analysis_server/lib/src/cider/rename.dart b/pkg/analysis_server/lib/src/cider/rename.dart
index 02902f3..8d967e5 100644
--- a/pkg/analysis_server/lib/src/cider/rename.dart
+++ b/pkg/analysis_server/lib/src/cider/rename.dart
@@ -445,6 +445,13 @@
   ReplaceInfo(this.replacementText, this.startPosition, this.length);
 
   @override
+  int get hashCode => Object.hash(
+        replacementText,
+        startPosition,
+        length,
+      );
+
+  @override
   bool operator ==(Object other) =>
       other is ReplaceInfo &&
       replacementText == other.replacementText &&
diff --git a/pkg/analysis_server/lib/src/services/correction/sort_members.dart b/pkg/analysis_server/lib/src/services/correction/sort_members.dart
index 7fdb383..4c8bed4 100644
--- a/pkg/analysis_server/lib/src/services/correction/sort_members.dart
+++ b/pkg/analysis_server/lib/src/services/correction/sort_members.dart
@@ -325,6 +325,13 @@
   }
 
   @override
+  int get hashCode => Object.hash(
+        kind,
+        isPrivate,
+        isStatic,
+      );
+
+  @override
   bool operator ==(Object obj) {
     var other = obj as _PriorityItem;
     if (kind == _MemberKind.CLASS_FIELD) {