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

Unified Diff: lib/src/wrappers.dart

Issue 1838353002: Fix the invocation of type-safe constructors. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/wrappers.dart
diff --git a/lib/src/wrappers.dart b/lib/src/wrappers.dart
index c44742709b1d9046a989fcec4aeffb64e745d4d5..97de461c1af500d1898335652995893aa545ac25 100644
--- a/lib/src/wrappers.dart
+++ b/lib/src/wrappers.dart
@@ -103,7 +103,7 @@ class DelegatingIterable<E> extends _DelegatingIterableBase<E> {
/// reflected in [this]. If [base] is already an `Iterable<E>`, it's returned
/// unmodified.
static Iterable/*<E>*/ typed/*<E>*/(Iterable base) =>
- base is Iterable/*<E>*/ ? base : new TypedIterable/*<E>*/(base);
+ base is Iterable/*<E>*/ ? base : new TypeSafeIterable/*<E>*/(base);
}
@@ -127,7 +127,7 @@ class DelegatingList<E> extends DelegatingIterable<E> implements List<E> {
/// reflected in [this]. If [base] is already a `List<E>`, it's returned
/// unmodified.
static List/*<E>*/ typed/*<E>*/(List base) =>
- base is List/*<E>*/ ? base : new TypedList/*<E>*/(base);
+ base is List/*<E>*/ ? base : new TypeSafeList/*<E>*/(base);
List<E> get _listBase => _base;
@@ -237,7 +237,7 @@ class DelegatingSet<E> extends DelegatingIterable<E> implements Set<E> {
/// reflected in [this]. If [base] is already a `Set<E>`, it's returned
/// unmodified.
static Set/*<E>*/ typed/*<E>*/(Set base) =>
- base is Set/*<E>*/ ? base : new TypedSet/*<E>*/(base);
+ base is Set/*<E>*/ ? base : new TypeSafeSet/*<E>*/(base);
Set<E> get _setBase => _base;
@@ -302,7 +302,7 @@ class DelegatingQueue<E> extends DelegatingIterable<E> implements Queue<E> {
/// reflected in [this]. If [base] is already a `Queue<E>`, it's returned
/// unmodified.
static Queue/*<E>*/ typed/*<E>*/(Queue base) =>
- base is Queue/*<E>*/ ? base : new TypedQueue/*<E>*/(base);
+ base is Queue/*<E>*/ ? base : new TypeSafeQueue/*<E>*/(base);
Queue<E> get _baseQueue => _base;
@@ -359,7 +359,7 @@ class DelegatingMap<K, V> implements Map<K, V> {
/// reflected in [this]. If [base] is already a `Map<K, V>`, it's returned
/// unmodified.
static Map/*<K, V>*/ typed/*<K, V>*/(Map base) =>
- base is Map<K, V> ? base : new TypedMap<K, V>(base);
+ base is Map<K, V> ? base : new TypeSafeMap<K, V>(base);
V operator [](Object key) => _base[key];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698