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

Unified Diff: test/generated_sdk/lib/collection/collection.dart

Issue 1122313002: Typing fixes to eliminate casts/dcalls (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 7 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: test/generated_sdk/lib/collection/collection.dart
diff --git a/test/generated_sdk/lib/collection/collection.dart b/test/generated_sdk/lib/collection/collection.dart
index 4c6ab59bc0e7ea2e94c6f15d85f69a1793d870a9..8eca257c4110f25cd33157876563cd63ae586961 100644
--- a/test/generated_sdk/lib/collection/collection.dart
+++ b/test/generated_sdk/lib/collection/collection.dart
@@ -366,8 +366,9 @@ class _IdentityHashMap<K, V> extends _HashMap<K, V> {
class _CustomHashMap<K, V> extends _HashMap<K, V> {
final _Equality<K> _equals;
final _Hasher<K> _hashCode;
- final _Predicate _validKey;
- _CustomHashMap(this._equals, this._hashCode, bool validKey(potentialKey))
+ final _Predicate<Object> _validKey;
+ _CustomHashMap(this._equals, this._hashCode,
+ bool validKey(Object potentialKey))
: _validKey = (validKey != null) ? validKey : ((v) => v is K);
V operator[](Object key) {
@@ -788,9 +789,9 @@ class _LinkedIdentityHashMap<K, V> extends _LinkedHashMap<K, V> {
class _LinkedCustomHashMap<K, V> extends _LinkedHashMap<K, V> {
final _Equality<K> _equals;
final _Hasher<K> _hashCode;
- final _Predicate _validKey;
+ final _Predicate<Object> _validKey;
_LinkedCustomHashMap(this._equals, this._hashCode,
- bool validKey(potentialKey))
+ bool validKey(Object potentialKey))
: _validKey = (validKey != null) ? validKey : ((v) => v is K);
V operator[](Object key) {
@@ -1187,8 +1188,9 @@ class _IdentityHashSet<E> extends _HashSet<E> {
class _CustomHashSet<E> extends _HashSet<E> {
_Equality<E> _equality;
_Hasher<E> _hasher;
- _Predicate _validKey;
- _CustomHashSet(this._equality, this._hasher, bool validKey(potentialKey))
+ _Predicate<Object> _validKey;
+ _CustomHashSet(this._equality, this._hasher,
+ bool validKey(Object potentialKey))
: _validKey = (validKey != null) ? validKey : ((x) => x is E);
Set<E> _newSet() => new _CustomHashSet<E>(_equality, _hasher, _validKey);
@@ -1588,9 +1590,9 @@ class _LinkedIdentityHashSet<E> extends _LinkedHashSet<E> {
class _LinkedCustomHashSet<E> extends _LinkedHashSet<E> {
_Equality<E> _equality;
_Hasher<E> _hasher;
- _Predicate _validKey;
+ _Predicate<Object> _validKey;
_LinkedCustomHashSet(this._equality, this._hasher,
- bool validKey(potentialKey))
+ bool validKey(Object potentialKey))
: _validKey = (validKey != null) ? validKey : ((x) => x is E);
Set<E> _newSet() =>
« no previous file with comments | « test/dart_codegen/expect/collection/splay_tree.dart ('k') | test/generated_sdk/lib/collection/hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698