Index: sdk/lib/_internal/compiler/implementation/util/link.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/util/link.dart b/sdk/lib/_internal/compiler/implementation/util/link.dart |
index 29bc4c61d084b6f0b15a061984db9693c62c5db8..742c85a4558e6bbc20dd21b060449a88eb6926f3 100644 |
--- a/sdk/lib/_internal/compiler/implementation/util/link.dart |
+++ b/sdk/lib/_internal/compiler/implementation/util/link.dart |
@@ -107,7 +107,12 @@ class Link<T> { |
abstract class LinkBuilder<T> { |
factory LinkBuilder() = LinkBuilderImplementation; |
- Link<T> toLink(); |
+ /** |
+ * Prepends all elements added to the builder to [tail]. The resulting list is |
+ * returned and the builder is cleared. |
+ */ |
+ Link<T> toLink([Link<T> tail = const Link()]); |
karlklose
2013/06/20 07:32:55
Is there more than one place we use it? And is the
Johnni Winther
2013/06/21 12:19:15
There is only one use case. There it is used to ad
|
+ |
void addLast(T t); |
final int length; |