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

Issue 2451973002: Fix and simplify _File creation. (Closed)

Created:
4 years, 1 month ago by scheglov
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -149 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 6 chunks +125 lines, -149 lines 3 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 1 month ago (2016-10-26 01:34:12 UTC) #1
scheglov
Committed patchset #1 (id:1) manually as 3d730e3735f75df4c49450e27befc8c59fd400df (presubmit successful).
4 years, 1 month ago (2016-10-26 01:34:25 UTC) #3
Brian Wilkerson
lgtm
4 years, 1 month ago (2016-10-26 06:56:59 UTC) #4
Paul Berry
lgtm https://codereview.chromium.org/2451973002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2451973002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode530 pkg/analyzer/lib/src/dart/analysis/driver.dart:530: // _File.forResolution() also updates the content hash in ...
4 years, 1 month ago (2016-10-31 16:30:25 UTC) #5
scheglov
4 years, 1 month ago (2016-10-31 17:49:07 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2451973002/diff/1/pkg/analyzer/lib/src/dart/a...
File pkg/analyzer/lib/src/dart/analysis/driver.dart (right):

https://codereview.chromium.org/2451973002/diff/1/pkg/analyzer/lib/src/dart/a...
pkg/analyzer/lib/src/dart/analysis/driver.dart:539: hasMismatch = true;
On 2016/10/31 16:30:25, Paul Berry wrote:
> Can you add a comment explaining why it's not ok to `break;` here?
> 
> (I'm guessing that for some reason it's necessary to call _fileForPath() to
> ensure that all of the new file contents get read, but I'm not sure why that
> would be needed.)

The code was restructured that the "break" does not happen anyway.
But the idea is that we need to re-read and check for API signatures of all
files.
If we break after the first, we fail to re-read other files.

Powered by Google App Engine
This is Rietveld 408576698