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

Side by Side Diff: sdk/lib/collection/maps.dart

Issue 11419032: Switch libraries to using new tags. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip of tree. Changed library names to dart.x Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/splay_tree.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.collection;
6
5 /* 7 /*
6 * Helper class which implements complex [Map] operations 8 * Helper class which implements complex [Map] operations
7 * in term of basic ones ([Map.keys], [Map.operator []], 9 * in term of basic ones ([Map.keys], [Map.operator []],
8 * [Map.operator []=] and [Map.remove].) Not all methods are 10 * [Map.operator []=] and [Map.remove].) Not all methods are
9 * necessary to implement each particular operation. 11 * necessary to implement each particular operation.
10 */ 12 */
11 class Maps { 13 class Maps {
12 static bool containsValue(Map map, value) { 14 static bool containsValue(Map map, value) {
13 for (final v in map.values) { 15 for (final v in map.values) {
14 if (value == v) { 16 if (value == v) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 first = false; 106 first = false;
105 Collections._emitObject(k, result, visiting); 107 Collections._emitObject(k, result, visiting);
106 result.add(': '); 108 result.add(': ');
107 Collections._emitObject(v, result, visiting); 109 Collections._emitObject(v, result, visiting);
108 }); 110 });
109 111
110 result.add('}'); 112 result.add('}');
111 visiting.removeLast(); 113 visiting.removeLast();
112 } 114 }
113 } 115 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698