| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 4dde93d09a6e0d4e3cd3ad6d340bf7f17321b50b..3929afd2caedff50d98424994ee98de59133be13 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -4082,8 +4082,10 @@ class ParseDartTask extends SourceBasedAnalysisTask {
|
| ..addAll(exportedSources)
|
| ..addAll(unitSources))
|
| .toList();
|
| - List<LibrarySpecificUnit> librarySpecificUnits =
|
| - unitSources.map((s) => new LibrarySpecificUnit(source, s)).toList();
|
| + List<LibrarySpecificUnit> librarySpecificUnits = unitSources
|
| + .map((s) => (context as InternalAnalysisContext)
|
| + .getLibrarySpecificUnit(source, s))
|
| + .toList();
|
| outputs[EXPLICITLY_IMPORTED_LIBRARIES] = explicitlyImportedSources;
|
| outputs[EXPORTED_LIBRARIES] = exportedSources;
|
| outputs[IMPORTED_LIBRARIES] = importedSources;
|
|
|