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

Unified Diff: pkg/compiler/lib/src/types/forwarding_type_mask.dart

Issue 2420073002: Decouple TypeMask from ClassElement (Closed)
Patch Set: Updated cf. comments. Created 4 years, 2 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/types/flat_type_mask.dart ('k') | pkg/compiler/lib/src/types/masks.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/types/forwarding_type_mask.dart
diff --git a/pkg/compiler/lib/src/types/forwarding_type_mask.dart b/pkg/compiler/lib/src/types/forwarding_type_mask.dart
index cdf4f16943381557a5f8394fbcfffabb5bbde53e..f285a59fefae7f1ab0f59466cc70baa5f101c834 100644
--- a/pkg/compiler/lib/src/types/forwarding_type_mask.dart
+++ b/pkg/compiler/lib/src/types/forwarding_type_mask.dart
@@ -54,23 +54,23 @@ abstract class ForwardingTypeMask implements TypeMask {
return forwardTo.containsOnlyString(closedWorld);
}
- bool containsOnly(ClassElement element) {
- return forwardTo.containsOnly(element);
+ bool containsOnly(Entity cls) {
+ return forwardTo.containsOnly(cls);
}
- bool satisfies(ClassElement cls, ClosedWorld closedWorld) {
+ bool satisfies(Entity cls, ClosedWorld closedWorld) {
return forwardTo.satisfies(cls, closedWorld);
}
- bool contains(ClassElement type, ClosedWorld closedWorld) {
- return forwardTo.contains(type, closedWorld);
+ bool contains(Entity cls, ClosedWorld closedWorld) {
+ return forwardTo.contains(cls, closedWorld);
}
bool containsAll(ClosedWorld closedWorld) {
return forwardTo.containsAll(closedWorld);
}
- ClassElement singleClass(ClosedWorld closedWorld) {
+ Entity singleClass(ClosedWorld closedWorld) {
return forwardTo.singleClass(closedWorld);
}
« no previous file with comments | « pkg/compiler/lib/src/types/flat_type_mask.dart ('k') | pkg/compiler/lib/src/types/masks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698