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

Issue 2246293002: remove duplicate checking for overrides (Closed)

Created:
4 years, 4 months ago by Jennifer Messerly
Modified:
4 years, 4 months ago
Reviewers:
Leaf, 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 duplicate checking for overrides We were checking for override errors in two places: strong/checker.dart and error_verifier.dart, so this removes one of them. I went for skipping the ErrorVerifier errors in strong mode. That path produces better error messages, but it's not expressed in terms of the subtype relation directly, but rather encodes information about how function subtyping works. This makes it difficult to keep in sync with our typing logic. So for now it seems pragmatic to prefer the checker implementation. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/a7a9fc1b377ea96c7d4439f380a380c846f7f19c

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -83 lines) Patch
M pkg/analyzer/lib/src/generated/error_verifier.dart View 4 chunks +12 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 1 2 3 chunks +3 lines, -35 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 19 chunks +26 lines, -48 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Jennifer Messerly
Hey Brian & Leaf appreciate your thoughts on this change. I had to remove one ...
4 years, 4 months ago (2016-08-16 00:38:15 UTC) #3
Brian Wilkerson
> We were checking for override errors in two places: > strong/checker.dart and error_verifier.dart, so ...
4 years, 4 months ago (2016-08-16 00:41:23 UTC) #4
Jennifer Messerly
On 2016/08/16 00:38:15, John Messerly wrote: > Hey Brian & Leaf appreciate your thoughts on ...
4 years, 4 months ago (2016-08-16 00:42:03 UTC) #5
Jennifer Messerly
On 2016/08/16 00:41:23, Brian Wilkerson wrote: > > We were checking for override errors in ...
4 years, 4 months ago (2016-08-16 00:45:53 UTC) #6
Jennifer Messerly
to make this more concrete we are choosing between: https://github.com/dart-lang/sdk/blob/3f9379199131ca780ff0e1602448aa6b85436b0e/pkg/analyzer/lib/src/task/strong/checker.dart#L1136 vs: https://github.com/dart-lang/sdk/blob/3f9379199131ca780ff0e1602448aa6b85436b0e/pkg/analyzer/lib/src/generated/error_verifier.dart#L1418 ... plus the ...
4 years, 4 months ago (2016-08-16 00:50:43 UTC) #7
Jennifer Messerly
On 2016/08/16 00:50:43, John Messerly wrote: > to make this more concrete we are choosing ...
4 years, 4 months ago (2016-08-16 01:00:15 UTC) #8
Brian Wilkerson
After our off-line conversation, lgtm.
4 years, 4 months ago (2016-08-16 17:28:22 UTC) #9
Leaf
On 2016/08/16 17:28:22, Brian Wilkerson wrote: > After our off-line conversation, lgtm. I'm worried about ...
4 years, 4 months ago (2016-08-17 23:47:27 UTC) #10
Jennifer Messerly
On 2016/08/17 23:47:27, Leaf wrote: > On 2016/08/16 17:28:22, Brian Wilkerson wrote: > > After ...
4 years, 4 months ago (2016-08-17 23:53:06 UTC) #11
Leaf
On 2016/08/17 23:53:06, John Messerly wrote: > On 2016/08/17 23:47:27, Leaf wrote: > > On ...
4 years, 4 months ago (2016-08-18 17:14:47 UTC) #12
Jennifer Messerly
On 2016/08/18 17:14:47, Leaf wrote: > On 2016/08/17 23:53:06, John Messerly wrote: > > On ...
4 years, 4 months ago (2016-08-18 17:25:18 UTC) #13
Jennifer Messerly
On 2016/08/18 17:25:18, John Messerly wrote: > On 2016/08/18 17:14:47, Leaf wrote: > > On ...
4 years, 4 months ago (2016-08-19 19:27:13 UTC) #14
Jennifer Messerly
4 years, 4 months ago (2016-08-19 19:27:26 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
a7a9fc1b377ea96c7d4439f380a380c846f7f19c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698