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; | 5 part of yaml; |
6 | 6 |
7 /// Takes a parsed YAML document (what the spec calls the "serialization tree") | 7 /// Takes a parsed YAML document (what the spec calls the "serialization tree") |
8 /// and resolves aliases, resolves tags, and parses scalars to produce the | 8 /// and resolves aliases, resolves tags, and parses scalars to produce the |
9 /// "representation graph". | 9 /// "representation graph". |
10 class _Composer extends _Visitor { | 10 class _Composer extends _Visitor { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 value: double.parse("NaN")); | 164 value: double.parse("NaN")); |
165 } | 165 } |
166 | 166 |
167 return null; | 167 return null; |
168 } | 168 } |
169 | 169 |
170 /// Parses a string scalar. | 170 /// Parses a string scalar. |
171 _ScalarNode parseString(String content) => | 171 _ScalarNode parseString(String content) => |
172 new _ScalarNode(_Tag.yaml("str"), value: content); | 172 new _ScalarNode(_Tag.yaml("str"), value: content); |
173 } | 173 } |
OLD | NEW |