Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 library dart2js.util; | 5 library dart2js.util; |
| 6 | 6 |
| 7 import 'util_implementation.dart'; | 7 import 'util_implementation.dart'; |
| 8 import 'characters.dart'; | 8 import 'characters.dart'; |
| 9 import 'dart:collection' show IterableMixin; | |
|
Siggi Cherem (dart-lang)
2016/03/12 00:40:19
drop
sra1
2016/03/12 00:44:20
Done.
| |
| 9 | 10 |
| 10 export 'setlet.dart'; | 11 export 'setlet.dart'; |
| 11 export 'maplet.dart'; | 12 export 'maplet.dart'; |
| 12 export 'emptyset.dart'; | 13 export 'emptyset.dart'; |
| 13 | 14 |
| 14 part 'indentation.dart'; | 15 part 'indentation.dart'; |
| 15 part 'link.dart'; | 16 part 'link.dart'; |
| 16 | 17 |
| 17 /// Helper functions for creating hash codes. | 18 /// Helper functions for creating hash codes. |
| 18 class Hashing { | 19 class Hashing { |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 if (usedNames.contains(suggestedName)) { | 218 if (usedNames.contains(suggestedName)) { |
| 218 int counter = 0; | 219 int counter = 0; |
| 219 while (usedNames.contains(result)) { | 220 while (usedNames.contains(result)) { |
| 220 counter++; | 221 counter++; |
| 221 result = "$suggestedName$counter"; | 222 result = "$suggestedName$counter"; |
| 222 } | 223 } |
| 223 } | 224 } |
| 224 usedNames.add(result); | 225 usedNames.add(result); |
| 225 return result; | 226 return result; |
| 226 } | 227 } |
| OLD | NEW |