Chromium Code Reviews

Unified Diff: sdk/lib/_internal/pub/lib/src/source/path.dart

Issue 113453005: Add stack chain support to pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/lib/src/source/path.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source/path.dart b/sdk/lib/_internal/pub/lib/src/source/path.dart
index 76892e1e6528a26573858f4073dff48b9382476a..27f129722408936a50f11a2ae065ba3ab335b1ea 100644
--- a/sdk/lib/_internal/pub/lib/src/source/path.dart
+++ b/sdk/lib/_internal/pub/lib/src/source/path.dart
@@ -20,7 +20,7 @@ class PathSource extends Source {
final shouldCache = false;
Future<Pubspec> describeUncached(PackageId id) {
- return new Future.sync(() {
+ return syncFuture(() {
var dir = _validatePath(id.name, id.description);
return new Pubspec.load(dir, systemCache.sources,
expectedName: id.name);
@@ -35,7 +35,7 @@ class PathSource extends Source {
}
Future<bool> get(PackageId id, String destination) {
- return new Future.sync(() {
+ return syncFuture(() {
try {
var dir = _validatePath(id.name, id.description);
createPackageSymlink(id.name, dir, destination,

Powered by Google App Engine