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

Unified Diff: runtime/lib/string_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 | « runtime/lib/regexp_patch.dart ('k') | sdk/lib/_internal/lib/regexp_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string_patch.dart
diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart
index 2d40f2de1eff3fafe8d2d639562cfac914098f0d..b9ec3c96f7db84c38655f3ba192e563189f1c894 100644
--- a/runtime/lib/string_patch.dart
+++ b/runtime/lib/string_patch.dart
@@ -600,7 +600,7 @@ class _ExternalTwoByteString extends _StringBase implements String {
class _StringMatch implements Match {
const _StringMatch(int this.start,
- String this.str,
+ String this.input,
String this.pattern);
int get end => start + pattern.length;
@@ -622,8 +622,11 @@ class _StringMatch implements Match {
return result;
}
+ // TODO(12843): Remove when grace period is over.
+ String get str => input;
+
final int start;
- final String str;
+ final String input;
final String pattern;
}
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | sdk/lib/_internal/lib/regexp_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698