| Index: sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart b/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
|
| index 2f9ea8414d63179db530781e952811e3671e5790..b82949c3584ee4ef3e94c445646fca7cfc5947a5 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
|
| @@ -81,12 +81,8 @@ class LinkEntry<T> extends Link<T> {
|
|
|
| bool get isEmpty => false;
|
|
|
| - List<T> toList() {
|
| - List<T> list = new List<T>();
|
| - for (Link<T> link = this; !link.isEmpty; link = link.tail) {
|
| - list.addLast(link.head);
|
| - }
|
| - return list;
|
| + List<T> toList({ bool growable: false }) {
|
| + return new List<T>.from(this, growable: growable);
|
| }
|
|
|
| void forEach(void f(T element)) {
|
|
|