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

Issue 1834213002: Improve highlighting for strong mode error (Closed)

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

Description

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -108 lines) Patch
M pkg/analyzer/lib/src/task/strong/checker.dart View 9 chunks +109 lines, -108 lines 4 comments Download

Messages

Total messages: 7 (2 generated)
Brian Wilkerson
We are currently highlighting the whole member, which is a bit excessive IMO. This changes ...
4 years, 8 months ago (2016-03-28 16:59:31 UTC) #2
Bob Nystrom
Assuming the ".name" additions are the only substantive changes, LGTM! https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/strong/checker.dart File pkg/analyzer/lib/src/task/strong/checker.dart (right): https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/strong/checker.dart#newcode640 ...
4 years, 8 months ago (2016-03-28 19:59:40 UTC) #3
Brian Wilkerson
https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/strong/checker.dart File pkg/analyzer/lib/src/task/strong/checker.dart (right): https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/strong/checker.dart#newcode640 pkg/analyzer/lib/src/task/strong/checker.dart:640: /// Records a [DownCast] of [expr] from [from] to ...
4 years, 8 months ago (2016-03-28 20:34:33 UTC) #4
Brian Wilkerson
Committed patchset #1 (id:1) manually as ee105910bef362c4f9f1e29d7cb3818810dabfbd (presubmit successful).
4 years, 8 months ago (2016-03-28 20:35:48 UTC) #6
Bob Nystrom
4 years, 8 months ago (2016-03-28 20:53:28 UTC) #7
Message was sent while issue was closed.
On 2016/03/28 20:34:33, Brian Wilkerson wrote:
>
https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/s...
> File pkg/analyzer/lib/src/task/strong/checker.dart (right):
> 
>
https://codereview.chromium.org/1834213002/diff/1/pkg/analyzer/lib/src/task/s...
> pkg/analyzer/lib/src/task/strong/checker.dart:640: /// Records a [DownCast] of
> [expr] from [from] to [to], if there is one.
> > Are there changes to this, or did it just move?
> 
> No, there are no changes. I was only expecting changes to
> _checkIndividualOverridesFromClass. The two strong-mode changes were
> unintentional.
> 
> > Is it possible to separate patches that reorder members from ones that
change
> contents? It's hard to find
> > the actual diffs in this.
> 
> I sympathize. The only way I know of to separate such patches is to figure out
> which files changed, create a new branch, sort and format the files on the new
> branch, then rebase the original changes onto the new branch.

Oof, that's a pain.

> Maybe we should
> have a test that formats and sorts every file and fails if the before and
after
> are not the same; that would prevent the skew that causes this kind of noise.
> (It somewhat ironic, given that one of the reasons often cited for sorting and
> formatting is to prevent this kind of noise.)

Yeah. I didn't realize until very recently that some (most? all?) people on the
analyzer team sort all declarations alphabetically. If we're going to have
anyone do this, we need to have everyone do it.

– bob

Powered by Google App Engine
This is Rietveld 408576698