Index: pkg/front_end/lib/src/fasta/dill/dill_target.dart |
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_target.dart b/pkg/front_end/lib/src/fasta/dill/dill_target.dart |
index 4dc805a04e79ceae053a27df5b24a9e9b752aec5..885652eafb64734a2466c0805d9ee6939b8fd1f2 100644 |
--- a/pkg/front_end/lib/src/fasta/dill/dill_target.dart |
+++ b/pkg/front_end/lib/src/fasta/dill/dill_target.dart |
@@ -8,19 +8,13 @@ import 'dart:async' show Future; |
import 'package:kernel/ast.dart' show Class; |
-import 'dill_loader.dart' show DillLoader; |
- |
import '../errors.dart' show internalError; |
- |
+import '../kernel/kernel_builder.dart' show ClassBuilder; |
import '../target_implementation.dart' show TargetImplementation; |
- |
import '../ticker.dart' show Ticker; |
- |
import '../translate_uri.dart' show TranslateUri; |
- |
-import '../kernel/kernel_builder.dart' show ClassBuilder; |
- |
import 'dill_library_builder.dart' show DillLibraryBuilder; |
+import 'dill_loader.dart' show DillLoader; |
class DillTarget extends TargetImplementation { |
bool isLoaded = false; |
@@ -45,7 +39,7 @@ class DillTarget extends TargetImplementation { |
} |
Future<Null> writeOutline(Uri uri) async { |
- if (loader.program == null) return null; |
+ if (loader.libraries.isEmpty) return null; |
await loader.buildOutlines(); |
isLoaded = true; |
return null; |