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

Unified Diff: lib/core/future.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/core/exceptions.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/future.dart
diff --git a/lib/core/future.dart b/lib/core/future.dart
index d0cda97769dcaf6abfa1fca55d770c128d7c13a1..d4afd592043750fd3a7335ddcd13e606eeac63a9 100644
--- a/lib/core/future.dart
+++ b/lib/core/future.dart
@@ -33,14 +33,14 @@ interface Future<T> default FutureImpl<T> {
Future.immediate(T value);
/** The value provided. Throws an exception if [hasValue] is false. */
- T get value();
+ T get value;
/**
* Exception that occurred ([:null:] if no exception occured). This property
* throws a [FutureNotCompleteException] if it is used before this future is
* completes.
*/
- Object get exception();
+ Object get exception;
/**
* The stack trace object associated with the exception that occurred. This
@@ -48,19 +48,19 @@ interface Future<T> default FutureImpl<T> {
* completes. Returns [:null:] if the future completed successfully or a
* stack trace wasn't provided with the exception when it occurred.
*/
- Object get stackTrace();
+ Object get stackTrace;
/**
* Whether the future is complete (either the value is available or there was
* an exception).
*/
- bool get isComplete();
+ bool get isComplete;
/**
* Whether the value is available (meaning [isComplete] is true, and there was
* no exception).
*/
- bool get hasValue();
+ bool get hasValue;
/**
* When this future is complete (either with a value or with an exception),
@@ -163,7 +163,7 @@ interface Completer<T> default CompleterImpl<T> {
Completer();
/** The future that will contain the value produced by this completer. */
- Future get future();
+ Future get future;
/** Supply a value for [future]. */
void complete(T value);
« no previous file with comments | « lib/core/exceptions.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698