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

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

Issue 2968413002: Revert "Use relative URIs for core library part-of statements." (Closed)
Patch Set: Created 3 years, 5 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/maps.dart ('k') | sdk/lib/collection/set.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) 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 "collection.dart"; 5 part of dart.collection;
6 6
7 /** 7 /**
8 * A [Queue] is a collection that can be manipulated at both ends. One 8 * A [Queue] is a collection that can be manipulated at both ends. One
9 * can iterate over the elements of a queue through [forEach] or with 9 * can iterate over the elements of a queue through [forEach] or with
10 * an [Iterator]. 10 * an [Iterator].
11 * 11 *
12 * It is generally not allowed to modify the queue (add or remove entries) while 12 * It is generally not allowed to modify the queue (add or remove entries) while
13 * an operation on the queue is being performed, for example during a call to 13 * an operation on the queue is being performed, for example during a call to
14 * [forEach]. 14 * [forEach].
15 * Modifying the queue while it is being iterated will most likely break the 15 * Modifying the queue while it is being iterated will most likely break the
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 _queue._checkModification(_modificationCount); 872 _queue._checkModification(_modificationCount);
873 if (_position == _end) { 873 if (_position == _end) {
874 _current = null; 874 _current = null;
875 return false; 875 return false;
876 } 876 }
877 _current = _queue._table[_position]; 877 _current = _queue._table[_position];
878 _position = (_position + 1) & (_queue._table.length - 1); 878 _position = (_position + 1) & (_queue._table.length - 1);
879 return true; 879 return true;
880 } 880 }
881 } 881 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/maps.dart ('k') | sdk/lib/collection/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698