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

Issue 10021017: Adds parser recovery for type parameters and type arguments (Closed)

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

Description

Adds parser recovery for type parameters and type arguments Note that this un-does part of a previous change for parser recovery. http://codereview.chromium.org/8576007/ The resulting AST seems more complete in the test cases I came up with. Committed: https://code.google.com/p/dart/source/detail?r=6364

Patch Set 1 : Updates for completion to work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -129 lines) Patch
M compiler/java/com/google/dart/compiler/ast/ASTVisitor.java View 5 chunks +11 lines, -7 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/DartSyntheticErrorIdentifier.java View 1 chunk +32 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/AbstractParser.java View 2 chunks +2 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 11 chunks +54 lines, -81 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 2 chunks +1 line, -1 line 0 comments Download
D compiler/java/com/google/dart/compiler/parser/ParserException.java View 1 chunk +0 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 5 chunks +11 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 5 chunks +9 lines, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/IdeTest.java View 4 chunks +9 lines, -7 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 6 chunks +13 lines, -5 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java View 2 chunks +94 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java View 6 chunks +12 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionParser.java View 3 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
zundel
https://chromiumcodereview.appspot.com/10021017/diff/2001/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://chromiumcodereview.appspot.com/10021017/diff/2001/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode265 compiler/java/com/google/dart/compiler/parser/DartParser.java:265: while (!EOS()) { This looks worse than it really ...
8 years, 8 months ago (2012-04-08 07:48:58 UTC) #1
scheglov
lgtm
8 years, 8 months ago (2012-04-09 17:20:46 UTC) #2
zundel
When I ran the unit tests, the editor test failed and the AST looked terrible. ...
8 years, 8 months ago (2012-04-10 12:20:16 UTC) #3
scheglov
still LGTM
8 years, 8 months ago (2012-04-10 13:39:14 UTC) #4
messick
8 years, 8 months ago (2012-04-10 14:38:18 UTC) #5
LGTM

The visitors defined in CompletionEngine shouldn't recurse. Prior to firing them
up another visitor is used to determine the node for which completion is
requested. No need for you to change anything; I'm going to have to integrate
these changes with the mods I'm making to completion so I'll take care of it.

Powered by Google App Engine
This is Rietveld 408576698