Chromium Code Reviews| Index: sdk/lib/_internal/pub/lib/src/source.dart |
| diff --git a/sdk/lib/_internal/pub/lib/src/source.dart b/sdk/lib/_internal/pub/lib/src/source.dart |
| index c978221c29d1aac8551886aee4752231a9db8e34..53823bc1e83321d31ebff7b9ea58eac99083cab9 100644 |
| --- a/sdk/lib/_internal/pub/lib/src/source.dart |
| +++ b/sdk/lib/_internal/pub/lib/src/source.dart |
| @@ -227,6 +227,13 @@ abstract class Source { |
| return description; |
| } |
| + /// When a [LockFile] is serialized, it uses this method to get the |
| + /// [description] in the right format. [rootPath] references the containing |
| + /// directory of the root package. |
| + dynamic serializeDescription(String rootPath, description) { |
|
Bob Nystrom
2013/10/28 22:13:32
"rootPath" -> "containingPath" to match parseDescr
Anton Moiseev
2013/11/03 11:11:43
Done.
|
| + return description; |
| + } |
| + |
| /// Returns whether or not [description1] describes the same package as |
| /// [description2] for this source. This method should be light-weight. It |
| /// doesn't need to validate that either package exists. |