Chromium Code Reviews| 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 809481e5e1ed23ad8ce8108a286ce8c538dc81dc..6aa39c81135515c5a4db9c7d90db419e23a8fea0 100644 |
| --- a/sdk/lib/_internal/pub/lib/src/source/path.dart |
| +++ b/sdk/lib/_internal/pub/lib/src/source/path.dart |
| @@ -52,6 +52,13 @@ class PathSource extends Source { |
| }); |
| } |
| + Future<String> getDirectory(PackageId id) { |
| + return new Future(() { |
|
nweiz
2013/07/25 22:58:58
newFuture
Bob Nystrom
2013/07/26 20:20:11
Done.
|
| + _validatePath(id.name, id.description); |
| + return id.description["path"]; |
| + }); |
| + } |
| + |
| /// Parses a path dependency. This takes in a path string and returns a map. |
| /// The "path" key will be the original path but resolved relative to the |
| /// containing path. The "relative" key will be `true` if the original path |