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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/regexp_helper.dart

Issue 2979353002: implement `Invocation.typeArguments` in DDC (Closed)
Patch Set: fix Created 3 years, 5 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 dart._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 List<String> _stringList(List l) => 10 List<String> _stringList(List l) => l == null ? l : new JSArray<String>.of(l);
11 l == null ? l : JS('', 'dart.list(#, #)', l, String);
12 11
13 /** 12 /**
14 * Returns a native version of the RegExp with the global flag set. 13 * Returns a native version of the RegExp with the global flag set.
15 * 14 *
16 * The RegExp's `lastIndex` property is zero when it is returned. 15 * The RegExp's `lastIndex` property is zero when it is returned.
17 * 16 *
18 * The returned regexp is shared, and its `lastIndex` property may be 17 * The returned regexp is shared, and its `lastIndex` property may be
19 * modified by other uses, so the returned regexp must be used immediately 18 * modified by other uses, so the returned regexp must be used immediately
20 * when it's returned, with no user-provided code run in between. 19 * when it's returned, with no user-provided code run in between.
21 */ 20 */
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 _current = null; 227 _current = null;
229 _string = null; // Marks iteration as ended. 228 _string = null; // Marks iteration as ended.
230 return false; 229 return false;
231 } 230 }
232 } 231 }
233 232
234 /** Find the first match of [regExp] in [string] at or after [start]. */ 233 /** Find the first match of [regExp] in [string] at or after [start]. */
235 Match firstMatchAfter(JSSyntaxRegExp regExp, String string, int start) { 234 Match firstMatchAfter(JSSyntaxRegExp regExp, String string, int start) {
236 return regExp._execGlobal(string, start); 235 return regExp._execGlobal(string, start);
237 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698