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

Unified Diff: frog/lib/corelib_impl.dart

Issue 9107031: fix Library*NegativeTests (and a couple Prefix ones by accident) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 11 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 | « frog/lib/corelib.dart ('k') | frog/library.dart » ('j') | frog/library.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/corelib_impl.dart
diff --git a/frog/lib/corelib_impl.dart b/frog/lib/corelib_impl.dart
index e83331c325fcbd16f8a6463ab39e2161cd863314..2d41fd06c4590f20cc75b2d5fdb65020c0ff5253 100644
--- a/frog/lib/corelib_impl.dart
+++ b/frog/lib/corelib_impl.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -221,6 +221,19 @@ class ImmutableList<E> extends ListFactory<E> {
String toString() => new List.from(this).toString();
}
+
+LinkedHashMapImplementation _map(List itemsAndKeys) {
+ LinkedHashMapImplementation ret = new LinkedHashMapImplementation();
+ for (int i=0; i < itemsAndKeys.length;) {
+ ret[itemsAndKeys[i++]] = itemsAndKeys[i++];
+ }
+ return ret;
+}
+
+ImmutableMap _constMap(List itemsAndKeys) {
+ return new ImmutableMap(itemsAndKeys);
+}
+
/** An immutable map. */
class ImmutableMap<K, V> implements Map<K, V> {
final Map<K, V> _internal;
« no previous file with comments | « frog/lib/corelib.dart ('k') | frog/library.dart » ('j') | frog/library.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698