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

Unified Diff: lib/src/delegate/stream_subscription.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Update version. Created 3 years, 10 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/src/delegate/stream_sink.dart ('k') | lib/src/future_group.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/stream_subscription.dart
diff --git a/lib/src/delegate/stream_subscription.dart b/lib/src/delegate/stream_subscription.dart
index 5fa7b01756a5559b6c804658c4e1f8e897399403..082341225f3a91686c5d91ba367ed9d325c257da 100644
--- a/lib/src/delegate/stream_subscription.dart
+++ b/lib/src/delegate/stream_subscription.dart
@@ -23,11 +23,11 @@ class DelegatingStreamSubscription<T> implements StreamSubscription<T> {
/// regardless of its original generic type, by asserting that its events are
/// instances of `T` whenever they're provided. If they're not, the
/// subscription throws a [CastError].
- static StreamSubscription/*<T>*/ typed/*<T>*/(
+ static StreamSubscription<T> typed<T>(
StreamSubscription subscription) =>
- subscription is StreamSubscription/*<T>*/
+ subscription is StreamSubscription<T>
? subscription
- : new TypeSafeStreamSubscription/*<T>*/(subscription);
+ : new TypeSafeStreamSubscription<T>(subscription);
void onData(void handleData(T data)) {
_source.onData(handleData);
@@ -51,7 +51,7 @@ class DelegatingStreamSubscription<T> implements StreamSubscription<T> {
Future cancel() => _source.cancel();
- Future/*<E>*/ asFuture/*<E>*/([/*=E*/ futureValue]) =>
+ Future<E> asFuture<E>([E futureValue]) =>
_source.asFuture(futureValue);
bool get isPaused => _source.isPaused;
« no previous file with comments | « lib/src/delegate/stream_sink.dart ('k') | lib/src/future_group.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698