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

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: Created 6 years, 10 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 f4ee00c4b978e1839a4aab63d3a1126659b6bac5..6fc98bcbc05e8c0154ed1ae38051a0856d4fccff 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -37,10 +37,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