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

Unified Diff: samples/third_party/dromaeo/common/BenchUtil.dart

Issue 11266050: Rename regexp methods to getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and update status files with co19 issue number. Created 8 years, 2 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 | « samples/markdown/inline_parser.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/common/BenchUtil.dart
diff --git a/samples/third_party/dromaeo/common/BenchUtil.dart b/samples/third_party/dromaeo/common/BenchUtil.dart
index 6dd5cce2fc3f561f06b541c282e4f09acc8039dc..a1744a278e64a3cd315e23d09cb81b3e4b58681a 100644
--- a/samples/third_party/dromaeo/common/BenchUtil.dart
+++ b/samples/third_party/dromaeo/common/BenchUtil.dart
@@ -71,9 +71,9 @@ class BenchUtil {
int pos = 0;
for (Match match in new RegExp(pattern).allMatches(s)) {
- sb.add(s.substring(pos, match.start()));
+ sb.add(s.substring(pos, match.start));
sb.add(replacement(match));
- pos = match.end();
+ pos = match.end;
}
sb.add(s.substring(pos));
« no previous file with comments | « samples/markdown/inline_parser.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698