Chromium Code Reviews| 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 491bd4438b81b8f91d52e302cd7deabe038baf1f..8cf25c66897e20d74c49aa7f96efd397ee5ab984 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart |
| @@ -68,6 +68,10 @@ class LinkEntry<T> extends Link<T> { |
| return result; |
| } |
| + Link<T> skip(int n) { |
| + if (n == 0) return this; |
| + return tail.skip(n-1); |
|
ahe
2013/01/09 13:35:46
How about a for loop?
Johnni Winther
2013/01/09 14:29:11
Done.
|
| + } |
| bool get isEmpty => false; |