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

Issue 2871783002: Start using FileState/FileSystemState to provide consistent view. (Closed)

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

Description

Start using FileState/FileSystemState to provide consistent view. R=paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/6173ac476bf399bd89e65ca70834642cefc31580

Patch Set 1 #

Total comments: 32

Patch Set 2 : Updates for review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -20 lines) Patch
M pkg/front_end/lib/incremental_kernel_generator.dart View 1 chunk +3 lines, -5 lines 0 comments Download
A pkg/front_end/lib/src/incremental/file_state.dart View 1 1 chunk +225 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/incremental_kernel_generator_impl.dart View 5 chunks +50 lines, -4 lines 0 comments Download
M pkg/front_end/test/incremental_kernel_generator_test.dart View 3 chunks +19 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
scheglov
3 years, 7 months ago (2017-05-08 21:47:33 UTC) #1
Paul Berry
lgtm. Your call on how to address the comments below. https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart File pkg/front_end/lib/src/incremental/file_state.dart (right): https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart#newcode30 ...
3 years, 7 months ago (2017-05-08 22:10:49 UTC) #2
Siggi Cherem (dart-lang)
lgtm for me too - I mainly have nits and small suggestions. https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart File pkg/front_end/lib/src/incremental/file_state.dart ...
3 years, 7 months ago (2017-05-08 23:55:18 UTC) #3
scheglov
https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart File pkg/front_end/lib/src/incremental/file_state.dart (right): https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart#newcode15 pkg/front_end/lib/src/incremental/file_state.dart:15: /// Information about a file being analyzed, explicitly or ...
3 years, 7 months ago (2017-05-09 00:16:29 UTC) #4
scheglov
Committed patchset #2 (id:20001) manually as 6173ac476bf399bd89e65ca70834642cefc31580 (presubmit successful).
3 years, 7 months ago (2017-05-09 00:17:28 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart File pkg/front_end/lib/src/incremental/file_state.dart (right): https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart#newcode97 pkg/front_end/lib/src/incremental/file_state.dart:97: for (String import in listener.imports) { On 2017/05/09 00:16:28, ...
3 years, 7 months ago (2017-05-09 00:26:15 UTC) #7
scheglov
3 years, 7 months ago (2017-05-09 00:29:43 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incre...
File pkg/front_end/lib/src/incremental/file_state.dart (right):

https://codereview.chromium.org/2871783002/diff/1/pkg/front_end/lib/src/incre...
pkg/front_end/lib/src/incremental/file_state.dart:97: for (String import in
listener.imports) {
On 2017/05/09 00:26:15, Siggi Cherem (dart-lang) wrote:
> On 2017/05/09 00:16:28, scheglov wrote:
> > On 2017/05/08 23:55:18, Siggi Cherem (dart-lang) wrote:
> > > On 2017/05/08 22:10:49, Paul Berry wrote:
> > > > Can we rename "import" to "importedFile" or something?  Seeing the
keyword
> > > > "import" in this line and the one below is really confusing.
> > > 
> > > nit: I'd use `var` instead of `String`
> > > 
> > > For the variable name: `uri` seems descriptive enoguh for all three loops.
> > 
> > I don't see the type of "listener.imports".
> > It is not created, and it is not a typed local variable.
> > I agree about `uri`.
> 
> Not sure why that's not working: listener.imports is declared as a Set<String>
> in DirectiveListener, so I expect this should be inferred here :-/

Ah, sorry, I should have been more explicit.
The type is inferred.
But I don't know it just by looking on code, without using IDE to learn it.
I'm fine with switching to not typing such cycles, if this is the code style we
want in front_end.

Powered by Google App Engine
This is Rietveld 408576698