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

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

Issue 344493003: Update doc comments to follow style guide. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
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 c6d20cd37c5c27103a9a7ae2c512010d29e35bb6..4a92d770b7485159d8a00b082a32ba8089dcee37 100644
--- a/sdk/lib/_internal/pub/lib/src/source/path.dart
+++ b/sdk/lib/_internal/pub/lib/src/source/path.dart
@@ -46,10 +46,11 @@ class PathSource extends Source {
Future<String> getDirectory(PackageId id) =>
newFuture(() => _validatePath(id.name, id.description));
- /// 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
- /// was relative.
+ /// 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 was relative.
///
/// A path coming from a pubspec is a simple string. From a lock file, it's
/// an expanded {"path": ..., "relative": ...} map.
@@ -95,9 +96,10 @@ class PathSource extends Source {
};
}
- /// Serializes path dependency's [description]. For the descriptions where
- /// `relative` attribute is `true`, tries to make `path` relative to the
- /// specified [containingPath].
+ /// Serializes path dependency's [description].
+ ///
+ /// For the descriptions where `relative` attribute is `true`, tries to make
+ /// `path` relative to the specified [containingPath].
dynamic serializeDescription(String containingPath, description) {
if (description["relative"]) {
return {
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/source/hosted.dart ('k') | sdk/lib/_internal/pub/lib/src/source_registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698