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

Unified Diff: utils/tests/pub/command_line_config.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
« no previous file with comments | « utils/tests/archive/reader_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/command_line_config.dart
diff --git a/utils/tests/pub/command_line_config.dart b/utils/tests/pub/command_line_config.dart
index 790e91ec4f5875dc3a25a083366fd18dd47ecf64..71df35e00bf61f3e03e9fe1d6d82251166f2890d 100644
--- a/utils/tests/pub/command_line_config.dart
+++ b/utils/tests/pub/command_line_config.dart
@@ -83,7 +83,7 @@ class CommandLineConfiguration extends Configuration {
if (stack.length == 0) return;
// Figure out the longest path so we know how much to pad.
- int longest = stack.mappedBy((frame) => frame.location.length).max();
+ int longest = stack.map((frame) => frame.location.length).max();
// Print out the stack trace nicely formatted.
for (var frame in stack) {
@@ -108,7 +108,7 @@ class CommandLineConfiguration extends Configuration {
String _indent(String str) {
// TODO(nweiz): Use this simpler code once issue 2980 is fixed.
// return str.replaceAll(new RegExp("^", multiLine: true), " ");
- return Strings.join(str.split("\n").mappedBy((line) => " $line"), "\n");
+ return Strings.join(str.split("\n").map((line) => " $line"), "\n");
}
}
« no previous file with comments | « utils/tests/archive/reader_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698