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

Issue 2744463003: update fasta scanner to always generate INDEX or INDEX_EQ tokens (Closed)

Created:
3 years, 9 months ago by danrubel
Modified:
3 years, 9 months ago
Reviewers:
Paul Berry, ahe
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

update fasta scanner to always generate INDEX or INDEX_EQ tokens * updated scanner to always generate INDEX and INDEX_EQ for "[]" and "[]=" * updated parser to generate ErrorKind.EmptyOptionalParameterList when "[]" detected * updated unparser to prevent INDEX token from being generated as [][] Fix https://github.com/dart-lang/sdk/issues/28665 R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/b8d318e94edf20f2b285eaf3e522d09d9290e456

Patch Set 1 #

Total comments: 3

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -22 lines) Patch
M pkg/compiler/lib/src/tree/unparser.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart View 1 1 chunk +1 line, -5 lines 0 comments Download
M pkg/front_end/test/scanner_fasta_test.dart View 1 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
danrubel
3 years, 9 months ago (2017-03-09 01:50:09 UTC) #3
ahe
lgtm OMG, I can't believe it was that simple. I wish we had done that ...
3 years, 9 months ago (2017-03-09 12:45:19 UTC) #4
danrubel
Committed patchset #2 (id:20001) manually as b8d318e94edf20f2b285eaf3e522d09d9290e456 (presubmit successful).
3 years, 9 months ago (2017-03-12 18:19:33 UTC) #6
danrubel
On 2017/03/09 12:45:19, ahe wrote: > lgtm > > OMG, I can't believe it was ...
3 years, 9 months ago (2017-03-12 22:45:11 UTC) #7
danrubel
3 years, 9 months ago (2017-03-13 14:56:44 UTC) #9
Message was sent while issue was closed.
Take 2 https://codereview.chromium.org/2747683003

https://codereview.chromium.org/2744463003/diff/1/pkg/compiler/lib/src/tree/u...
File pkg/compiler/lib/src/tree/unparser.dart (right):

https://codereview.chromium.org/2744463003/diff/1/pkg/compiler/lib/src/tree/u...
pkg/compiler/lib/src/tree/unparser.dart:389: // if "[]" then beginToken ==
endToken ... only write beginToken
On 2017/03/09 12:45:18, ahe wrote:
> Change this comment to be a complete sentence. In particular, start with an
> uppercase letter and end with a period.

Done.
https://codereview.chromium.org/2747683003

Powered by Google App Engine
This is Rietveld 408576698