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

Unified Diff: sdk/lib/_internal/pub/lib/src/entrypoint.dart

Issue 581283003: Get rid of Chain.track in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « sdk/lib/_internal/pub/lib/src/dart.dart ('k') | sdk/lib/_internal/pub/lib/src/global_packages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart
diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
index 8ecaff6c98e4b67928116b5e791c4a7a42280e2b..13aa2f63bd3669a61f6a4908d199f64697e85b4b 100644
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
@@ -329,7 +329,7 @@ class Entrypoint {
if (id.isRoot) return new Future.value(id);
var source = cache.sources[id.source];
- return syncFuture(() {
+ return new Future.sync(() {
if (!_packageSymlinks) {
if (source is! CachedSource) return null;
return source.downloadToSystemCache(id);
@@ -394,7 +394,7 @@ class Entrypoint {
/// Gets dependencies if the lockfile is out of date with respect to the
/// pubspec.
Future ensureLockFileIsUpToDate() {
- return syncFuture(() {
+ return new Future.sync(() {
// If we don't have a current lock file, we definitely need to install.
if (!_isLockFileUpToDate(lockFile)) {
if (lockFileExists) {
@@ -435,7 +435,7 @@ class Entrypoint {
Future<PackageGraph> loadPackageGraph([SolveResult result]) {
if (_packageGraph != null) return new Future.value(_packageGraph);
- return syncFuture(() {
+ return new Future.sync(() {
if (result != null) {
return Future.wait(result.packages.map((id) {
return cache.sources[id.source].getDirectory(id)
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/dart.dart ('k') | sdk/lib/_internal/pub/lib/src/global_packages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698