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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. 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_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 15d5ee9d17fd29547b1f175d25b78ecf4716d811..99e4a2b1404cc258868bdd1e102f0efa31618409 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1835,7 +1835,7 @@ $lazyInitializerLogic
}
List<js.Expression> argNames =
- selector.getOrderedNamedArguments().mappedBy((SourceString name) =>
+ selector.getOrderedNamedArguments().map((SourceString name) =>
js.string(name.slowToString())).toList();
String internalName = namer.invocationMirrorInternalName(selector);
@@ -1856,7 +1856,7 @@ $lazyInitializerLogic
js.string(internalName),
new js.LiteralNumber('$type'),
new js.ArrayInitializer.from(
- parameters.mappedBy((param) => js.use(param.name))
+ parameters.map((param) => js.use(param.name))
.toList()),
new js.ArrayInitializer.from(argNames)])]);
js.Expression function =

Powered by Google App Engine
This is Rietveld 408576698