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

Side by Side Diff: dart/compiler/lib/implementation/collections.dart

Issue 9433040: Second attempt to make dartc green. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | dart/tests/language/language.status » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 /** 5 /**
6 * The [Collections] class implements static methods useful when 6 * The [Collections] class implements static methods useful when
7 * writing a class that implements [Collection] and the [iterator] 7 * writing a class that implements [Collection] and the [iterator]
8 * method. 8 * method.
9 */ 9 */
10 class Collections { 10 class Collections {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (f(e)) destination.add(e); 44 if (f(e)) destination.add(e);
45 } 45 }
46 return destination; 46 return destination;
47 } 47 }
48 48
49 static bool isEmpty(Iterable<Object> iterable) { 49 static bool isEmpty(Iterable<Object> iterable) {
50 return !iterable.iterator().hasNext(); 50 return !iterable.iterator().hasNext();
51 } 51 }
52 52
53 static String collectionToString(Collection c) => c.toString(); 53 static String collectionToString(Collection c) => c.toString();
54
55 static void _emitObject(Object o, StringBuffer result, List visiting) {
56 }
54 } 57 }
OLDNEW
« no previous file with comments | « no previous file | dart/tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698