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

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

Issue 1304083008: Add ClassSet to support ClassWorld.strictSubtypesOf (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 3 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 | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/modelz.dart
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart
index a0ba0a8d5db71215630c33e98619e37e37229745..8eb87d4e23e2727b0666c02b3c35ede6141cca2e 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -940,6 +940,11 @@ class ClassElementZ extends DeserializedElementZ
@override
ClassElement get superclass => supertype != null ? supertype.element : null;
+
+ @override
+ void ensureResolved(Compiler compiler) {
+ compiler.world.registerClass(this);
+ }
}
abstract class ConstructorElementZ extends DeserializedElementZ
@@ -1280,9 +1285,6 @@ abstract class TypeDeclarationMixin<T extends GenericType>
@override
bool get isResolved => true;
-
- @override
- void ensureResolved(Compiler compiler) {}
}
class TypedefElementZ extends DeserializedElementZ
@@ -1318,6 +1320,9 @@ class TypedefElementZ extends DeserializedElementZ
}
@override
+ void ensureResolved(Compiler compiler) {}
+
+ @override
void checkCyclicReference(Compiler compiler) {}
}
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698