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

Issue 8271023: Set the source position on a DartFunction if an error is reported. (b/4337388) (Closed)

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

Description

Set the source position on a DartFunction if an error is reported. (b/4337388) Committed: https://code.google.com/p/dart/source/detail?r=419

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 10 chunks +10 lines, -10 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
John Lenz
9 years, 2 months ago (2011-10-14 00:00:51 UTC) #1
jat
LGTM http://codereview.chromium.org/8271023/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8271023/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2060 compiler/java/com/google/dart/compiler/parser/DartParser.java:2060: reportError(doneWithoutConsuming(function), DartCompilerErrorCode.MISSING_FUNCTION_NAME); I think it would be better ...
9 years, 2 months ago (2011-10-14 00:10:39 UTC) #2
John Lenz
9 years, 2 months ago (2011-10-14 15:52:37 UTC) #3
http://codereview.chromium.org/8271023/diff/1/compiler/java/com/google/dart/c...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

http://codereview.chromium.org/8271023/diff/1/compiler/java/com/google/dart/c...
compiler/java/com/google/dart/compiler/parser/DartParser.java:2060:
reportError(doneWithoutConsuming(function),
DartCompilerErrorCode.MISSING_FUNCTION_NAME);
On 2011/10/14 00:10:39, jat wrote:
> I think it would be better to put this on the line where function is assigned,
> so it will always have the position information -- if the caller does it
again,
> it will overwrite it.

Done.

Powered by Google App Engine
This is Rietveld 408576698