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

Unified Diff: utils/pub/yaml/constructor.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/composer.dart ('k') | utils/pub/yaml/deep_equals.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/constructor.dart
diff --git a/utils/pub/yaml/constructor.dart b/utils/pub/yaml/constructor.dart
index 5ea24be5bcb27bd6d94f4b1a3e3e34d8824d39af..73a62a86f5be30261f9221b1ab83b45648e961eb 100644
--- a/utils/pub/yaml/constructor.dart
+++ b/utils/pub/yaml/constructor.dart
@@ -4,27 +4,25 @@
part of yaml;
-/**
- * Takes a parsed and composed YAML document (what the spec calls the
- * "representation graph") and creates native Dart objects that represent that
- * document.
- */
+/// Takes a parsed and composed YAML document (what the spec calls the
+/// "representation graph") and creates native Dart objects that represent that
+/// document.
class _Constructor extends _Visitor {
- /** The root node of the representation graph. */
+ /// The root node of the representation graph.
_Node root;
- /** Map from anchor names to the most recent Dart node with that anchor. */
+ /// Map from anchor names to the most recent Dart node with that anchor.
Map<String, dynamic> anchors;
_Constructor(this.root) : this.anchors = {};
- /** Runs the Constructor to produce a Dart object. */
+ /// Runs the Constructor to produce a Dart object.
construct() => root.visit(this);
- /** Returns the value of a scalar. */
+ /// Returns the value of a scalar.
visitScalar(_ScalarNode scalar) => scalar.value;
- /** Converts a sequence into a List of Dart objects. */
+ /// Converts a sequence into a List of Dart objects.
visitSequence(_SequenceNode seq) {
var anchor = getAnchor(seq);
if (anchor != null) return anchor;
@@ -33,7 +31,7 @@ class _Constructor extends _Visitor {
return dartSeq;
}
- /** Converts a mapping into a Map of Dart objects. */
+ /// Converts a mapping into a Map of Dart objects.
visitMapping(_MappingNode map) {
var anchor = getAnchor(map);
if (anchor != null) return anchor;
@@ -42,16 +40,14 @@ class _Constructor extends _Visitor {
return dartMap;
}
- /**
- * Returns the Dart object that already represents [anchored], if such a thing
- * exists.
- */
+ /// Returns the Dart object that already represents [anchored], if such a
+ /// thing exists.
getAnchor(_Node anchored) {
if (anchored.anchor == null) return null;
if (anchors.containsKey(anchored.anchor)) return anchors[anchored.anchor];
}
- /** Records that [value] is the Dart object representing [anchored]. */
+ /// Records that [value] is the Dart object representing [anchored].
setAnchor(_Node anchored, value) {
if (anchored.anchor == null) return value;
anchors[anchored.anchor] = value;
« no previous file with comments | « utils/pub/yaml/composer.dart ('k') | utils/pub/yaml/deep_equals.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698