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

Unified Diff: pkg/compiler/lib/src/serialization/impact_serialization.dart

Issue 2742283002: Add ConstantUse to WorldImpact (Closed)
Patch Set: Cleanup. Created 3 years, 9 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/compiler/lib/src/serialization/impact_serialization.dart
diff --git a/pkg/compiler/lib/src/serialization/impact_serialization.dart b/pkg/compiler/lib/src/serialization/impact_serialization.dart
index a83d308ac042d23745b67292d8e0195d3775952e..7cf9ce1513394afaa74633b9bf947ec1d6067ac0 100644
--- a/pkg/compiler/lib/src/serialization/impact_serialization.dart
+++ b/pkg/compiler/lib/src/serialization/impact_serialization.dart
@@ -91,6 +91,11 @@ class ImpactSerializer implements WorldImpactVisitor {
object.setEnum(Key.KIND, typeUse.kind);
object.setType(Key.TYPE, typeUse.type);
}
+
+ @override
+ void visitConstantUse(ConstantUse typeUse) {
+ throw new UnsupportedError("ConstantUse serialization is not supported.");
+ }
}
/// A deserialized [WorldImpact] object.

Powered by Google App Engine
This is Rietveld 408576698