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

Side by Side Diff: tool/input_sdk/private/regexp_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 // Helper method used by internal libraries. 7 // Helper method used by internal libraries.
8 regExpGetNative(JSSyntaxRegExp regexp) => regexp._nativeRegExp; 8 regExpGetNative(JSSyntaxRegExp regexp) => regexp._nativeRegExp;
9 9
10 /** 10 /**
11 * Returns a native version of the RegExp with the global flag set. 11 * Returns a native version of the RegExp with the global flag set.
12 * 12 *
13 * The RegExp's `lastIndex` property is zero when it is returned. 13 * The RegExp's `lastIndex` property is zero when it is returned.
14 * 14 *
15 * The returned regexp is shared, and its `lastIndex` property may be 15 * The returned regexp is shared, and its `lastIndex` property may be
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 _current = null; 228 _current = null;
229 _string = null; // Marks iteration as ended. 229 _string = null; // Marks iteration as ended.
230 return false; 230 return false;
231 } 231 }
232 } 232 }
233 233
234 /** Find the first match of [regExp] in [string] at or after [start]. */ 234 /** Find the first match of [regExp] in [string] at or after [start]. */
235 Match firstMatchAfter(JSSyntaxRegExp regExp, String string, int start) { 235 Match firstMatchAfter(JSSyntaxRegExp regExp, String string, int start) {
236 return regExp._execGlobal(string, start); 236 return regExp._execGlobal(string, start);
237 } 237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698