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

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

Issue 10339009: Move Yaml into utils/pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/pub/yaml/constructor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Takes a parsed YAML document (what the spec calls the "serialization tree") 6 * Takes a parsed YAML document (what the spec calls the "serialization tree")
7 * and resolves aliases, resolves tags, and parses scalars to produce the 7 * and resolves aliases, resolves tags, and parses scalars to produce the
8 * "representation graph". 8 * "representation graph".
9 */ 9 */
10 class _Composer extends _Visitor { 10 class _Composer extends _Visitor {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 value: Math.parseDouble("NaN")); 168 value: Math.parseDouble("NaN"));
169 } 169 }
170 170
171 return null; 171 return null;
172 } 172 }
173 173
174 /** Parses a string scalar. */ 174 /** Parses a string scalar. */
175 _ScalarNode parseString(String content) => 175 _ScalarNode parseString(String content) =>
176 new _ScalarNode(_Tag.yaml("str"), value: content); 176 new _ScalarNode(_Tag.yaml("str"), value: content);
177 } 177 }
OLDNEW
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/pub/yaml/constructor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698