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

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

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « sdk/lib/collection/hash_map.dart ('k') | sdk/lib/collection/iterable.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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"; 5 part of dart.collection;
6 6
7 /** Common parts of [HashSet] and [LinkedHashSet] implementations. */ 7 /** Common parts of [HashSet] and [LinkedHashSet] implementations. */
8 abstract class _HashSetBase<E> extends SetBase<E> { 8 abstract class _HashSetBase<E> extends SetBase<E> {
9 // The following two methods override the ones in SetBase. 9 // The following two methods override the ones in SetBase.
10 // It's possible to be more efficient if we have a way to create an empty 10 // It's possible to be more efficient if we have a way to create an empty
11 // set of the correct type. 11 // set of the correct type.
12 12
13 Set<E> difference(Set<Object> other) { 13 Set<E> difference(Set<Object> other) {
14 Set<E> result = _newSet(); 14 Set<E> result = _newSet();
15 for (var element in this) { 15 for (var element in this) {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 /** 138 /**
139 * Provides an iterator that iterates over the elements of this set. 139 * Provides an iterator that iterates over the elements of this set.
140 * 140 *
141 * The order of iteration is unspecified, 141 * The order of iteration is unspecified,
142 * but consistent between changes to the set. 142 * but consistent between changes to the set.
143 */ 143 */
144 Iterator<E> get iterator; 144 Iterator<E> get iterator;
145 } 145 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/hash_map.dart ('k') | sdk/lib/collection/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698