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

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: 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..73c8ad6210eb426badbb6090e25958d0b8444595 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 dart.pkg.collection.unmodifiable_wrappers;
Lasse Reichstein Nielsen 2015/08/25 07:43:48 Feel free to change the name to collection.unmodif
nweiz 2015/08/25 19:45:54 Done.
+
+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