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

Issue 10704114: Issue 3985. Tweaks for warning messages (Closed)

Created:
8 years, 5 months ago by scheglov
Modified:
8 years, 5 months ago
Reviewers:
devoncarew
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 5 months ago (2012-07-07 23:28:17 UTC) #1
devoncarew
lgtm http://codereview.chromium.org/10704114/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java File compiler/java/com/google/dart/compiler/resolver/Elements.java (right): http://codereview.chromium.org/10704114/diff/1/compiler/java/com/google/dart/compiler/resolver/Elements.java#newcode520 compiler/java/com/google/dart/compiler/resolver/Elements.java:520: String title = kind.toString(); We could also add ...
8 years, 5 months ago (2012-07-08 10:09:16 UTC) #2
scheglov
8 years, 5 months ago (2012-07-08 14:01:08 UTC) #3
http://codereview.chromium.org/10704114/diff/1/compiler/java/com/google/dart/...
File compiler/java/com/google/dart/compiler/resolver/Elements.java (right):

http://codereview.chromium.org/10704114/diff/1/compiler/java/com/google/dart/...
compiler/java/com/google/dart/compiler/resolver/Elements.java:520: String title
= kind.toString();
On 2012/07/08 10:09:16, devoncarew wrote:
> We could also add a method on ElementKind that would encapsulate the knowledge
> that toString().replace("_", " ").toLowerCase() resulted in a user-facing
label.

Well, no we could not.
Because as you can see, user-visible title depends on element parent, not just
on element kind.

http://codereview.chromium.org/10704114/diff/1/compiler/java/com/google/dart/...
compiler/java/com/google/dart/compiler/resolver/Elements.java:554: return
MessageFormat.format("{0} line:{1} col:{2}", targetPath, targetInfo.getLine(),
On 2012/07/08 10:09:16, devoncarew wrote:
> This location information seems overly precise to me. Consider changing:
> 
> "Foo.dart line:3 col:11"
> 
> to:
> 
> "Foo.dart line 3"
> 
> your call -

This is same information and same format of location as VM prints.
Sometimes you may appreciate column information.

Powered by Google App Engine
This is Rietveld 408576698