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

Side by Side Diff: tool/input_sdk/private/string_helper.dart

Issue 1170813008: fixes detection of SDK libraries (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 6 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) 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 part of _js_helper; 5 part of dart._js_helper;
6 6
7 class StringMatch implements Match { 7 class StringMatch implements Match {
8 const StringMatch(int this.start, 8 const StringMatch(int this.start,
9 String this.input, 9 String this.input,
10 String this.pattern); 10 String this.pattern);
11 11
12 int get end => start + pattern.length; 12 int get end => start + pattern.length;
13 String operator[](int g) => group(g); 13 String operator[](int g) => group(g);
14 int get groupCount => 0; 14 int get groupCount => 0;
15 15
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } else { 206 } else {
207 checkNull(from); 207 checkNull(from);
208 // TODO(floitsch): implement generic String.replace (with patterns). 208 // TODO(floitsch): implement generic String.replace (with patterns).
209 throw "String.replace(Pattern) UNIMPLEMENTED"; 209 throw "String.replace(Pattern) UNIMPLEMENTED";
210 } 210 }
211 } 211 }
212 212
213 stringJoinUnchecked(array, separator) { 213 stringJoinUnchecked(array, separator) {
214 return JS('String', r'#.join(#)', array, separator); 214 return JS('String', r'#.join(#)', array, separator);
215 } 215 }
OLDNEW
« lib/src/codegen/js_module_item_order.dart ('K') | « tool/input_sdk/private/regexp_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698