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

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

Issue 2370833002: Replace ClosedWorld.backend with ClosedWorld.backendClasses (Closed)
Patch Set: Created 4 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
Index: pkg/compiler/lib/src/types/map_type_mask.dart
diff --git a/pkg/compiler/lib/src/types/map_type_mask.dart b/pkg/compiler/lib/src/types/map_type_mask.dart
index fb502b171315bdfd3240d4ac70e7223d842ffb02..230db17d0f10de5ab805758a282fc2f5fd16195c 100644
--- a/pkg/compiler/lib/src/types/map_type_mask.dart
+++ b/pkg/compiler/lib/src/types/map_type_mask.dart
@@ -79,8 +79,9 @@ class MapTypeMask extends ForwardingTypeMask {
} else if (other.isDictionary) {
// TODO(johnniwinther): Find another way to check this invariant that
// doesn't need the compiler.
- assert(
- other.keyType == closedWorld.backend.compiler.commonMasks.stringType);
+ assert(other.keyType ==
+ new TypeMask.nonNullExact(
+ closedWorld.backendClasses.stringImplementation, closedWorld));
TypeMask newKeyType = keyType.union(other.keyType, closedWorld);
TypeMask newValueType =
other.typeMap.values.fold(keyType, (p, n) => p.union(n, closedWorld));

Powered by Google App Engine
This is Rietveld 408576698