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

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

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. 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/native_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
index 43458619d6e5f3c5f85fa9be475aa28b6c14bc58..9400f5f42438f03d72286f25be1959f7b2e9d1b4 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
@@ -161,7 +161,7 @@ function(cls, desc) {
compiler.findHelper(const SourceString('convertDartClosureToJS'));
String closureConverter = backend.namer.isolateAccess(converter);
Set<String> stubParameterNames = new Set<String>.from(
- stubParameters.mappedBy((param) => param.name));
+ stubParameters.map((param) => param.name));
parameters.forEachParameter((Element parameter) {
String name = parameter.name.slowToString();
// If [name] is not in [stubParameters], then the parameter is an optional
@@ -255,7 +255,7 @@ function(cls, desc) {
js.use('Object').dot('prototype').dot(methodName).dot('call')
.callWith(
<js.Expression>[js.use('this')]..addAll(
- parameters.mappedBy((param) => js.use(param.name))))));
+ parameters.map((param) => js.use(param.name))))));
}
js.Block generateMethodBodyWithPrototypeCheckForElement(
@@ -406,7 +406,7 @@ function(cls, desc) {
// [['Node', 'Text|HTMLElement|HTMLDivElement|...'], ...]
js.Expression table =
new js.ArrayInitializer.from(
- preorderDispatchClasses.mappedBy((cls) =>
+ preorderDispatchClasses.map((cls) =>
new js.ArrayInitializer.from([
js.string(toNativeTag(cls)),
tagDefns[cls]])));

Powered by Google App Engine
This is Rietveld 408576698