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

Unified Diff: utils/pub/pubspec.dart

Issue 11638010: Convert /** comments to /// in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years 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 | « utils/pub/pub.dart ('k') | utils/pub/root_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pubspec.dart
diff --git a/utils/pub/pubspec.dart b/utils/pub/pubspec.dart
index 1ba4d06482eee97652fa5372fbfba6aa9b422f9b..8a1931dc6f77ab1ee6268411507751c5dcdf1ecb 100644
--- a/utils/pub/pubspec.dart
+++ b/utils/pub/pubspec.dart
@@ -11,23 +11,15 @@ import 'utils.dart';
import 'version.dart';
import 'yaml/yaml.dart';
-/**
- * The parsed and validated contents of a pubspec file.
- */
+/// The parsed and validated contents of a pubspec file.
class Pubspec {
- /**
- * This package's name.
- */
+ /// This package's name.
final String name;
- /**
- * This package's version.
- */
+ /// This package's version.
final Version version;
- /**
- * The packages this package depends on.
- */
+ /// The packages this package depends on.
final List<PackageRef> dependencies;
/// All pubspec fields. This includes the fields from which other properties
@@ -44,14 +36,12 @@ class Pubspec {
dependencies = <PackageRef>[],
fields = {};
- /** Whether or not the pubspec has no contents. */
+ /// Whether or not the pubspec has no contents.
bool get isEmpty =>
name == null && version == Version.none && dependencies.isEmpty;
- /**
- * Parses the pubspec whose text is [contents]. If the pubspec doesn't define
- * version for itself, it defaults to [Version.none].
- */
+ /// Parses the pubspec whose text is [contents]. If the pubspec doesn't define
+ /// version for itself, it defaults to [Version.none].
factory Pubspec.parse(String contents, SourceRegistry sources) {
var name = null;
var version = Version.none;
@@ -190,4 +180,4 @@ List<PackageRef> _parseDependencies(SourceRegistry sources, yaml) {
});
return dependencies;
-}
+}
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/pub/root_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698