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

Unified Diff: sdk/lib/_internal/pub/lib/src/solver/version_solver.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
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/solver/solve_report.dart ('k') | sdk/lib/_internal/pub/lib/src/source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/solver/version_solver.dart
diff --git a/sdk/lib/_internal/pub/lib/src/solver/version_solver.dart b/sdk/lib/_internal/pub/lib/src/solver/version_solver.dart
index 0803f81cb9dfa22d2ef1d13a2ba2d7237ff2c18d..99ae3a2ddb8beaac6f15042f3186ac5470d64167 100644
--- a/sdk/lib/_internal/pub/lib/src/solver/version_solver.dart
+++ b/sdk/lib/_internal/pub/lib/src/solver/version_solver.dart
@@ -64,9 +64,10 @@ class SolveResult {
final SolveFailure error;
/// The number of solutions that were attempted before either finding a
- /// successful solution or exhausting all options. In other words, one more
- /// than the number of times it had to backtrack because it found an invalid
- /// solution.
+ /// successful solution or exhausting all options.
+ ///
+ /// In other words, one more than the number of times it had to backtrack
+ /// because it found an invalid solution.
final int attemptedSolutions;
final SourceRegistry _sources;
@@ -106,6 +107,7 @@ class SolveResult {
}
/// Maintains a cache of previously-requested data: pubspecs and version lists.
+///
/// Used to avoid requesting the same pubspec from the server repeatedly.
class PubspecCache {
final SourceRegistry _sources;
@@ -277,12 +279,14 @@ class Dependency {
/// Base class for all failures that can occur while trying to resolve versions.
abstract class SolveFailure implements ApplicationException {
- /// The name of the package whose version could not be solved. Will be `null`
- /// if the failure is not specific to one package.
+ /// The name of the package whose version could not be solved.
+ ///
+ /// Will be `null` if the failure is not specific to one package.
final String package;
- /// The known dependencies on [package] at the time of the failure. Will be
- /// an empty collection if the failure is not specific to one package.
+ /// The known dependencies on [package] at the time of the failure.
+ ///
+ /// Will be an empty collection if the failure is not specific to one package.
final Iterable<Dependency> dependencies;
final innerError = null;
@@ -319,8 +323,9 @@ abstract class SolveFailure implements ApplicationException {
return buffer.toString();
}
- /// Describes a dependency's reference in the output message. Override this
- /// to highlight which aspect of [dep] led to the failure.
+ /// Describes a dependency's reference in the output message.
+ ///
+ /// Override this to highlight which aspect of [dep] led to the failure.
String _describeDependency(PackageDep dep) =>
"depends on version ${dep.constraint}";
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/solver/solve_report.dart ('k') | sdk/lib/_internal/pub/lib/src/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698