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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart

Issue 2304323002: Cast InternalMap to Map. (Closed)
Patch Set: Make InternalMap directly implement Map instead of casting. 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/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart b/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
index 741cc2aacfadbddb994e9c35bb99e51cb49f0b13..28c03f801d486b4342a759857bedfe91c51c66e1 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/isolate_serialization.dart
@@ -114,7 +114,7 @@ class _Serializer {
return x;
}
- serializeMap(Map x) {
+ serializeMap(InternalMap x) {
Function serializeTearOff = serialize;
return ['map',
x.keys.map(serializeTearOff).toList(),
@@ -276,7 +276,7 @@ class _Deserializer {
}
// ['map', <key-list>, <value-list>].
- Map deserializeMap(x) {
+ Map deserializeMap(InternalMap x) {
assert(x[0] == 'map');
List keys = x[1];
List values = x[2];
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/patch/collection_patch.dart ('k') | pkg/dev_compiler/tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698