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 // This file contains the node classes for the internal representations of YAML | 5 // This file contains the node classes for the internal representations of YAML |
6 // documents. These nodes are used for both the serialization tree and the | 6 // documents. These nodes are used for both the serialization tree and the |
7 // representation graph. | 7 // representation graph. |
8 | 8 |
9 /** A tag that indicates the type of a YAML node. */ | 9 /** A tag that indicates the type of a YAML node. */ |
10 class _Tag { | 10 class _Tag { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 String toString() { | 229 String toString() { |
230 var strContent = Strings.join(content.keys. | 230 var strContent = Strings.join(content.keys. |
231 map((k) => '${k}: ${content[k]}'), ', '); | 231 map((k) => '${k}: ${content[k]}'), ', '); |
232 return '$tag {$strContent}'; | 232 return '$tag {$strContent}'; |
233 } | 233 } |
234 | 234 |
235 int get hashCode => super.hashCode ^ _hashCode(content); | 235 int get hashCode => super.hashCode ^ _hashCode(content); |
236 | 236 |
237 visit(_Visitor v) => v.visitMapping(this); | 237 visit(_Visitor v) => v.visitMapping(this); |
238 } | 238 } |
OLD | NEW |