Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: pkg/compiler/lib/src/util/util.dart

Issue 1783053005: Fix all for-in warnings in dart2js (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« pkg/compiler/lib/src/js_backend/runtime_types.dart ('K') | « pkg/compiler/lib/src/util/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698