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

Issue 1413773003: Improve recovery for local variable declarations. (Closed)

Created:
5 years, 2 months ago by scheglov
Modified:
5 years, 2 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve recovery for local variable declarations. We need this to improve code completion, and to *not* suggest method/keywords/etc in cases like "main() {String s^}". Currently it is parsed as "main() {String; s^;}", so completion cannot distinguish the variable name "s" from a of start a new expression. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/78c7cde13207a5c8df688c637d60c7cf563545ab

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -18 lines) Patch
M pkg/analyzer/lib/src/generated/parser.dart View 4 chunks +41 lines, -6 lines 0 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 4 chunks +47 lines, -12 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
5 years, 2 months ago (2015-10-19 01:33:06 UTC) #1
Brian Wilkerson
LGTM
5 years, 2 months ago (2015-10-19 13:53:27 UTC) #2
scheglov
5 years, 2 months ago (2015-10-19 17:24:26 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
78c7cde13207a5c8df688c637d60c7cf563545ab (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698