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

Issue 2188523004: DartWorkManager.getLibrariesContainingPart() should ask the ResultProvider for CONTAINING_LIBRARIES. (Closed)

Created:
4 years, 4 months ago by scheglov
Modified:
4 years, 4 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

DartWorkManager.getLibrariesContainingPart() should ask the ResultProvider for CONTAINING_LIBRARIES. Otherwise, because we don't actually parse units for summarized sources, we don't build this information in DartWorkManager. But we have it in summaries. This fixes the problem when user opens a SDK unit and does not see any semantic highlighting, navigation, etc - because we were not able to create its fully resolved AST (which is library specific, so we need to know containing libraries). Less obvious, but similar problem is that search for references to elements defined in SDK was not working, because IDEA asks search using file and offset _in the SDK_, not at the place in workspace where it is used. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/d64ebe26f288a4311414d60f58ec6613d8c34db5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M pkg/analyzer/lib/src/summary/package_bundle_reader.dart View 3 chunks +39 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart_work_manager.dart View 2 chunks +14 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_work_manager_test.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
scheglov
4 years, 4 months ago (2016-07-27 17:41:23 UTC) #1
Paul Berry
On 2016/07/27 17:41:23, scheglov wrote: What will happen if a part file is used both ...
4 years, 4 months ago (2016-07-27 17:54:21 UTC) #4
Brian Wilkerson
lgtm
4 years, 4 months ago (2016-07-27 18:00:07 UTC) #5
scheglov
On 2016/07/27 17:54:21, Paul Berry wrote: > On 2016/07/27 17:41:23, scheglov wrote: > > What ...
4 years, 4 months ago (2016-07-27 18:09:20 UTC) #6
scheglov
4 years, 4 months ago (2016-07-27 18:11:30 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d64ebe26f288a4311414d60f58ec6613d8c34db5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698