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

Unified Diff: lib/coreimpl/future_implementation.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/duration_implementation.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/future_implementation.dart
diff --git a/lib/coreimpl/future_implementation.dart b/lib/coreimpl/future_implementation.dart
index 0272fb68fc47e447db303218b8c0a5cfa0e623ea..15e4f2a0f2721f3ca5fa1ae679122b1d9e4e2a49 100644
--- a/lib/coreimpl/future_implementation.dart
+++ b/lib/coreimpl/future_implementation.dart
@@ -52,7 +52,7 @@ class FutureImpl<T> implements Future<T> {
return res;
}
- T get value() {
+ T get value {
if (!isComplete) {
throw new FutureNotCompleteException();
}
@@ -62,25 +62,25 @@ class FutureImpl<T> implements Future<T> {
return _value;
}
- Object get exception() {
+ Object get exception {
if (!isComplete) {
throw new FutureNotCompleteException();
}
return _exception;
}
- Object get stackTrace() {
+ Object get stackTrace {
if (!isComplete) {
throw new FutureNotCompleteException();
}
return _stackTrace;
}
- bool get isComplete() {
+ bool get isComplete {
return _isComplete;
}
- bool get hasValue() {
+ bool get hasValue {
return isComplete && _exception === null;
}
@@ -238,7 +238,7 @@ class CompleterImpl<T> implements Completer<T> {
CompleterImpl() : _futureImpl = new FutureImpl() {}
- Future<T> get future() {
+ Future<T> get future {
return _futureImpl;
}
« no previous file with comments | « lib/coreimpl/duration_implementation.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698