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

Unified Diff: pkg/dartdoc/search.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/dartdoc/mirrors/util.dart ('k') | pkg/fixnum/int64.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/search.dart
diff --git a/pkg/dartdoc/search.dart b/pkg/dartdoc/search.dart
index 342ce6c807e88d5844d2973f1b32ca3ee42d0689..4061590ec588b97f476c7fdadc8144b9f0cb5500 100644
--- a/pkg/dartdoc/search.dart
+++ b/pkg/dartdoc/search.dart
@@ -21,7 +21,7 @@ class SearchText {
: '${searchText.substring(0, 1).toUpperCase()}'
'${searchText.substring(1)}';
- int get length() => text.length;
+ int get length => text.length;
bool isEmpty() => length == 0;
}
@@ -48,25 +48,25 @@ class StringMatch {
'${text.substring(matchEnd)}';
}
- String get matchText() =>
+ String get matchText =>
text.substring(matchOffset, matchEnd);
/**
* Is [:true:] iff [searchText] matches the full [text] case-sensitively.
*/
- bool get isFullMatch() => text == searchText.text;
+ bool get isFullMatch => text == searchText.text;
/**
* Is [:true:] iff [searchText] matches a substring of [text]
* case-sensitively.
*/
- bool get isExactMatch() => matchText == searchText.text;
+ bool get isExactMatch => matchText == searchText.text;
/**
* Is [:true:] iff [searchText] matches a substring of [text] when
* [searchText] is interpreted as camel case.
*/
- bool get isCamelCaseMatch() => matchText == searchText.camelCase;
+ bool get isCamelCaseMatch => matchText == searchText.camelCase;
}
/**
@@ -88,7 +88,7 @@ class Result {
[this.library, this.type, String args, this.prefix])
: this.args = args != null ? '<$args>' : '';
- bool get isTopLevel() => prefix == null && type == null;
+ bool get isTopLevel => prefix == null && type == null;
void addRow(TableElement table) {
if (row != null) return;
« no previous file with comments | « pkg/dartdoc/mirrors/util.dart ('k') | pkg/fixnum/int64.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698