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

Unified Diff: utils/pub/entrypoint.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
« no previous file with comments | « utils/pub/command_lish.dart ('k') | utils/pub/hosted_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/entrypoint.dart
diff --git a/utils/pub/entrypoint.dart b/utils/pub/entrypoint.dart
index 30bfeb1650a37f6af89274ae9180f255b30578eb..d562997f9aae2890a4404fb63b601072c6e79d05 100644
--- a/utils/pub/entrypoint.dart
+++ b/utils/pub/entrypoint.dart
@@ -130,7 +130,7 @@ class Entrypoint {
/// [packageVersions], and writes a [LockFile].
Future _installDependencies(List<PackageId> packageVersions) {
return cleanDir(path).then((_) {
- return Future.wait(packageVersions.mappedBy((id) {
+ return Future.wait(packageVersions.map((id) {
if (id.isRoot) return new Future.immediate(id);
return install(id);
}));
@@ -207,7 +207,7 @@ class Entrypoint {
return _linkSecondaryPackageDir(dir)
.then((_) => _listDirWithoutPackages(dir))
.then((files) {
- return Future.wait(files.mappedBy((file) {
+ return Future.wait(files.map((file) {
return dirExists(file).then((isDir) {
if (!isDir) return;
return _linkSecondaryPackageDir(file);
@@ -222,7 +222,7 @@ class Entrypoint {
/// files and `package` files.
Future<List<String>> _listDirWithoutPackages(dir) {
return listDir(dir).then((files) {
- return Future.wait(files.mappedBy((file) {
+ return Future.wait(files.map((file) {
if (basename(file) == 'packages') return new Future.immediate([]);
return dirExists(file).then((isDir) {
if (!isDir) return [];
« no previous file with comments | « utils/pub/command_lish.dart ('k') | utils/pub/hosted_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698