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

Unified Diff: sdk/lib/_internal/lib/string_helper.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 | « sdk/lib/_internal/lib/regexp_helper.dart ('k') | sdk/lib/core/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/string_helper.dart
diff --git a/sdk/lib/_internal/lib/string_helper.dart b/sdk/lib/_internal/lib/string_helper.dart
index ba03364e705547ea51c1b5a9b68cfebc8ea7e850..fa046d5e99ff98fe5de7b08e71dc3f5c26c4e421 100644
--- a/sdk/lib/_internal/lib/string_helper.dart
+++ b/sdk/lib/_internal/lib/string_helper.dart
@@ -6,7 +6,7 @@ part of _js_helper;
class StringMatch implements Match {
const StringMatch(int this.start,
- String this.str,
+ String this.input,
String this.pattern);
int get end => start + pattern.length;
@@ -28,8 +28,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 | « sdk/lib/_internal/lib/regexp_helper.dart ('k') | sdk/lib/core/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698