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

Side by Side Diff: utils/pub/yaml/visitor.dart

Issue 11638010: Convert /** comments to /// in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix 80 column limit. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** The visitor pattern for YAML documents. */ 5 /// The visitor pattern for YAML documents.
6 class _Visitor { 6 class _Visitor {
7 /** Returns [alias]. */ 7 /// Returns [alias].
8 visitAlias(_AliasNode alias) => alias; 8 visitAlias(_AliasNode alias) => alias;
9 9
10 /** Returns [scalar]. */ 10 /// Returns [scalar].
11 visitScalar(_ScalarNode scalar) => scalar; 11 visitScalar(_ScalarNode scalar) => scalar;
12 12
13 /** Visits each node in [seq] and returns a list of the results. */ 13 /// Visits each node in [seq] and returns a list of the results.
14 visitSequence(_SequenceNode seq) => seq.content.map((e) => e.visit(this)); 14 visitSequence(_SequenceNode seq) => seq.content.map((e) => e.visit(this));
15 15
16 /** Visits each key and value in [map] and returns a map of the results. */ 16 /// Visits each key and value in [map] and returns a map of the results.
17 visitMapping(_MappingNode map) { 17 visitMapping(_MappingNode map) {
18 var out = new YamlMap(); 18 var out = new YamlMap();
19 for (var key in map.content.keys) { 19 for (var key in map.content.keys) {
20 out[key.visit(this)] = map.content[key].visit(this); 20 out[key.visit(this)] = map.content[key].visit(this);
21 } 21 }
22 return out; 22 return out;
23 } 23 }
24 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698