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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart

Issue 750323003: Remove js.ArrayElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add parsing and testing of array holes, make lists non-growable Created 6 years, 1 month 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: pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
index 35133e5e3492369a302843fdb4b37295b2f7b681..ebf2b0bd3459f763fc067fd4da8e6eeacb45a239 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
@@ -305,7 +305,7 @@ class ClassEmitter extends CodeEmitterHelper {
if ((!typeVariableProperties.isEmpty && !hasSuper) ||
(hasSuper && !equalElements(superclass.typeVariables, typeVars))) {
classBuilder.addProperty('<>',
- new jsAst.ArrayInitializer.from(typeVariableProperties));
+ new jsAst.ArrayInitializer(typeVariableProperties.toList()));
}
}
@@ -349,7 +349,7 @@ class ClassEmitter extends CodeEmitterHelper {
types.add(emitter.metadataEmitter.reifyType(interface));
}
enclosingBuilder.addProperty("+$reflectionName",
- new jsAst.ArrayInitializer.from(types.map(js.number)));
+ new jsAst.ArrayInitializer(types.map(js.number).toList()));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698