| 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 and composed YAML document (what the spec calls the | 7 /// Takes a parsed and composed YAML document (what the spec calls the |
| 8 /// "representation graph") and creates native Dart objects that represent that | 8 /// "representation graph") and creates native Dart objects that represent that |
| 9 /// document. | 9 /// document. |
| 10 class _Constructor extends _Visitor { | 10 class _Constructor extends _Visitor { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 if (anchors.containsKey(anchored.anchor)) return anchors[anchored.anchor]; | 47 if (anchors.containsKey(anchored.anchor)) return anchors[anchored.anchor]; |
| 48 } | 48 } |
| 49 | 49 |
| 50 /// Records that [value] is the Dart object representing [anchored]. | 50 /// Records that [value] is the Dart object representing [anchored]. |
| 51 setAnchor(_Node anchored, value) { | 51 setAnchor(_Node anchored, value) { |
| 52 if (anchored.anchor == null) return value; | 52 if (anchored.anchor == null) return value; |
| 53 anchors[anchored.anchor] = value; | 53 anchors[anchored.anchor] = value; |
| 54 return value; | 54 return value; |
| 55 } | 55 } |
| 56 } | 56 } |
| OLD | NEW |