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

Issue 10702119: Issue 2622. Fix for SourceInfo for DartUnit for one case of invalid source (Closed)

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

Description

Issue 2622. Fix for SourceInfo for DartUnit for one case of invalid source http://code.google.com/p/dart/issues/detail?id=2622 R=messick@google.com,brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=9513

Patch Set 1 #

Total comments: 2

Patch Set 2 : Balance begin/done when parsing arguments #

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

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 5 months ago (2012-07-08 00:20:42 UTC) #1
messick
lgtm
8 years, 5 months ago (2012-07-09 02:40:10 UTC) #2
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10702119/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://chromiumcodereview.appspot.com/10702119/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2185 compiler/java/com/google/dart/compiler/parser/DartParser.java:2185: if (!expect(Token.LPAREN)) { Out of curiosity, what was ...
8 years, 5 months ago (2012-07-09 13:55:40 UTC) #3
scheglov
8 years, 5 months ago (2012-07-10 16:01:27 UTC) #4
https://chromiumcodereview.appspot.com/10702119/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

https://chromiumcodereview.appspot.com/10702119/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/parser/DartParser.java:2185: if
(!expect(Token.LPAREN)) {
On 2012/07/09 13:55:40, Brian Wilkerson wrote:
> Out of curiosity, what was causing the problem this fixes? Is it the fact that
> the beginParameter() on line 2191 is unconditional, but the matching done() on
> line 2205 is conditional? While there's nothing wrong with this change,
perhaps
> a better change would be to make the done() also be unconditional.

Thank you, you are right, calling done() is better solution.

Powered by Google App Engine
This is Rietveld 408576698