OLD | NEW |
1 #library('dom'); | 1 #library('dart:dom_deprecated'); |
2 | 2 |
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 // DO NOT EDIT | 7 // DO NOT EDIT |
8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
9 | 9 |
10 | 10 |
11 | 11 |
(...skipping 25270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25282 if (length < 0) throw new IllegalArgumentException('length'); | 25282 if (length < 0) throw new IllegalArgumentException('length'); |
25283 if (start < 0) throw new IndexOutOfRangeException(start); | 25283 if (start < 0) throw new IndexOutOfRangeException(start); |
25284 int end = start + length; | 25284 int end = start + length; |
25285 if (end > a.length) throw new IndexOutOfRangeException(end); | 25285 if (end > a.length) throw new IndexOutOfRangeException(end); |
25286 for (int i = start; i < end; i++) { | 25286 for (int i = start; i < end; i++) { |
25287 accumulator.add(a[i]); | 25287 accumulator.add(a[i]); |
25288 } | 25288 } |
25289 return accumulator; | 25289 return accumulator; |
25290 } | 25290 } |
25291 } | 25291 } |
OLD | NEW |