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

Unified Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 2004833003: Support multiple resolution inputs from command line. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix after rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698