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

Unified Diff: runtime/lib/regexp_patch.dart

Issue 23490008: Fix implementations of Match too, to use "input", not "str". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/string_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp_patch.dart
diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
index 2fdee65e3a8c8ae9e323714b951c9c6c6e8bc4e0..909b801cf8415fbd1eebcc3bf23f5392fc43ba40 100644
--- a/runtime/lib/regexp_patch.dart
+++ b/runtime/lib/regexp_patch.dart
@@ -13,7 +13,7 @@ patch class RegExp {
}
class _JSRegExpMatch implements Match {
- _JSRegExpMatch(this._regexp, this.str, this._match);
+ _JSRegExpMatch(this._regexp, this.input, this._match);
int get start => _start(0);
int get end => _end(0);
@@ -36,7 +36,7 @@ class _JSRegExpMatch implements Match {
assert(endIndex == -1);
return null;
}
- return str._substringUnchecked(startIndex, endIndex);
+ return input._substringUnchecked(startIndex, endIndex);
}
String operator [](int groupIdx) {
@@ -55,8 +55,11 @@ class _JSRegExpMatch implements Match {
Pattern get pattern => _regexp;
+ // TODO(12843): Remove when grace period is over.
+ String get str => input;
+
final RegExp _regexp;
- final String str;
+ final String input;
final List<int> _match;
static const int _MATCH_PAIR = 2;
}
« no previous file with comments | « no previous file | runtime/lib/string_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698