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

Unified Diff: pkg/analyzer/lib/src/dart/element/handle.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/handle.dart
diff --git a/pkg/analyzer/lib/src/dart/element/handle.dart b/pkg/analyzer/lib/src/dart/element/handle.dart
index 776a26e5eaa78a6f77dd3879056a3cf913c533be..633fcb0aa6ec9c83c08675560dec0d2760b99e7a 100644
--- a/pkg/analyzer/lib/src/dart/element/handle.dart
+++ b/pkg/analyzer/lib/src/dart/element/handle.dart
@@ -971,10 +971,10 @@ class PropertyAccessorElementHandle extends ExecutableElementHandle
actualElement.correspondingSetter;
@override
- bool get isGetter => actualElement.isGetter;
+ bool get isGetter => !isSetter;
@override
- bool get isSetter => actualElement.isSetter;
+ bool get isSetter => location.components.last.endsWith('=');
@override
ElementKind get kind {

Powered by Google App Engine
This is Rietveld 408576698