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

Issue 2042393002: Remove unnecessary overrides of PropertyAccessorElementImpl.operator== and hashCode (Closed)

Created:
4 years, 6 months ago by Paul Berry
Modified:
4 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove unnecessary overrides of PropertyAccessorElementImpl.operator== and hashCode It turns out that these overrides aren't necessary, since the element's location contains enough information to distinguish between getters and setters. Removing the overrides makes PropertyAccessorElementImpl's behavior match that of PropertyAccessorElementHandle, which is important when summaries are in use. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/f5ef3232ea367ec890de27095f2ef749b0859c7c

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -10 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 2 chunks +0 lines, -8 lines 0 comments Download
M pkg/analyzer/lib/src/dart/element/handle.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/dart/element/element_test.dart View 2 chunks +34 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years, 6 months ago (2016-06-07 18:04:41 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2042393002/diff/1/pkg/analyzer/test/src/dart/element/element_test.dart File pkg/analyzer/test/src/dart/element/element_test.dart (right): https://codereview.chromium.org/2042393002/diff/1/pkg/analyzer/test/src/dart/element/element_test.dart#newcode4189 pkg/analyzer/test/src/dart/element/element_test.dart:4189: class PropertyAccessorElementImplTest extends EngineTestCase { "PropertyAccessorElementImplTest" --> "PropertyAccessorElementHandleTest"?
4 years, 6 months ago (2016-06-07 18:09:05 UTC) #3
Paul Berry
https://codereview.chromium.org/2042393002/diff/1/pkg/analyzer/test/src/dart/element/element_test.dart File pkg/analyzer/test/src/dart/element/element_test.dart (right): https://codereview.chromium.org/2042393002/diff/1/pkg/analyzer/test/src/dart/element/element_test.dart#newcode4189 pkg/analyzer/test/src/dart/element/element_test.dart:4189: class PropertyAccessorElementImplTest extends EngineTestCase { On 2016/06/07 18:09:05, Brian ...
4 years, 6 months ago (2016-06-07 18:26:46 UTC) #4
Paul Berry
4 years, 6 months ago (2016-06-07 18:26:57 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f5ef3232ea367ec890de27095f2ef749b0859c7c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698