Index: pkg/compiler/lib/src/apiimpl.dart |
diff --git a/pkg/compiler/lib/src/apiimpl.dart b/pkg/compiler/lib/src/apiimpl.dart |
index 631d29b3d22f1cdf7704182ec1c6153f681f0a81..ef24315a3e3d84dbdffe5ded2e5a8bc7382537d0 100644 |
--- a/pkg/compiler/lib/src/apiimpl.dart |
+++ b/pkg/compiler/lib/src/apiimpl.dart |
@@ -205,11 +205,13 @@ class CompilerImpl extends Compiler { |
Future<Null> setupSdk() { |
Future future = new Future.value(null); |
- if (options.resolutionInput != null) { |
- reporter.log('Reading serialized data from ${options.resolutionInput}'); |
- future = callUserProvider(options.resolutionInput) |
- .then((SourceFile sourceFile) { |
- serialization.deserializeFromText(sourceFile.slowText()); |
+ if (options.resolutionInputs != null) { |
+ future = Future.forEach(options.resolutionInputs, (Uri resolutionInput) { |
+ reporter.log('Reading serialized data from ${resolutionInput}'); |
+ return callUserProvider(resolutionInput).then((SourceFile sourceFile) { |
+ serialization.deserializeFromText( |
+ resolutionInput, sourceFile.slowText()); |
+ }); |
}); |
} |
if (resolvedUriTranslator.isNotSet) { |