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

Unified Diff: corelib/src/list.dart

Issue 8273004: Implement removeRange, and update some documentation on the list interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: corelib/src/list.dart
===================================================================
--- corelib/src/list.dart (revision 394)
+++ corelib/src/list.dart (working copy)
@@ -132,6 +132,7 @@
* Returns a sub list copy of this list, from [start] to
* [:start + length:].
* Returns an empty list if [length] is 0.
+ * Throws an [IllegalArgumentException] if [length] is negative.
* Throws an [IndexOutOfRangeException] if [start] or
* [:start + length:] are out of range.
*/
@@ -143,6 +144,7 @@
* Throws an [UnsupportedOperationException] if the list is
* not extendable.
* If [length] is 0, this method does not do anything.
+ * Throws an [IllegalArgumentException] if [length] is negative.
* Throws an [IndexOutOfRangeException] if [start] or
* [:start + length:] are out of range for [:this:], or if
* [startFrom] is out of range for [from].
@@ -155,6 +157,7 @@
* Throws an [UnsupportedOperationException] if the list is
* not extendable.
* If [length] is 0, this method does not do anything.
+ * Throws an [IllegalArgumentException] if [length] is negative.
* Throws an [IndexOutOfRangeException] if [start] or
* [:start + length:] are out of range.
*/
@@ -166,6 +169,7 @@
* Throws an [UnsupportedOperationException] if the list is
* not extendable.
* If [length] is 0, this method does not do anything.
+ * Throws an [IllegalArgumentException] if [length] is negative.
* Throws an [IndexOutOfRangeException] if [start] or
* [:start + length:] are out of range.
*/

Powered by Google App Engine
This is Rietveld 408576698