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

Unified Diff: pkg/compiler/lib/src/util/link_implementation.dart

Issue 1192103002: Support serialization of the compiler backbone. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Handle (bypass) external const constructors. Created 5 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/util/link.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/link_implementation.dart
diff --git a/pkg/compiler/lib/src/util/link_implementation.dart b/pkg/compiler/lib/src/util/link_implementation.dart
index 5359102e86f9aa6a39b8a80e16f08a4670e41672..7cea7d929d14ebdba2462700c406be0651c5dda3 100644
--- a/pkg/compiler/lib/src/util/link_implementation.dart
+++ b/pkg/compiler/lib/src/util/link_implementation.dart
@@ -180,7 +180,7 @@ class LinkBuilderImplementation<T> implements LinkBuilder<T> {
return list;
}
- void addLast(T t) {
+ Link<T> addLast(T t) {
length++;
LinkEntry<T> entry = new LinkEntry<T>(t, null);
if (head == null) {
@@ -189,6 +189,7 @@ class LinkBuilderImplementation<T> implements LinkBuilder<T> {
lastLink.tail = entry;
}
lastLink = entry;
+ return entry;
}
bool get isEmpty => length == 0;
« no previous file with comments | « pkg/compiler/lib/src/util/link.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698