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

Unified Diff: utils/template/token.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 | « utils/template/source.dart ('k') | utils/template/tokenizer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/token.dart
diff --git a/utils/template/token.dart b/utils/template/token.dart
index 8e5b98c7044088b35ca7ddf5fc60e53b7873d2fb..144e39c296449fea5452806edcd2e32e7cbc3ffd 100644
--- a/utils/template/token.dart
+++ b/utils/template/token.dart
@@ -21,7 +21,7 @@ class Token {
: this.source = span.file, this.start = span.start, this.end = span.end;
/** Returns the source text corresponding to this [Token]. */
- String get text() {
+ String get text {
return source.text.substring(start, end);
}
@@ -40,7 +40,7 @@ class Token {
}
/** Returns a [SourceSpan] representing the source location. */
- SourceSpan get span() {
+ SourceSpan get span {
return new SourceSpan(source, start, end);
}
}
« no previous file with comments | « utils/template/source.dart ('k') | utils/template/tokenizer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698