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

Issue 1615963003: Issue 25522. Insert a synthetic '>' for incomplete type arguments. (Closed)

Created:
4 years, 11 months ago by scheglov
Modified:
4 years, 11 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

Issue 25522. Insert a synthetic '>' for incomplete type arguments. If we don't do this and insert 'f' instead, later when we attempt to search 'f' by its offset we find the type instead of the identifier 'f'. R=brianwilkerson@google.com BUG= https://github.com/dart-lang/sdk/issues/25522 Committed: https://github.com/dart-lang/sdk/commit/b78decfa8fbe36e73a1e4afec880d393acaec947

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M pkg/analyzer/lib/src/generated/parser.dart View 1 chunk +1 line, -1 line 2 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 1 chunk +30 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
4 years, 11 months ago (2016-01-21 19:19:52 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/lib/src/generated/parser.dart File pkg/analyzer/lib/src/generated/parser.dart (right): https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/lib/src/generated/parser.dart#newcode3804 pkg/analyzer/lib/src/generated/parser.dart:3804: * to the next token. Otherwise report an ...
4 years, 11 months ago (2016-01-21 19:25:12 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as b78decfa8fbe36e73a1e4afec880d393acaec947 (presubmit successful).
4 years, 11 months ago (2016-01-21 21:03:28 UTC) #4
scheglov
4 years, 11 months ago (2016-01-21 21:03:47 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/lib/src/genera...
File pkg/analyzer/lib/src/generated/parser.dart (right):

https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/lib/src/genera...
pkg/analyzer/lib/src/generated/parser.dart:3804: * to the next token. Otherwise
report an error and return the current token
On 2016/01/21 19:25:12, Brian Wilkerson wrote:
> The comment needs to be updated.

Done.

https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/test/generated...
File pkg/analyzer/test/generated/parser_test.dart (right):

https://codereview.chromium.org/1615963003/diff/1/pkg/analyzer/test/generated...
pkg/analyzer/test/generated/parser_test.dart:3713: void
test_incompleteParameterizedType_field() {
On 2016/01/21 19:25:12, Brian Wilkerson wrote:
> The method _expectGT is also used for type parameters, so we might want to add
a
> test for that case as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698