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

Issue 921213002: Visit async and core library dependencies when computing library cycles. (Closed)

Created:
5 years, 10 months ago by Paul Berry
Modified:
5 years, 10 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Visit async and core library dependencies when computing library cycles. Previously, we would create the Library objects for the core and async libraries before calling _computeLibraryDependencies(). As a result, _computeLibraryDependencies() would skip those libraries when computing dependencies. Normally this was not a problem, because the dependencies surrounding the core and async libraries are so richly intertwined that all of the necessary files got included in the cycle anyhow. However if the starting point of analysis was the "dart:async" library, some files would be missed entirely, leading to bogus warnings. The solution is to let _computeLibraryDependencies() create all the Library objects, even for the core and async libraries; this way it won't skip any dependencies. BUG=dartbug.com/22415 R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=43772

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -24 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 1 chunk +5 lines, -23 lines 1 comment Download
M tests/lib/analyzer/analyze_library.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
Paul Berry
5 years, 10 months ago (2015-02-13 17:10:38 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/921213002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/921213002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode7916 pkg/analyzer/lib/src/generated/resolver.dart:7916: // on core, and we inject an ersatz ...
5 years, 10 months ago (2015-02-13 17:32:27 UTC) #3
Paul Berry
On 2015/02/13 17:32:27, Brian Wilkerson wrote: > LGTM > > https://codereview.chromium.org/921213002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart > File pkg/analyzer/lib/src/generated/resolver.dart (right): ...
5 years, 10 months ago (2015-02-13 18:14:58 UTC) #4
Paul Berry
5 years, 10 months ago (2015-02-13 18:52:47 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 43772 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698