Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2042393002: Remove unnecessary overrides of PropertyAccessorElementImpl.operator== and hashCode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index bc2b7d04b89fc3c2d1a3224c56e30ef60da79e85..23ca6fdebddd6fc8bc371f876ef3be9b39a568a3 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -7528,9 +7528,6 @@ class PropertyAccessorElementImpl extends ExecutableElementImpl
}
@override
- int get hashCode => JenkinsSmiHash.hash2(super.hashCode, isGetter ? 1 : 2);
-
- @override
String get identifier {
String name = displayName;
String suffix = isGetter ? "?" : "=";
@@ -7598,11 +7595,6 @@ class PropertyAccessorElementImpl extends ExecutableElementImpl
}
@override
- bool operator ==(Object object) =>
- super == object &&
- isGetter == (object as PropertyAccessorElement).isGetter;
-
- @override
accept(ElementVisitor visitor) => visitor.visitPropertyAccessorElement(this);
@override
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/handle.dart » ('j') | pkg/analyzer/test/src/dart/element/element_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698