Index: pkg/compiler/lib/src/serialization/task.dart |
diff --git a/pkg/compiler/lib/src/serialization/task.dart b/pkg/compiler/lib/src/serialization/task.dart |
index 1639c323667d9875b4ad7d7cfb3cc68c0c0516c4..6ca46364572e9a320f28523e61f030321fc8ac84 100644 |
--- a/pkg/compiler/lib/src/serialization/task.dart |
+++ b/pkg/compiler/lib/src/serialization/task.dart |
@@ -34,6 +34,9 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer { |
// retained, for instance impacts, resolution data etc. |
bool supportSerialization = false; |
+ /// If `true`, deserialized data is supported. |
+ bool get supportsDeserialization => deserializer != null; |
+ |
/// Returns the [LibraryElement] for [resolvedUri] if available from |
/// serialization. |
Future<LibraryElement> readLibrary(Uri resolvedUri) { |