| Index: pkg/analyzer/lib/src/context/context.dart
|
| diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
|
| index 45f6abbb286a1afc03cca61c85b9a979373193eb..7f8d7daae82b5c8103ee4865f6fe1576d00a1d20 100644
|
| --- a/pkg/analyzer/lib/src/context/context.dart
|
| +++ b/pkg/analyzer/lib/src/context/context.dart
|
| @@ -807,19 +807,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
| if (kind == SourceKind.LIBRARY) {
|
| return <Source>[source];
|
| } else if (kind == SourceKind.PART) {
|
| - List<Source> libraries = <Source>[];
|
| - for (Source library in _cache.sources) {
|
| - CacheEntry entry = _cache.get(library);
|
| - if (entry.getValue(SOURCE_KIND) == SourceKind.LIBRARY) {
|
| - List<Source> parts = entry.getValue(INCLUDED_PARTS);
|
| - if (parts.contains(source)) {
|
| - libraries.add(library);
|
| - }
|
| - }
|
| - }
|
| - if (libraries.isNotEmpty) {
|
| - return libraries;
|
| - }
|
| + return dartWorkManager.getLibrariesContainingPart(source);
|
| }
|
| return Source.EMPTY_ARRAY;
|
| }
|
|
|