| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart.collection.dev; | 5 part of dart._collection.dev; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Temporary move `toString` methods into this class. | 8 * Temporary move `toString` methods into this class. |
| 9 */ | 9 */ |
| 10 class ToString { | 10 class ToString { |
| 11 // TODO(jjb): visiting list should be an identityHashSet when it exists | 11 // TODO(jjb): visiting list should be an identityHashSet when it exists |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Returns a string representing the specified collection. If the | 14 * Returns a string representing the specified collection. If the |
| 15 * collection is a [List], the returned string looks like this: | 15 * collection is a [List], the returned string looks like this: |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 first = false; | 152 first = false; |
| 153 _emitObject(k, result, visiting); | 153 _emitObject(k, result, visiting); |
| 154 result.add(': '); | 154 result.add(': '); |
| 155 _emitObject(v, result, visiting); | 155 _emitObject(v, result, visiting); |
| 156 }); | 156 }); |
| 157 | 157 |
| 158 result.add('}'); | 158 result.add('}'); |
| 159 visiting.removeLast(); | 159 visiting.removeLast(); |
| 160 } | 160 } |
| 161 } | 161 } |
| OLD | NEW |