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

Issue 11340033: Issue 5847. Parse incomplete function expression without body (Closed)

Created:
8 years, 1 month ago by scheglov
Modified:
8 years, 1 month ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3

Patch Set 2 : Recognize qualified type names and type arguments #

Total comments: 2

Patch Set 3 : Use skipTypeName() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -1 line) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java View 1 1 chunk +57 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
8 years, 1 month ago (2012-10-30 03:57:42 UTC) #1
Brian Wilkerson
https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode4373 compiler/java/com/google/dart/compiler/parser/DartParser.java:4373: boolean hasTwoIdentifiersComma = peek(0) == Token.IDENTIFIER && peek(1) == ...
8 years, 1 month ago (2012-10-30 13:49:35 UTC) #2
scheglov
https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode4373 compiler/java/com/google/dart/compiler/parser/DartParser.java:4373: boolean hasTwoIdentifiersComma = peek(0) == Token.IDENTIFIER && peek(1) == ...
8 years, 1 month ago (2012-10-30 19:23:51 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://codereview.chromium.org/11340033/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode4373 compiler/java/com/google/dart/compiler/parser/DartParser.java:4373: boolean hasTwoIdentifiersComma = peek(0) == Token.IDENTIFIER && peek(1) ...
8 years, 1 month ago (2012-10-30 19:45:23 UTC) #4
scheglov
8 years, 1 month ago (2012-10-30 20:07:31 UTC) #5
https://codereview.chromium.org/11340033/diff/5001/compiler/java/com/google/d...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

https://codereview.chromium.org/11340033/diff/5001/compiler/java/com/google/d...
compiler/java/com/google/dart/compiler/parser/DartParser.java:4405: private int
looksLikeTypeAnnotation(int offset) {
On 2012/10/30 19:45:23, Brian Wilkerson wrote:
> This looks like skipTypeName(int), except that skipTypeName is more precise.
If
> you don't want to delete this method right now, please add a comment, or
> deprecate it, so that we won't add more uses of it.

Fixed.
Thank you!

Powered by Google App Engine
This is Rietveld 408576698