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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/util/util.dart

Issue 14022007: Move Iterable implementation to collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Merge to head. Created 7 years, 8 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 | Annotate | Revision Log
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 org_dartlang_compiler_util; 5 library org_dartlang_compiler_util;
6 6
7 import "dart:collection";
7 import 'util_implementation.dart'; 8 import 'util_implementation.dart';
8 import 'characters.dart'; 9 import 'characters.dart';
9 10
10 part 'link.dart'; 11 part 'link.dart';
11 12
12 /** 13 /**
13 * Tagging interface for classes from which source spans can be generated. 14 * Tagging interface for classes from which source spans can be generated.
14 */ 15 */
15 // TODO(johnniwinther): Find a better name. 16 // TODO(johnniwinther): Find a better name.
16 // TODO(ahe): How about "Bolt"? 17 // TODO(ahe): How about "Bolt"?
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 for (int i = 0; i < string.length; i++) { 101 for (int i = 0; i < string.length; i++) {
101 int code = string.codeUnitAt(i); 102 int code = string.codeUnitAt(i);
102 if (code < 0x20 || code == $DEL || code == $DQ || code == $LS || 103 if (code < 0x20 || code == $DEL || code == $DQ || code == $LS ||
103 code == $PS || code == $BACKSLASH || code >= 0x80) { 104 code == $PS || code == $BACKSLASH || code >= 0x80) {
104 writeEscapedOn(string, buffer); 105 writeEscapedOn(string, buffer);
105 return; 106 return;
106 } 107 }
107 } 108 }
108 buffer.write(string); 109 buffer.write(string);
109 } 110 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/util/link.dart ('k') | sdk/lib/collection/collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698