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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart

Issue 104723004: Address late comments from CL 50313007. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Another typo Created 7 years 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 | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
index 9d9a89b3d2d6f10006559f594d83367db75f683e..74f447f811157a2a92e5602f637619fbcbd970ed 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
@@ -560,14 +560,14 @@ class ClassEmitter extends CodeEmitterHelper {
void emitTypeVariableReaders(ClassElement cls, ClassBuilder builder) {
List typeVariables = [];
- ClassElement superclass = cls;
- while (superclass != null) {
- for (TypeVariableType parameter in superclass.typeVariables) {
+ ClassElement currentClass = cls;
+ while (currentClass != null) {
+ for (TypeVariableType parameter in currentClass.typeVariables) {
if (task.readTypeVariables.contains(parameter.element)) {
emitTypeVariableReader(cls, builder, parameter.element);
}
}
- superclass = superclass.superclass;
+ currentClass = currentClass.superclass;
}
}
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_emitter/container_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698