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

Unified Diff: lib/compiler/implementation/lib/string_helper.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 | « lib/compiler/implementation/lib/coreimpl_patch.dart ('k') | lib/core/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/string_helper.dart
diff --git a/lib/compiler/implementation/lib/string_helper.dart b/lib/compiler/implementation/lib/string_helper.dart
index 9eb839435d13bad5ba2e22fc42063386d39da6de..eaf132c1b25710435aa79aa800baa06be5f64fa1 100644
--- a/lib/compiler/implementation/lib/string_helper.dart
+++ b/lib/compiler/implementation/lib/string_helper.dart
@@ -3,14 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
class StringMatch implements Match {
- const StringMatch(int this._start,
+ const StringMatch(int this.start,
String this.str,
String this.pattern);
- int start() => _start;
- int end() => _start + pattern.length;
+ int get end => start + pattern.length;
String operator[](int g) => group(g);
- int groupCount() => 0;
+ int get groupCount => 0;
String group(int group_) {
if (group_ != 0) {
@@ -27,7 +26,7 @@ class StringMatch implements Match {
return result;
}
- final int _start;
+ final int start;
final String str;
final String pattern;
}
« no previous file with comments | « lib/compiler/implementation/lib/coreimpl_patch.dart ('k') | lib/core/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698