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

Issue 2895803002: add fasta.scanner support for lazy assignment operators (Closed)

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

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -70 lines) Patch
M pkg/analyzer/lib/src/dart/scanner/scanner.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/fasta/token_utils.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart View 1 4 chunks +23 lines, -4 lines 3 comments Download
M pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/string_scanner.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/front_end/test/scanner_fasta_test.dart View 1 1 chunk +4 lines, -20 lines 0 comments Download
M pkg/front_end/test/scanner_replacement_test.dart View 2 chunks +3 lines, -21 lines 0 comments Download
M pkg/front_end/test/scanner_roundtrip_test.dart View 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
danrubel
3 years, 7 months ago (2017-05-20 03:03:48 UTC) #2
Paul Berry
lgtm assuming comments are addressed https://codereview.chromium.org/2895803002/diff/1/pkg/front_end/lib/src/fasta/scanner.dart File pkg/front_end/lib/src/fasta/scanner.dart (right): https://codereview.chromium.org/2895803002/diff/1/pkg/front_end/lib/src/fasta/scanner.dart#newcode86 pkg/front_end/lib/src/fasta/scanner.dart:86: scanner.scanLazyAssignmentOperators = scanLazyAssignmentOperators; Why ...
3 years, 7 months ago (2017-05-20 13:57:10 UTC) #4
scheglov
LGTM
3 years, 7 months ago (2017-05-20 16:00:45 UTC) #5
danrubel
https://codereview.chromium.org/2895803002/diff/1/pkg/front_end/lib/src/fasta/scanner.dart File pkg/front_end/lib/src/fasta/scanner.dart (right): https://codereview.chromium.org/2895803002/diff/1/pkg/front_end/lib/src/fasta/scanner.dart#newcode86 pkg/front_end/lib/src/fasta/scanner.dart:86: scanner.scanLazyAssignmentOperators = scanLazyAssignmentOperators; On 2017/05/20 13:57:09, Paul Berry wrote: ...
3 years, 7 months ago (2017-05-20 21:17:04 UTC) #6
Paul Berry
lgtm
3 years, 7 months ago (2017-05-21 00:37:10 UTC) #7
danrubel
Committed patchset #2 (id:20001) manually as 3c447ab35dc3a6e523b64f1a34eaac7d42af4601 (presubmit successful).
3 years, 7 months ago (2017-05-21 03:02:54 UTC) #9
ahe
https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart File pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart (right): https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart#newcode42 pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart:42: bool scanLazyAssignmentOperators = false; Why are we adding this ...
3 years, 7 months ago (2017-05-22 11:37:38 UTC) #11
danrubel
https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart File pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart (right): https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart#newcode42 pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart:42: bool scanLazyAssignmentOperators = false; On 2017/05/22 11:37:38, ahe wrote: ...
3 years, 7 months ago (2017-05-23 11:33:40 UTC) #12
ahe
https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart File pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart (right): https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart#newcode42 pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart:42: bool scanLazyAssignmentOperators = false; On 2017/05/23 11:33:40, danrubel wrote: ...
3 years, 7 months ago (2017-05-23 11:46:08 UTC) #13
danrubel
3 years, 7 months ago (2017-05-24 19:51:26 UTC) #14
Message was sent while issue was closed.
On 2017/05/23 11:46:08, ahe wrote:
>
https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/f...
> File pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart (right):
> 
>
https://codereview.chromium.org/2895803002/diff/20001/pkg/front_end/lib/src/f...
> pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart:42: bool
> scanLazyAssignmentOperators = false;
> On 2017/05/23 11:33:40, danrubel wrote:
> > On 2017/05/22 11:37:38, ahe wrote:
> > > Why are we adding this flag?
> > 
> > AFAIK, the language does not yet support lazy assignment operators, thus the
> > flag. I'm updating the fasta scanner to provide the same functionality that
> the
> > analyzer scanner does so that I can delete the analyzer scanner.
> > 
> > That said, we could roll this back and remove this functionality until
closer
> to
> > the time that these language features are supported.
> 
> I don't think the flag is necessary. The parser will report an error on &&= or
> ||= regardless of how they're tokenized.

https://codereview.chromium.org/2903063003/

Powered by Google App Engine
This is Rietveld 408576698