| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 part of dart.fletch._system; | 5 part of dart.dartino._system; |
| 6 | 6 |
| 7 // TODO(ajohnsen): Temp hack to expose _GrowableList/_FixedList to core. | 7 // TODO(ajohnsen): Temp hack to expose _GrowableList/_FixedList to core. |
| 8 List newList(int length) { | 8 List newList(int length) { |
| 9 return (length == null) ? new _GrowableList() : new _FixedList(length); | 9 return (length == null) ? new _GrowableList() : new _FixedList(length); |
| 10 } | 10 } |
| 11 | 11 |
| 12 abstract class _FixedListBase<E> | 12 abstract class _FixedListBase<E> |
| 13 extends Object with ListMixin<E> | 13 extends Object with ListMixin<E> |
| 14 implements List<E> { | 14 implements List<E> { |
| 15 final _list; | 15 final _list; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 --length; | 201 --length; |
| 202 while (i < length) { | 202 while (i < length) { |
| 203 int j = i + 1; | 203 int j = i + 1; |
| 204 list[i] = list[j]; | 204 list[i] = list[j]; |
| 205 i = j; | 205 i = j; |
| 206 } | 206 } |
| 207 _length = length; | 207 _length = length; |
| 208 list[length] = null; | 208 list[length] = null; |
| 209 } | 209 } |
| 210 } | 210 } |
| OLD | NEW |