| Index: dart/pkg/compiler/lib/src/util/link_implementation.dart
|
| diff --git a/dart/pkg/compiler/lib/src/util/link_implementation.dart b/dart/pkg/compiler/lib/src/util/link_implementation.dart
|
| index 16997e91d07876a71a438bd91a4e74c108075eb5..5359102e86f9aa6a39b8a80e16f08a4670e41672 100644
|
| --- a/dart/pkg/compiler/lib/src/util/link_implementation.dart
|
| +++ b/dart/pkg/compiler/lib/src/util/link_implementation.dart
|
| @@ -136,6 +136,17 @@ class LinkEntry<T> extends Link<T> {
|
| int get hashCode => throw new UnsupportedError('LinkEntry.hashCode');
|
|
|
| int slowLength() => 1 + tail.slowLength();
|
| +
|
| + Link copyWithout(e) {
|
| + LinkBuilder copy = new LinkBuilder();
|
| + Link link = this;
|
| + for (; !link.isEmpty; link = link.tail) {
|
| + if (link.head != e) {
|
| + copy.addLast(link.head);
|
| + }
|
| + }
|
| + return copy.toLink(link);
|
| + }
|
| }
|
|
|
| class LinkBuilderImplementation<T> implements LinkBuilder<T> {
|
|
|