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; |
-} |
+} |