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

Issue 8348015: Improve location information for some warnings/errors. (Closed)

Created:
9 years, 2 months ago by John Lenz
Modified:
9 years, 2 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Improve location information for some warnings/errors. Fixes issue 82 Committed: https://code.google.com/p/dart/source/detail?r=533

Patch Set 1 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -30 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompilationError.java View 1 chunk +0 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 7 chunks +10 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/AbstractParser.java View 3 chunks +4 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java View 1 chunk +2 lines, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
John Lenz
9 years, 2 months ago (2011-10-18 20:44:50 UTC) #1
Brian Wilkerson
LGTM! Thanks for doing this! I'll let you know if we find any missed cases. ...
9 years, 2 months ago (2011-10-18 21:01:39 UTC) #2
John Lenz
http://codereview.chromium.org/8348015/diff/3001/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java File compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java (right): http://codereview.chromium.org/8348015/diff/3001/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java#newcode63 compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java:63: new DartCompilationError(null, Location.NONE, On 2011/10/18 21:01:39, Brian Wilkerson wrote: ...
9 years, 2 months ago (2011-10-18 21:07:13 UTC) #3
Brian Wilkerson
9 years, 2 months ago (2011-10-18 21:11:51 UTC) #4
> I believe this should only occur if there is some internal issue (the core lib
> are not included, etc).  If so, I don't see it as user correctable.  I haven't
> been paying much attention to the error policy, so I don't know if this is
> "appropriate" or not.

I would argue that we should not be generating compilation errors for problems
that are not caused by errors in the user's code and that the user cannot
correct. Should I create a separate issue for that?

Powered by Google App Engine
This is Rietveld 408576698