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

Unified Diff: utils/pub/yaml/yaml.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/yaml/visitor.dart ('k') | utils/pub/yaml/yaml_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/yaml.dart
diff --git a/utils/pub/yaml/yaml.dart b/utils/pub/yaml/yaml.dart
index 3918743f508fd38d34d9140d0000e7cb7837971a..11984c34d5fe298ea1a375c1f40eabbb5fa90877 100644
--- a/utils/pub/yaml/yaml.dart
+++ b/utils/pub/yaml/yaml.dart
@@ -15,16 +15,14 @@ part 'visitor.dart';
part 'composer.dart';
part 'constructor.dart';
-/**
- * Loads a single document from a YAML string. If the string contains more than
- * one document, this throws an error.
- *
- * The return value is mostly normal Dart objects. However, since YAML mappings
- * support some key types that the default Dart map implementation doesn't
- * (null, NaN, booleans, lists, and maps), all maps in the returned document are
- * YamlMaps. These have a few small behavioral differences from the default Map
- * implementation; for details, see the YamlMap class.
- */
+/// Loads a single document from a YAML string. If the string contains more than
+/// one document, this throws an error.
+///
+/// The return value is mostly normal Dart objects. However, since YAML mappings
+/// support some key types that the default Dart map implementation doesn't
+/// (null, NaN, booleans, lists, and maps), all maps in the returned document
+/// are YamlMaps. These have a few small behavioral differences from the default
+/// Map implementation; for details, see the YamlMap class.
loadYaml(String yaml) {
var stream = loadYamlStream(yaml);
if (stream.length != 1) {
@@ -33,21 +31,19 @@ loadYaml(String yaml) {
return stream[0];
}
-/**
- * Loads a stream of documents from a YAML string.
- *
- * The return value is mostly normal Dart objects. However, since YAML mappings
- * support some key types that the default Dart map implementation doesn't
- * (null, NaN, booleans, lists, and maps), all maps in the returned document are
- * YamlMaps. These have a few small behavioral differences from the default Map
- * implementation; for details, see the YamlMap class.
- */
+/// Loads a stream of documents from a YAML string.
+///
+/// The return value is mostly normal Dart objects. However, since YAML mappings
+/// support some key types that the default Dart map implementation doesn't
+/// (null, NaN, booleans, lists, and maps), all maps in the returned document
+/// are YamlMaps. These have a few small behavioral differences from the default
+/// Map implementation; for details, see the YamlMap class.
List loadYamlStream(String yaml) {
return new _Parser(yaml).l_yamlStream().map((doc) =>
new _Constructor(new _Composer(doc).compose()).construct());
}
-/** An error thrown by the YAML processor. */
+/// An error thrown by the YAML processor.
class YamlException implements Exception {
String msg;
« no previous file with comments | « utils/pub/yaml/visitor.dart ('k') | utils/pub/yaml/yaml_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698