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

Unified Diff: dart/sdk/lib/async/stream.dart

Issue 11783011: Don't use redirecting factories with type arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | « no previous file | dart/tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/async/stream.dart
diff --git a/dart/sdk/lib/async/stream.dart b/dart/sdk/lib/async/stream.dart
index ffa10233ca043a6f3d0658816d3b15c251e44d4c..68e2588bbab43e4717b253c5116992817a0e4ed8 100644
--- a/dart/sdk/lib/async/stream.dart
+++ b/dart/sdk/lib/async/stream.dart
@@ -30,7 +30,9 @@ abstract class Stream<T> {
* The merged streams are paused and resumed in order to ensure the proper
* order of output events.
*/
- factory Stream.cyclic(Iterable<Stream> sources) = CyclicScheduleStream<T>;
+ factory Stream.cyclic(Iterable<Stream> sources) {
+ return new CyclicScheduleStream<T>(sources);
+ }
/**
* Create a stream that forwards data from the highest priority active source.
@@ -45,7 +47,9 @@ abstract class Stream<T> {
* If a higher priority source stream completes without providing data,
* it will have no effect on lower priority streams.
*/
- factory Stream.superceding(Iterable<Stream<T>> sources) = SupercedeStream<T>;
+ factory Stream.superceding(Iterable<Stream<T>> sources) {
+ return new SupercedeStream<T>(sources);
+ }
/**
* Add a subscription to this stream.
« no previous file with comments | « no previous file | dart/tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698