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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_target.dart

Issue 2874723002: Add a way to use shared CanonicalName root to deserialize Program. (Closed)
Patch Set: Add TODO for 'uriToSource'. Created 3 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
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;

Powered by Google App Engine
This is Rietveld 408576698