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

Unified Diff: runtime/lib/regexp_patch.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 | « pkg/intl/lib/bidi_utils.dart ('k') | runtime/lib/string_base.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 92acb79d571c080b000355e39e5041fa0adc7fdd..936a7fee4f9b8f098a762b2089278b659b3ba820 100644
--- a/runtime/lib/regexp_patch.dart
+++ b/runtime/lib/regexp_patch.dart
@@ -5,13 +5,8 @@
class _JSRegExpMatch implements Match {
_JSRegExpMatch(this.regexp, this.str, this._match);
- int start() {
- return _start(0);
- }
-
- int end() {
- return _end(0);
- }
+ int get start => _start(0);
+ int get end => _end(0);
int _start(int groupIdx) {
return _match[(groupIdx * MATCH_PAIR)];
@@ -46,9 +41,7 @@ class _JSRegExpMatch implements Match {
return groupsList;
}
- int groupCount() {
- return regexp._groupCount;
- }
+ int get groupCount => regexp._groupCount;
String get pattern => regexp.pattern;
« no previous file with comments | « pkg/intl/lib/bidi_utils.dart ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698