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

Unified Diff: pkg/compiler/lib/src/util/maplet.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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/util/emptyset.dart ('k') | pkg/compiler/lib/src/util/setlet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/maplet.dart
diff --git a/pkg/compiler/lib/src/util/maplet.dart b/pkg/compiler/lib/src/util/maplet.dart
index ad1fdca37b3b47af2d06e0674770081ce142b47d..febfe5f90ba1909adee56852d93048944509d33f 100644
--- a/pkg/compiler/lib/src/util/maplet.dart
+++ b/pkg/compiler/lib/src/util/maplet.dart
@@ -54,7 +54,7 @@ class Maplet<K, V> extends MapBase<K, V> {
}
}
- bool containsKey(K key) {
+ bool containsKey(Object key) {
if (_extra == null) {
return _key == key;
} else if (_MARKER == _extra) {
@@ -70,7 +70,7 @@ class Maplet<K, V> extends MapBase<K, V> {
}
}
- V operator [](K key) {
+ V operator [](Object key) {
if (_extra == null) {
return (_key == key) ? _value : null;
} else if (_MARKER == _extra) {
@@ -166,7 +166,7 @@ class Maplet<K, V> extends MapBase<K, V> {
}
}
- V remove(K key) {
+ V remove(Object key) {
if (_extra == null) {
if (_key != key) return null;
_key = _MARKER;
« no previous file with comments | « pkg/compiler/lib/src/util/emptyset.dart ('k') | pkg/compiler/lib/src/util/setlet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698