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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 177963002: Use List instead of Link in the type system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 6 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/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 796fb92fe5325ac452fc2f7412613d8bd882b602..6125eea47fa4772fda26e2f76052b5e29cbbde9f 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -31,10 +31,8 @@ class EnqueueTask extends CompilerTask {
ClassElement cls = element;
cls.ensureResolved(compiler);
container = cls;
- for (var link = cls.computeTypeParameters(compiler);
- !link.isEmpty;
- link = link.tail) {
- addMemberByName(link.head.element);
+ for (DartType parameter in cls.computeTypeParameters(compiler)) {
+ addMemberByName(parameter.element);
}
}
allElementsByName[name] = allElementsByName.putIfAbsent(

Powered by Google App Engine
This is Rietveld 408576698