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

Issue 1497253002: Align strong-mode error codes with analyzer conv. (Closed)

Created:
5 years ago by pquitslund
Modified:
5 years ago
Reviewers:
Leaf, Jennifer Messerly
CC:
reviews_dartlang.org, Leaf, scheglov
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Align strong-mode error codes with analyzer conv. This canonicalization will allow suppression by code name to "just work" unblocking https://github.com/flutter/flutter/issues/624. R=jmesserly@google.com, leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/eacbee4616b7d06c42966240d7bb143cf07908fa

Patch Set 1 #

Total comments: 8

Patch Set 2 : test_fixes #

Patch Set 3 : doc_fixes #

Total comments: 30

Patch Set 4 : doc_fix #

Total comments: 1

Patch Set 5 : doc_fix_cont #

Unified diffs Side-by-side diffs Delta from patch set Stats (+865 lines, -817 lines) Patch
M pkg/analyzer/lib/src/task/strong/info.dart View 1 2 3 11 chunks +240 lines, -192 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 2 3 4 86 chunks +418 lines, -418 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 51 chunks +204 lines, -204 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/strong_test_helper.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
pquitslund
5 years ago (2015-12-04 17:37:00 UTC) #2
Jennifer Messerly
+Leaf as FYI, LGTM though. BTW, if we wanted, we could keep the test cases ...
5 years ago (2015-12-04 18:19:52 UTC) #3
Jennifer Messerly
5 years ago (2015-12-04 18:20:09 UTC) #4
pquitslund
On 2015/12/04 18:19:52, John Messerly wrote: > +Leaf as FYI, LGTM though. Thanks! > > ...
5 years ago (2015-12-04 18:22:08 UTC) #5
pquitslund
On 2015/12/04 18:22:08, pquitslund wrote: > On 2015/12/04 18:19:52, John Messerly wrote: > > +Leaf ...
5 years ago (2015-12-04 18:30:30 UTC) #6
Leaf
LGTM modulo fixing whatever happened with the comments in info.dart. https://codereview.chromium.org/1497253002/diff/1/pkg/analyzer/lib/src/task/strong/info.dart File pkg/analyzer/lib/src/task/strong/info.dart (right): https://codereview.chromium.org/1497253002/diff/1/pkg/analyzer/lib/src/task/strong/info.dart#newcode19 ...
5 years ago (2015-12-04 19:01:11 UTC) #8
pquitslund
On 2015/12/04 19:01:11, Leaf wrote: > LGTM modulo fixing whatever happened with the comments in ...
5 years ago (2015-12-04 19:05:33 UTC) #9
pquitslund
Thanks! (And sorry for all the noise :)) https://codereview.chromium.org/1497253002/diff/1/pkg/analyzer/lib/src/task/strong/info.dart File pkg/analyzer/lib/src/task/strong/info.dart (right): https://codereview.chromium.org/1497253002/diff/1/pkg/analyzer/lib/src/task/strong/info.dart#newcode19 pkg/analyzer/lib/src/task/strong/info.dart:19: // ...
5 years ago (2015-12-04 19:13:33 UTC) #10
Leaf
Still a bunch of stuff in the wrong place, I commented on a bunch. https://codereview.chromium.org/1497253002/diff/40001/pkg/analyzer/lib/src/task/strong/info.dart ...
5 years ago (2015-12-04 19:32:15 UTC) #11
pquitslund
Would that I could go back in time to before I clicked "Sort Members"! ;) ...
5 years ago (2015-12-04 23:34:22 UTC) #12
pquitslund
Committed patchset #5 (id:80001) manually as eacbee4616b7d06c42966240d7bb143cf07908fa (presubmit successful).
5 years ago (2015-12-04 23:49:26 UTC) #14
Leaf
There's a comment that should probably be deleted now, but basically lgtm. > Aside: is ...
5 years ago (2015-12-04 23:58:43 UTC) #15
Jennifer Messerly
On 2015/12/04 23:58:43, Leaf wrote: > There's a comment that should probably be deleted now, ...
5 years ago (2015-12-05 00:01:48 UTC) #16
pquitslund
5 years ago (2015-12-05 00:04:23 UTC) #17
Message was sent while issue was closed.
On 2015/12/04 23:58:43, Leaf wrote:
> There's a comment that should probably be deleted now, but basically lgtm.

Cool!

> 
> > Aside: is there a good reason that these are not doc comments?  I'm not sure
I
> > understand the rationale for why they're not (besides TODOs).
> 
> I can't speak for anyone else, but for myself, the main "rationale" is simply
> that I've done most of my programming in languages without a convention of doc
> comments separate from regular comments, so I'm really just getting used to
> using them, and don't yet have a good mental model of when to use them and
when
> not.  :) So I'd be perfectly happy making those doc comments.  That aside, a
> couple of things I would say:
> 
> 1) That code was not written to be sorted.  If you look at the comment on line
> 238 of the original file, that comment is delineating a section of the file
> which contains related types.  I actually vastly prefer this for many kinds of
> programming to the "sort the world" approach.  It's ok, I'm fine adapting to
> whatever style is standard for a language/repository, but as originally
written,
> that comment was going to be out of place no matter what happened in sorting. 


+1.  I'm not hugely in favor of the sorting convention but I've gotten used to
it and "when in Rome..."

> 
> 2) Not all top level members of a file are intended to be part of the API.  I
> don't know how the doc tool works  - does it just export every top level
> declaration as part of the API?  If so, why not just treat every top level
> comment as a doc comment as well?  Basically, my mental model has been that
doc
> comments should be only on things that are part of the API, and only for
> comments that are useful to consumers of the API.  But perhaps that model
needs
> work... :)

This merits a longer discussion.  Ideally with beer! :)

> 
> 
> 3) TODOS and company... :)
> 
>
https://codereview.chromium.org/1497253002/diff/60001/pkg/analyzer/lib/src/ta...
> File pkg/analyzer/lib/src/task/strong/info.dart (right):
> 
>
https://codereview.chromium.org/1497253002/diff/60001/pkg/analyzer/lib/src/ta...
> pkg/analyzer/lib/src/task/strong/info.dart:207: // Standard down casts.  These
> casts are implicitly injected by the compiler.
> this comment should go away, it only makes sense if the declarations are
> grouped.

Ah!  Right.  Fixed here:

https://codereview.chromium.org/1501573004/

Powered by Google App Engine
This is Rietveld 408576698