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

Unified Diff: sdk/lib/_internal/pub/lib/src/source_registry.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/source/path.dart ('k') | sdk/lib/_internal/pub/lib/src/system_cache.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/source_registry.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source_registry.dart b/sdk/lib/_internal/pub/lib/src/source_registry.dart
index 15c4bc12e0d8c7cd6862d85835d00a76533450bc..ffac4f8d7d8ac0bf43ba1b94b1b5ce005e36bbcc 100644
--- a/sdk/lib/_internal/pub/lib/src/source_registry.dart
+++ b/sdk/lib/_internal/pub/lib/src/source_registry.dart
@@ -24,8 +24,9 @@ class SourceRegistry extends IterableBase<Source> {
return sources.iterator;
}
- /// Sets the default source. This takes a string, which must be the name of a
- /// registered source.
+ /// Sets the default source.
+ ///
+ /// This takes a string, which must be the name of a registered source.
void setDefault(String name) {
if (!_sources.containsKey(name)) {
throw new StateError('Default source $name is not in the registry');
@@ -34,8 +35,10 @@ class SourceRegistry extends IterableBase<Source> {
_default = _sources[name];
}
- /// Registers a new source. This source may not have the same name as a source
- /// that's already been registered.
+ /// Registers a new source.
+ ///
+ /// This source may not have the same name as a source that's already been
+ /// registered.
void register(Source source) {
if (_sources.containsKey(source.name)) {
throw new StateError('Source registry already has a source named '
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/source/path.dart ('k') | sdk/lib/_internal/pub/lib/src/system_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698