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

Unified Diff: lib/src/unmodifiable_wrappers.dart

Issue 1315753002: Export UnmodifiableMapView from the Dart core libraries. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: Code review changes Created 5 years, 4 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 | « CHANGELOG.md ('k') | lib/wrappers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/unmodifiable_wrappers.dart
diff --git a/lib/src/unmodifiable_wrappers.dart b/lib/src/unmodifiable_wrappers.dart
index 72b189cf3f8a6484b4b881b254ec18657b7c3292..c681884e47f06960b6b87d283780def96933fe19 100644
--- a/lib/src/unmodifiable_wrappers.dart
+++ b/lib/src/unmodifiable_wrappers.dart
@@ -11,7 +11,13 @@
* The [List] wrapper prevents changes to the length of the wrapped list,
* but allows changes to the contents.
*/
-part of dart.pkg.collection.wrappers;
+library collection.unmodifiable_wrappers;
+
+import "dart:collection";
+
+import '../wrappers.dart';
+
+export "dart:collection" show UnmodifiableListView, UnmodifiableMapView;
/**
* A fixed-length list.
@@ -193,20 +199,6 @@ abstract class UnmodifiableSetMixin<E> implements Set<E> {
}
/**
- * An unmodifiable map.
- *
- * An UnmodifiableMapView contains a [Map] object and ensures
- * that it does not change.
- * Methods that would change the map,
- * such as [addAll] and [remove], throw an [UnsupportedError].
- * Permitted operations defer to the wrapped map.
- */
-class UnmodifiableMapView<K, V> extends DelegatingMap<K, V>
- with UnmodifiableMapMixin<K, V> {
- UnmodifiableMapView(Map<K, V> baseMap) : super(baseMap);
-}
-
-/**
* Mixin class that implements a throwing version of all map operations that
* change the Map.
*/
« no previous file with comments | « CHANGELOG.md ('k') | lib/wrappers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698