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

Issue 1622763002: Don't include node in downcast error message. (Closed)

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

Description

Don't include node in downcast error message. The error itself has the node's location, and putting it in the message can be ugly if the relevant node is a particularly long one. Fixes https://github.com/dart-lang/dev_compiler/issues/377. R=brianwilkerson@google.com, vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/60ad9a8585b393aeccbcd41b69c9959f959dfbfc

Patch Set 1 #

Patch Set 2 : Tweak error message. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M pkg/analyzer/lib/src/task/strong/info.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Bob Nystrom
One repro case is: import 'dart:async'; Future<int> returnsFuture() { return new Future.value(null).then((_) { return; }); ...
4 years, 11 months ago (2016-01-22 22:48:10 UTC) #2
Brian Wilkerson
LGTM
4 years, 11 months ago (2016-01-22 23:12:06 UTC) #3
vsm
On 2016/01/22 22:48:10, Bob Nystrom wrote: > One repro case is: > > import 'dart:async'; ...
4 years, 11 months ago (2016-01-22 23:12:13 UTC) #4
vsm
On 2016/01/22 23:12:13, vsm wrote: > On 2016/01/22 22:48:10, Bob Nystrom wrote: > > One ...
4 years, 11 months ago (2016-01-22 23:16:40 UTC) #5
Bob Nystrom
> While you're here (:-)), flutter folks have asked for messages that also make > ...
4 years, 11 months ago (2016-01-22 23:58:41 UTC) #6
vsm
lgtm!
4 years, 11 months ago (2016-01-23 00:32:01 UTC) #7
Bob Nystrom
4 years, 11 months ago (2016-01-23 00:52:40 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
60ad9a8585b393aeccbcd41b69c9959f959dfbfc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698