OLD | NEW |
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 part of yaml; |
| 6 |
5 /** | 7 /** |
6 * Takes a parsed YAML document (what the spec calls the "serialization tree") | 8 * Takes a parsed YAML document (what the spec calls the "serialization tree") |
7 * and resolves aliases, resolves tags, and parses scalars to produce the | 9 * and resolves aliases, resolves tags, and parses scalars to produce the |
8 * "representation graph". | 10 * "representation graph". |
9 */ | 11 */ |
10 class _Composer extends _Visitor { | 12 class _Composer extends _Visitor { |
11 /** The root node of the serialization tree. */ | 13 /** The root node of the serialization tree. */ |
12 _Node root; | 14 _Node root; |
13 | 15 |
14 /** | 16 /** |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 value: Math.parseDouble("NaN")); | 174 value: Math.parseDouble("NaN")); |
173 } | 175 } |
174 | 176 |
175 return null; | 177 return null; |
176 } | 178 } |
177 | 179 |
178 /** Parses a string scalar. */ | 180 /** Parses a string scalar. */ |
179 _ScalarNode parseString(String content) => | 181 _ScalarNode parseString(String content) => |
180 new _ScalarNode(_Tag.yaml("str"), value: content); | 182 new _ScalarNode(_Tag.yaml("str"), value: content); |
181 } | 183 } |
OLD | NEW |