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

Unified Diff: tool/input_sdk/private/constant_map.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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: tool/input_sdk/private/constant_map.dart
diff --git a/tool/input_sdk/private/constant_map.dart b/tool/input_sdk/private/constant_map.dart
index 181e522ef242121bcb5bcc727e31beaac3b12359..0d66acac104cfdd5fb1cf9e5bfa962ff26bf0a38 100644
--- a/tool/input_sdk/private/constant_map.dart
+++ b/tool/input_sdk/private/constant_map.dart
@@ -18,7 +18,7 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
}
void operator []=(K key, V val) => _throwUnmodifiable();
V putIfAbsent(K key, V ifAbsent()) => _throwUnmodifiable();
- V remove(K key) => _throwUnmodifiable();
+ V remove(Object key) => _throwUnmodifiable();
void clear() => _throwUnmodifiable();
void addAll(Map<K, V> other) => _throwUnmodifiable();
}
@@ -36,7 +36,7 @@ class ConstantStringMap<K, V> extends ConstantMap<K, V>
final _jsObject;
final List<K> _keys;
- bool containsValue(V needle) {
+ bool containsValue(Object needle) {
return values.any((V value) => value == needle);
}
@@ -116,10 +116,10 @@ class GeneralConstantMap<K, V> extends ConstantMap<K, V> {
Map backingMap = new LinkedHashMap<K, V>();
JS('', r'this.$map = #', fillLiteralMap(_jsData, backingMap));
}
- return JS('Map', r'this.$map');
+ return JS('Map<K, V>', r'this.$map');
}
- bool containsValue(V needle) {
+ bool containsValue(Object needle) {
return _getMap().containsValue(needle);
}

Powered by Google App Engine
This is Rietveld 408576698