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

Unified Diff: lib/coreimpl/queue.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 | « lib/coreimpl/options.dart ('k') | lib/coreimpl/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/queue.dart
diff --git a/lib/coreimpl/queue.dart b/lib/coreimpl/queue.dart
index ef3c5ef1fa73ee53fff068aa10dbbe3ae01ced87..150752a7cf2f7dd81104037aae23210bb15f0545 100644
--- a/lib/coreimpl/queue.dart
+++ b/lib/coreimpl/queue.dart
@@ -52,7 +52,7 @@ class DoubleLinkedQueueEntry<E> {
return _next._asNonSentinelEntry();
}
- E get element() {
+ E get element {
return _element;
}
@@ -86,7 +86,7 @@ class _DoubleLinkedQueueEntrySentinel<E> extends DoubleLinkedQueueEntry<E> {
assert(false);
}
- E get element() {
+ E get element {
throw const EmptyQueueException();
}
}
@@ -152,7 +152,7 @@ class DoubleLinkedQueue<E> implements Queue<E> {
return _sentinel.nextEntry();
}
- int get length() {
+ int get length {
int counter = 0;
forEach(void _(E element) { counter++; });
return counter;
« no previous file with comments | « lib/coreimpl/options.dart ('k') | lib/coreimpl/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698