| 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 /** | 5 /** |
| 6 * This class wraps behaves almost identically to the normal Dart Map | 6 * This class wraps behaves almost identically to the normal Dart Map |
| 7 * implementation, with the following differences: | 7 * implementation, with the following differences: |
| 8 * | 8 * |
| 9 * * It allows null, NaN, boolean, list, and map keys. | 9 * * It allows null, NaN, boolean, list, and map keys. |
| 10 * * It defines `==` structurally. That is, `yamlMap1 == yamlMap2` if they have | 10 * * It defines `==` structurally. That is, `yamlMap1 == yamlMap2` if they have |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 for (var e in obj) { | 105 for (var e in obj) { |
| 106 hash ^= _hashCode(e, parents); | 106 hash ^= _hashCode(e, parents); |
| 107 } | 107 } |
| 108 return hash; | 108 return hash; |
| 109 } | 109 } |
| 110 return obj.hashCode; | 110 return obj.hashCode; |
| 111 } finally { | 111 } finally { |
| 112 parents.removeLast(); | 112 parents.removeLast(); |
| 113 } | 113 } |
| 114 } | 114 } |
| OLD | NEW |