OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart2js.util; | 5 part of dart2js.util; |
6 | 6 |
7 class Link<T> { | 7 class Link<T> { |
8 T get head => throw new StateError("no elements"); | 8 T get head => throw new StateError("no elements"); |
9 Link<T> get tail => null; | 9 Link<T> get tail => null; |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 */ | 138 */ |
139 Link<T> toLink([Link<T> tail = const Link()]); | 139 Link<T> toLink([Link<T> tail = const Link()]); |
140 | 140 |
141 List<T> toList(); | 141 List<T> toList(); |
142 | 142 |
143 void addLast(T t); | 143 void addLast(T t); |
144 | 144 |
145 final int length; | 145 final int length; |
146 final bool isEmpty; | 146 final bool isEmpty; |
147 } | 147 } |
OLD | NEW |