| OLD | NEW |
| 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 part of dart._collection.dev; | 5 part of dart._collection.dev; |
| 6 | 6 |
| 7 | 7 |
| 8 // This is a hack to make @deprecated work in dart:io. Don't remove or use this, | 8 // This is a hack to make @deprecated work in dart:io. Don't remove or use this, |
| 9 // unless coordinated with either me or the core library team. Thanks! | 9 // unless coordinated with either me or the core library team. Thanks! |
| 10 // TODO(ajohnsen): Remove at the 11th of Auguest 2013. | 10 // TODO(ajohnsen): Remove at the 11th of Auguest 2013. |
| 11 // TODO(ajohnsen): Remove hide in sdk/lib/web_sql/dart2js/web_sql_dart2js.dart. |
| 12 // TODO(ajohnsen): Remove hide in sdk/lib/html/dart2js/html_dart2js.dart. |
| 13 // TODO(ajohnsen): Remove hide in |
| 14 // sdk/lib/web_audio/dart2js/web_audio_dart2js.dart. |
| 11 const deprecated = 0; | 15 const deprecated = 0; |
| 12 | 16 |
| 13 /** | 17 /** |
| 14 * An [Iterable] for classes that have efficient [length] and [elementAt]. | 18 * An [Iterable] for classes that have efficient [length] and [elementAt]. |
| 15 * | 19 * |
| 16 * All other methods are implemented in terms of [length] and [elementAt], | 20 * All other methods are implemented in terms of [length] and [elementAt], |
| 17 * including [iterator]. | 21 * including [iterator]. |
| 18 */ | 22 */ |
| 19 abstract class ListIterable<E> extends IterableBase<E> { | 23 abstract class ListIterable<E> extends IterableBase<E> { |
| 20 int get length; | 24 int get length; |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 | 1064 |
| 1061 static Set setDifference(Set set, Set other, Set result) { | 1065 static Set setDifference(Set set, Set other, Set result) { |
| 1062 for (var element in set) { | 1066 for (var element in set) { |
| 1063 if (!other.contains(element)) { | 1067 if (!other.contains(element)) { |
| 1064 result.add(element); | 1068 result.add(element); |
| 1065 } | 1069 } |
| 1066 } | 1070 } |
| 1067 return result; | 1071 return result; |
| 1068 } | 1072 } |
| 1069 } | 1073 } |
| OLD | NEW |