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

Unified Diff: sdk/lib/_internal/compiler/implementation/js/nodes.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/js/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
index fa7722e75ab2bf5c1e6242d4b4567f358958104d..38fb316445099dd114b8ec4f7b58e16273d40125 100644
--- a/sdk/lib/_internal/compiler/implementation/js/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
@@ -791,8 +791,9 @@ class ArrayInitializer extends Expression {
static List<ArrayElement> _convert(List<Expression> expressions) {
int index = 0;
- return expressions.map(
- (expression) => new ArrayElement(index++, expression));
+ return expressions.mappedBy(
+ (expression) => new ArrayElement(index++, expression))
+ .toList();
}
}
@@ -891,7 +892,8 @@ Call call(Expression target, List<Expression> arguments) {
}
Fun fun(List<String> parameterNames, Block body) {
- return new Fun(parameterNames.map((n) => new Parameter(n)), body);
+ return new Fun(parameterNames.mappedBy((n) => new Parameter(n)).toList(),
+ body);
}
Assignment assign(Expression leftHandSide, Expression value) {

Powered by Google App Engine
This is Rietveld 408576698