pkg/collection: define delegating collection constructors as const

Allows creating a singleton const instance for common values

R=lrn@google.com

Review URL: https://codereview.chromium.org//252133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/collection@35517 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/wrappers.dart b/lib/wrappers.dart
index b15a6bd..0fcc8c2 100644
--- a/lib/wrappers.dart
+++ b/lib/wrappers.dart
@@ -31,7 +31,7 @@
   /**
    * Create a wrapper that forwards operations to [base].
    */
-  DelegatingIterable(Iterable<E> base) : _base = base;
+  const DelegatingIterable(Iterable<E> base) : _base = base;
 
   bool any(bool test(E element)) => _base.any(test);
 
@@ -102,7 +102,7 @@
  * list object.
  */
 class DelegatingList<E> extends DelegatingIterable<E> implements List<E> {
-  DelegatingList(List<E> base) : super(base);
+  const DelegatingList(List<E> base) : super(base);
 
   List<E> get _listBase => _base;
 
@@ -201,7 +201,7 @@
  * set object.
  */
 class DelegatingSet<E> extends DelegatingIterable<E> implements Set<E> {
-  DelegatingSet(Set<E> base) : super(base);
+  const DelegatingSet(Set<E> base) : super(base);
 
   Set<E> get _setBase => _base;
 
@@ -252,7 +252,7 @@
  * queue object.
  */
 class DelegatingQueue<E> extends DelegatingIterable<E> implements Queue<E> {
-  DelegatingQueue(Queue<E> queue) : super(queue);
+  const DelegatingQueue(Queue<E> queue) : super(queue);
 
   Queue<E> get _baseQueue => _base;
 
@@ -297,7 +297,7 @@
 class DelegatingMap<K, V> implements Map<K, V> {
   final Map<K, V> _base;
 
-  DelegatingMap(Map<K, V> base) : _base = base;
+  const DelegatingMap(Map<K, V> base) : _base = base;
 
   V operator [](Object key) => _base[key];
 
diff --git a/pubspec.yaml b/pubspec.yaml
index fb979a0..58482ce 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: collection
-version: 0.9.2-dev
+version: 0.9.2
 author: Dart Team <misc@dartlang.org>
 description: Collections and utilities functions and classes related to collections.
 homepage: http://www.dartlang.org