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

Issue 11941003: Add an ErrorGroup class to Pub. (Closed)

Created:
7 years, 11 months ago by nweiz
Modified:
7 years, 11 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org, floitsch, Lasse Reichstein Nielsen, Anders Johnsen
Visibility:
Public.

Description

Add an ErrorGroup class to Pub. Committed: https://code.google.com/p/dart/source/detail?r=17106

Patch Set 1 #

Total comments: 18
Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -0 lines) Patch
A utils/pub/error_group.dart View 1 chunk +268 lines, -0 lines 16 comments Download
A utils/tests/pub/error_group_test.dart View 1 chunk +466 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
nweiz
7 years, 11 months ago (2013-01-15 22:16:55 UTC) #1
Bob Nystrom
LGTM. You should share this with Florian and co. too. https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart File utils/pub/error_group.dart (right): https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart#newcode38 ...
7 years, 11 months ago (2013-01-15 22:49:47 UTC) #2
nweiz
+floitsch, lrn, ajohnsen This is my implementation of the error grouping that Bob and I ...
7 years, 11 months ago (2013-01-16 00:12:10 UTC) #3
Bob Nystrom
https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart File utils/pub/error_group.dart (right): https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart#newcode38 utils/pub/error_group.dart:38: var _isComplete = false; On 2013/01/16 00:12:10, nweiz wrote: ...
7 years, 11 months ago (2013-01-16 18:03:44 UTC) #4
nweiz
https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart File utils/pub/error_group.dart (right): https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart#newcode38 utils/pub/error_group.dart:38: var _isComplete = false; On 2013/01/16 18:03:44, Bob Nystrom ...
7 years, 11 months ago (2013-01-16 19:29:11 UTC) #5
Bob Nystrom
On 2013/01/16 19:29:11, nweiz wrote: > https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart > File utils/pub/error_group.dart (right): > > https://codereview.chromium.org/11941003/diff/1/utils/pub/error_group.dart#newcode38 > ...
7 years, 11 months ago (2013-01-16 21:30:50 UTC) #6
nweiz
On 2013/01/16 21:30:50, Bob Nystrom wrote: > With final variables, the *only* type it can ...
7 years, 11 months ago (2013-01-16 21:33:31 UTC) #7
Bob Nystrom
7 years, 11 months ago (2013-01-17 00:54:26 UTC) #8
Message was sent while issue was closed.
On 2013/01/16 21:33:31, nweiz wrote:
> On 2013/01/16 21:30:50, Bob Nystrom wrote:
> > With final variables, the *only* type it can ever have is the type of the
> > initializer. With "var", you could assign to a different type later. For
> > example:
> > 
> > var assignedToLater = null;
> > 
> > Using "var" here doesn't tell us what type it will end up having.
> 
> With final declarations, we include a type when it can't be inferred --
usually
> when it's being set in the constructor, but potentially also when it's null
> (e.g. for overriding an inherited property). Similarly, we should type
annotate
> "var" if and only if it's not inferrable.

SGTM.

Powered by Google App Engine
This is Rietveld 408576698