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 40ea7ab30393c9cb44a4a5feaf676f8d34a110ee..765c716293b83d7b4b4ca8a9cdd23d817c6a6ab6 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -24,6 +24,7 @@ import 'package:analyzer/src/task/general.dart'; |
import 'package:analyzer/task/dart.dart'; |
import 'package:analyzer/task/general.dart'; |
import 'package:analyzer/task/model.dart'; |
+import 'package:analyzer/src/task/inputs.dart'; |
/** |
* The errors produced while resolving a library directives. |
@@ -2011,8 +2012,11 @@ class ResolveLibraryTypeNamesTask extends SourceBasedAnalysisTask { |
static Map<String, TaskInput> buildInputs(Source libSource) { |
return <String, TaskInput>{ |
LIBRARY_INPUT: LIBRARY_ELEMENT4.of(libSource), |
- 'resolvedUnits': UNITS.of(libSource).toMap((Source source) => |
- RESOLVED_UNIT4.of(new LibraryUnitTarget(libSource, source))) |
+ 'resolvedUnits': IMPORT_SOURCE_CLOSURE |
+ .of(libSource) |
+ .toMapOf(UNITS) |
+ .toFlattenList((Source library, Source unit) => |
+ RESOLVED_UNIT4.of(new LibraryUnitTarget(library, unit))) |
}; |
} |