| OLD | NEW |
| 1 part of dart.async; | 1 part of dart.async; |
| 2 class _BroadcastStream<T> extends _ControllerStream<T> {_BroadcastStream(_Strea
mControllerLifecycle controller) : super(DEVC$RT.cast(controller, DEVC$RT.type((
_StreamControllerLifecycle<dynamic> _) { | 2 class _BroadcastStream<T> extends _ControllerStream<T> {_BroadcastStream(_Strea
mControllerLifecycle controller) : super(DEVC$RT.cast(controller, DEVC$RT.type((
_StreamControllerLifecycle<dynamic> _) { |
| 3 } | 3 } |
| 4 ), DEVC$RT.type((_StreamControllerLifecycle<T> _) { | 4 ), DEVC$RT.type((_StreamControllerLifecycle<T> _) { |
| 5 } | 5 } |
| 6 ), "CompositeCast", """line 8, column 67 of dart:async/broadcast_stream_controll
er.dart: """, controller is _StreamControllerLifecycle<T>, false)); | 6 ), "CompositeCast", """line 8, column 67 of dart:async/broadcast_stream_controll
er.dart: """, controller is _StreamControllerLifecycle<T>, false)); |
| 7 bool get isBroadcast => true; | 7 bool get isBroadcast => true; |
| 8 } | 8 } |
| 9 abstract class _BroadcastSubscriptionLink {_BroadcastSubscriptionLink _next; | 9 abstract class _BroadcastSubscriptionLink {_BroadcastSubscriptionLink _next; |
| 10 _BroadcastSubscriptionLink _previous; | 10 _BroadcastSubscriptionLink _previous; |
| 11 } | 11 } |
| 12 class _BroadcastSubscription<T> extends _ControllerSubscription<T> implements _
BroadcastSubscriptionLink {static const int _STATE_EVENT_ID = 1; | 12 class _BroadcastSubscription<T> extends _ControllerSubscription<T> implements _
BroadcastSubscriptionLink {static const int _STATE_EVENT_ID = 1; |
| 13 static const int _STATE_FIRING = 2; | 13 static const int _STATE_FIRING = 2; |
| 14 static const int _STATE_REMOVE_AFTER_FIRING = 4; | 14 static const int _STATE_REMOVE_AFTER_FIRING = 4; |
| 15 int _eventState; | 15 int _eventState; |
| 16 _BroadcastSubscriptionLink _next; | 16 _BroadcastSubscriptionLink _next; |
| 17 _BroadcastSubscriptionLink _previous; | 17 _BroadcastSubscriptionLink _previous; |
| 18 _BroadcastSubscription(_StreamControllerLifecycle controller, void onData(T dat
a), Function onError, void onDone(), bool cancelOnError) : super(DEVC$RT.cast(co
ntroller, DEVC$RT.type((_StreamControllerLifecycle<dynamic> _) { | 18 _BroadcastSubscription(_StreamControllerLifecycle controller, void onData(T dat
a), Function onError, void onDone(), bool cancelOnError) : super(DEVC$RT.cast(co
ntroller, DEVC$RT.type((_StreamControllerLifecycle<dynamic> _) { |
| 19 } | 19 } |
| 20 ), DEVC$RT.type((_StreamControllerLifecycle<T> _) { | 20 ), DEVC$RT.type((_StreamControllerLifecycle<T> _) { |
| 21 } | 21 } |
| 22 ), "CompositeCast", """line 36, column 15 of dart:async/broadcast_stream_control
ler.dart: """, controller is _StreamControllerLifecycle<T>, false), onData, onEr
ror, onDone, cancelOnError) { | 22 ), "CompositeCast", """line 36, column 15 of dart:async/broadcast_stream_control
ler.dart: """, controller is _StreamControllerLifecycle<T>, false), onData, onEr
ror, onDone, cancelOnError) { |
| 23 _next = _previous = this; | 23 _next = _previous = this; |
| 24 } | 24 } |
| 25 _BroadcastStreamController get _controller => ((__x2) => DEVC$RT.cast(__x2, DEV
C$RT.type((_StreamControllerLifecycle<T> _) { | 25 _BroadcastStreamController<T> get _controller => ((__x2) => DEVC$RT.cast(__x2,
DEVC$RT.type((_StreamControllerLifecycle<T> _) { |
| 26 } | 26 } |
| 27 ), DEVC$RT.type((_BroadcastStreamController<dynamic> _) { | 27 ), DEVC$RT.type((_BroadcastStreamController<T> _) { |
| 28 } | 28 } |
| 29 ), "ImplicitCast", """line 40, column 49 of dart:async/broadcast_stream_controll
er.dart: """, __x2 is _BroadcastStreamController<dynamic>, true))(super._control
ler); | 29 ), "CompositeCast", """line 40, column 52 of dart:async/broadcast_stream_control
ler.dart: """, __x2 is _BroadcastStreamController<T>, false))(super._controller)
; |
| 30 bool _expectsEvent(int eventId) => (_eventState & _STATE_EVENT_ID) == eventId; | 30 bool _expectsEvent(int eventId) => (_eventState & _STATE_EVENT_ID) == eventId; |
| 31 void _toggleEventId() { | 31 void _toggleEventId() { |
| 32 _eventState ^= _STATE_EVENT_ID; | 32 _eventState ^= _STATE_EVENT_ID; |
| 33 } | 33 } |
| 34 bool get _isFiring => (_eventState & _STATE_FIRING) != 0; | 34 bool get _isFiring => (_eventState & _STATE_FIRING) != 0; |
| 35 void _setRemoveAfterFiring() { | 35 void _setRemoveAfterFiring() { |
| 36 assert (_isFiring); _eventState |= _STATE_REMOVE_AFTER_FIRING; | 36 assert (_isFiring); _eventState |= _STATE_REMOVE_AFTER_FIRING; |
| 37 } | 37 } |
| 38 bool get _removeAfterFiring => (_eventState & _STATE_REMOVE_AFTER_FIRING) != 0; | 38 bool get _removeAfterFiring => (_eventState & _STATE_REMOVE_AFTER_FIRING) != 0; |
| 39 void _onPause() { | 39 void _onPause() { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 ), "CompositeCast", """line 196, column 18 of dart:async/broadcast_stream_contro
ller.dart: """, subscription is _BroadcastSubscription<T>, false)); | 99 ), "CompositeCast", """line 196, column 18 of dart:async/broadcast_stream_contro
ller.dart: """, subscription is _BroadcastSubscription<T>, false)); |
| 100 if (identical(_next, _previous)) { | 100 if (identical(_next, _previous)) { |
| 101 _runGuarded(_onListen); | 101 _runGuarded(_onListen); |
| 102 } | 102 } |
| 103 return DEVC$RT.cast(subscription, DEVC$RT.type((StreamSubscription<dynamic> _)
{ | 103 return DEVC$RT.cast(subscription, DEVC$RT.type((StreamSubscription<dynamic> _)
{ |
| 104 } | 104 } |
| 105 ), DEVC$RT.type((StreamSubscription<T> _) { | 105 ), DEVC$RT.type((StreamSubscription<T> _) { |
| 106 } | 106 } |
| 107 ), "CompositeCast", """line 201, column 12 of dart:async/broadcast_stream_contro
ller.dart: """, subscription is StreamSubscription<T>, false); | 107 ), "CompositeCast", """line 201, column 12 of dart:async/broadcast_stream_contro
ller.dart: """, subscription is StreamSubscription<T>, false); |
| 108 } | 108 } |
| 109 Future _recordCancel(_BroadcastSubscription<T> subscription) { | 109 Future _recordCancel(StreamSubscription<T> subscription) { |
| 110 if (identical(subscription._next, subscription)) return null; | 110 if (identical(subscription._next, subscription)) return null; |
| 111 assert (!identical(subscription._next, subscription)); if (subscription._isFiri
ng) { | 111 assert (!identical(subscription._next, subscription)); if (subscription._isFiri
ng) { |
| 112 subscription._setRemoveAfterFiring(); | 112 subscription._setRemoveAfterFiring(); |
| 113 } | 113 } |
| 114 else { | 114 else { |
| 115 assert (!identical(subscription._next, subscription)); _removeListener(subscript
ion); | 115 assert (!identical(subscription._next, subscription)); _removeListener(DEVC$RT.c
ast(subscription, DEVC$RT.type((StreamSubscription<T> _) { |
| 116 } |
| 117 ), DEVC$RT.type((_BroadcastSubscription<T> _) { |
| 118 } |
| 119 ), "CompositeCast", """line 212, column 23 of dart:async/broadcast_stream_contro
ller.dart: """, subscription is _BroadcastSubscription<T>, false)); |
| 116 if (!_isFiring && _isEmpty) { | 120 if (!_isFiring && _isEmpty) { |
| 117 _callOnCancel(); | 121 _callOnCancel(); |
| 118 } | 122 } |
| 119 } | 123 } |
| 120 return null; | 124 return null; |
| 121 } | 125 } |
| 122 void _recordPause(StreamSubscription<T> subscription) { | 126 void _recordPause(StreamSubscription<T> subscription) { |
| 123 } | 127 } |
| 124 void _recordResume(StreamSubscription<T> subscription) { | 128 void _recordResume(StreamSubscription<T> subscription) { |
| 125 } | 129 } |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 if (_pauseCount > 0) _pauseCount--; | 349 if (_pauseCount > 0) _pauseCount--; |
| 346 } | 350 } |
| 347 Future cancel() { | 351 Future cancel() { |
| 348 return new _Future.immediate(null); | 352 return new _Future.immediate(null); |
| 349 } | 353 } |
| 350 bool get isPaused => _pauseCount > 0; | 354 bool get isPaused => _pauseCount > 0; |
| 351 Future asFuture([Object value]) => new _Future(); | 355 Future asFuture([Object value]) => new _Future(); |
| 352 } | 356 } |
| 353 typedef void __CastType3<T>(_BufferingStreamSubscription<T> __u4); | 357 typedef void __CastType3<T>(_BufferingStreamSubscription<T> __u4); |
| 354 typedef dynamic __CastType5<T>(_BroadcastSubscription<T> __u6); | 358 typedef dynamic __CastType5<T>(_BroadcastSubscription<T> __u6); |
| OLD | NEW |