| 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 25368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25380 if (length < 0) throw new IllegalArgumentException('length'); | 25380 if (length < 0) throw new IllegalArgumentException('length'); |
| 25381 if (start < 0) throw new IndexOutOfRangeException(start); | 25381 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25382 int end = start + length; | 25382 int end = start + length; |
| 25383 if (end > a.length) throw new IndexOutOfRangeException(end); | 25383 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25384 for (int i = start; i < end; i++) { | 25384 for (int i = start; i < end; i++) { |
| 25385 accumulator.add(a[i]); | 25385 accumulator.add(a[i]); |
| 25386 } | 25386 } |
| 25387 return accumulator; | 25387 return accumulator; |
| 25388 } | 25388 } |
| 25389 } | 25389 } |
| OLD | NEW |