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

Issue 11060014: Issue 5621. Fix for infinite cycle during incomplete switch parsing (Closed)

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

Description

Issue 5621. Fix for infinite cycle during incomplete switch parsing http://code.google.com/p/dart/issues/detail?id=5621 So, now analyzis as you type updates problems in this file much faster. R=danrubel@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=13206

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -20 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 chunk +3 lines, -0 lines 1 comment Download
M editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java View 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 2 months ago (2012-10-03 22:53:23 UTC) #1
danrubel
lgtm
8 years, 2 months ago (2012-10-03 22:59:57 UTC) #2
Brian Wilkerson
8 years, 2 months ago (2012-10-17 18:26:04 UTC) #3
https://codereview.chromium.org/11060014/diff/1/compiler/java/com/google/dart...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

https://codereview.chromium.org/11060014/diff/1/compiler/java/com/google/dart...
compiler/java/com/google/dart/compiler/parser/DartParser.java:4860: if (peek(0)
!= Token.LBRACE) {
Shouldn't this generate an error message to indicate that a block was expected?
Otherwise it looks like this will accept the following without error:

  switch (e)
  if (c) { ... }

(I checked, and it does accept it.)

Powered by Google App Engine
This is Rietveld 408576698