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

Issue 8576007: Expect 'extends' in type parameters declaration and recover, issue 341 (Closed)

Created:
9 years, 1 month ago by scheglov
Modified:
9 years, 1 month ago
Reviewers:
fabiomfv, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Expect 'extends' in type parameters declaration and recover, issue 341 http://code.google.com/p/dart/issues/detail?id=341 R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1668

Patch Set 1 #

Total comments: 4

Patch Set 2 : Better recovering, more tests. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -42 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 3 chunks +82 lines, -22 lines 2 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 1 2 chunks +2 lines, -0 lines 1 comment Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 2 chunks +17 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java View 1 2 chunks +12 lines, -8 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 2 chunks +106 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
9 years, 1 month ago (2011-11-16 15:38:00 UTC) #1
zundel
I'm not sure how far we should take parser robustness in just this one change ...
9 years, 1 month ago (2011-11-16 20:05:07 UTC) #2
scheglov
9 years, 1 month ago (2011-11-18 16:13:22 UTC) #3
zundel
LGTM other than some nits. http://codereview.chromium.org/8576007/diff/5001/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8576007/diff/5001/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode468 compiler/java/com/google/dart/compiler/parser/DartParser.java:468: // XXX spurious comment ...
9 years, 1 month ago (2011-11-18 18:04:33 UTC) #4
fabiomfv
9 years, 1 month ago (2011-11-18 18:53:22 UTC) #5
http://codereview.chromium.org/8576007/diff/1/compiler/java/com/google/dart/c...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

http://codereview.chromium.org/8576007/diff/1/compiler/java/com/google/dart/c...
compiler/java/com/google/dart/compiler/parser/DartParser.java:461: next();
though we want (and need) error recovery, we probably need a systematic
approach. Also, the 'follow-set' for 'extends' includes more than comma, > .

Powered by Google App Engine
This is Rietveld 408576698