Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: sdk/lib/_internal/compiler/implementation/util/link.dart

Issue 12334070: Support runtime check of function types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: New check encoding Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d3f93ca2191f4706f77063c7e69e1a5fe169afa4..53649d327ce0da251e4842a429877079ef4693a4 100644
--- a/sdk/lib/_internal/compiler/implementation/util/link.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/link.dart
@@ -73,7 +73,12 @@ class Link<T> extends Iterable<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()]);
+
void addLast(T t);
final int length;

Powered by Google App Engine
This is Rietveld 408576698