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

Issue 10704068: Terminate parsing any single compilation unit if we encounter more then 100 parse errors. (Closed)

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

Description

Terminate parsing any single compilation unit if we encounter more then 100 parse errors. Committed: https://code.google.com/p/dart/source/detail?r=9445

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -9 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 3 chunks +50 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 1 1 chunk +2 lines, -0 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
devoncarew
I'm not sure if we want to land this, but it significantly decreases the amount ...
8 years, 5 months ago (2012-07-02 22:57:13 UTC) #1
danrubel
LGTM. I think this is a reasonable fallback mechanism to prevent DartC from becoming bogged ...
8 years, 5 months ago (2012-07-03 14:57:13 UTC) #2
Brian Wilkerson
I'm note sure whether this is the best place for this (it might be more ...
8 years, 5 months ago (2012-07-03 15:14:50 UTC) #3
devoncarew
I didn't see a clear way to plumb a flag through to control this behavior ...
8 years, 5 months ago (2012-07-03 18:45:20 UTC) #4
Brian Wilkerson
Aside from my comments, LGTM. http://codereview.chromium.org/10704068/diff/3001/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java File compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (right): http://codereview.chromium.org/10704068/diff/3001/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java#newcode110 compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java:110: // TODO(zundel): error message ...
8 years, 5 months ago (2012-07-03 19:07:52 UTC) #5
devoncarew
8 years, 5 months ago (2012-07-03 20:45:14 UTC) #6
http://codereview.chromium.org/10704068/diff/3001/compiler/java/com/google/da...
File compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (right):

http://codereview.chromium.org/10704068/diff/3001/compiler/java/com/google/da...
compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java:110: //
TODO(zundel): error message needs JUnit test
On 2012/07/03 19:07:53, Brian Wilkerson wrote:
> Eric didn't add this TODO, and I'm not sure I want a JUnit test for this
case...

Done - removed the TODO.

Powered by Google App Engine
This is Rietveld 408576698