OLD | NEW |
1 dart_library.library('dart/async', null, /* Imports */[ | 1 dart_library.library('dart/async', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart/_runtime', |
3 'dart/core', | 3 'dart/core', |
4 'dart/_internal', | 4 'dart/_internal', |
5 'dart/collection' | 5 'dart/collection' |
6 ], /* Lazy imports */[ | 6 ], /* Lazy imports */[ |
7 'dart/_isolate_helper' | 7 'dart/_isolate_helper' |
8 ], function(exports, dart, core, _internal, collection, _isolate_helper) { | 8 ], function(exports, dart, core, _internal, collection, _isolate_helper) { |
9 'use strict'; | 9 'use strict'; |
10 let dartx = dart.dartx; | 10 let dartx = dart.dartx; |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 distinct: [Stream$(T), [], [dart.functionType(core.bool, [T, T])]], | 750 distinct: [Stream$(T), [], [dart.functionType(core.bool, [T, T])]], |
751 firstWhere: [Future, [dart.functionType(core.bool, [T])], {defaultValue:
dart.functionType(core.Object, [])}], | 751 firstWhere: [Future, [dart.functionType(core.bool, [T])], {defaultValue:
dart.functionType(core.Object, [])}], |
752 lastWhere: [Future, [dart.functionType(core.bool, [T])], {defaultValue:
dart.functionType(core.Object, [])}], | 752 lastWhere: [Future, [dart.functionType(core.bool, [T])], {defaultValue:
dart.functionType(core.Object, [])}], |
753 singleWhere: [Future$(T), [dart.functionType(core.bool, [T])]], | 753 singleWhere: [Future$(T), [dart.functionType(core.bool, [T])]], |
754 elementAt: [Future$(T), [core.int]], | 754 elementAt: [Future$(T), [core.int]], |
755 timeout: [Stream$(), [core.Duration], {onTimeout: dart.functionType(dart
.void, [EventSink])}] | 755 timeout: [Stream$(), [core.Duration], {onTimeout: dart.functionType(dart
.void, [EventSink])}] |
756 }) | 756 }) |
757 }); | 757 }); |
758 return Stream; | 758 return Stream; |
759 }); | 759 }); |
760 let Stream = Stream$(); | 760 const Stream = Stream$(); |
761 const _createSubscription = Symbol('_createSubscription'); | 761 const _createSubscription = Symbol('_createSubscription'); |
762 const _onListen = Symbol('_onListen'); | 762 const _onListen = Symbol('_onListen'); |
763 const _StreamImpl$ = dart.generic(function(T) { | 763 const _StreamImpl$ = dart.generic(function(T) { |
764 class _StreamImpl extends Stream$(T) { | 764 class _StreamImpl extends Stream$(T) { |
765 _StreamImpl() { | 765 _StreamImpl() { |
766 super.Stream(); | 766 super.Stream(); |
767 } | 767 } |
768 listen(onData, opts) { | 768 listen(onData, opts) { |
769 dart.as(onData, dart.functionType(dart.void, [T])); | 769 dart.as(onData, dart.functionType(dart.void, [T])); |
770 let onError = opts && 'onError' in opts ? opts.onError : null; | 770 let onError = opts && 'onError' in opts ? opts.onError : null; |
(...skipping 14 matching lines...) Expand all Loading... |
785 } | 785 } |
786 dart.setSignature(_StreamImpl, { | 786 dart.setSignature(_StreamImpl, { |
787 methods: () => ({ | 787 methods: () => ({ |
788 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], | 788 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], |
789 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], | 789 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], |
790 [_onListen]: [dart.void, [StreamSubscription]] | 790 [_onListen]: [dart.void, [StreamSubscription]] |
791 }) | 791 }) |
792 }); | 792 }); |
793 return _StreamImpl; | 793 return _StreamImpl; |
794 }); | 794 }); |
795 let _StreamImpl = _StreamImpl$(); | 795 const _StreamImpl = _StreamImpl$(); |
796 const _controller = Symbol('_controller'); | 796 const _controller = Symbol('_controller'); |
797 const _subscribe = Symbol('_subscribe'); | 797 const _subscribe = Symbol('_subscribe'); |
798 const _ControllerStream$ = dart.generic(function(T) { | 798 const _ControllerStream$ = dart.generic(function(T) { |
799 class _ControllerStream extends _StreamImpl$(T) { | 799 class _ControllerStream extends _StreamImpl$(T) { |
800 _ControllerStream(controller) { | 800 _ControllerStream(controller) { |
801 this[_controller] = controller; | 801 this[_controller] = controller; |
802 } | 802 } |
803 [_createSubscription](onData, onError, onDone, cancelOnError) { | 803 [_createSubscription](onData, onError, onDone, cancelOnError) { |
804 dart.as(onData, dart.functionType(dart.void, [T])); | 804 dart.as(onData, dart.functionType(dart.void, [T])); |
805 dart.as(onDone, dart.functionType(dart.void, [])); | 805 dart.as(onDone, dart.functionType(dart.void, [])); |
(...skipping 11 matching lines...) Expand all Loading... |
817 } | 817 } |
818 dart.setSignature(_ControllerStream, { | 818 dart.setSignature(_ControllerStream, { |
819 constructors: () => ({_ControllerStream: [_ControllerStream$(T), [_StreamC
ontrollerLifecycle$(T)]]}), | 819 constructors: () => ({_ControllerStream: [_ControllerStream$(T), [_StreamC
ontrollerLifecycle$(T)]]}), |
820 methods: () => ({ | 820 methods: () => ({ |
821 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], | 821 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], |
822 '==': [core.bool, [core.Object]] | 822 '==': [core.bool, [core.Object]] |
823 }) | 823 }) |
824 }); | 824 }); |
825 return _ControllerStream; | 825 return _ControllerStream; |
826 }); | 826 }); |
827 let _ControllerStream = _ControllerStream$(); | 827 const _ControllerStream = _ControllerStream$(); |
828 const _BroadcastStream$ = dart.generic(function(T) { | 828 const _BroadcastStream$ = dart.generic(function(T) { |
829 class _BroadcastStream extends _ControllerStream$(T) { | 829 class _BroadcastStream extends _ControllerStream$(T) { |
830 _BroadcastStream(controller) { | 830 _BroadcastStream(controller) { |
831 super._ControllerStream(dart.as(controller, _StreamControllerLifecycle$(
T))); | 831 super._ControllerStream(dart.as(controller, _StreamControllerLifecycle$(
T))); |
832 } | 832 } |
833 get isBroadcast() { | 833 get isBroadcast() { |
834 return true; | 834 return true; |
835 } | 835 } |
836 } | 836 } |
837 dart.setSignature(_BroadcastStream, { | 837 dart.setSignature(_BroadcastStream, { |
838 constructors: () => ({_BroadcastStream: [_BroadcastStream$(T), [_StreamCon
trollerLifecycle]]}) | 838 constructors: () => ({_BroadcastStream: [_BroadcastStream$(T), [_StreamCon
trollerLifecycle]]}) |
839 }); | 839 }); |
840 return _BroadcastStream; | 840 return _BroadcastStream; |
841 }); | 841 }); |
842 let _BroadcastStream = _BroadcastStream$(); | 842 const _BroadcastStream = _BroadcastStream$(); |
843 const _next = Symbol('_next'); | 843 const _next = Symbol('_next'); |
844 const _previous = Symbol('_previous'); | 844 const _previous = Symbol('_previous'); |
845 class _BroadcastSubscriptionLink extends core.Object { | 845 class _BroadcastSubscriptionLink extends core.Object { |
846 _BroadcastSubscriptionLink() { | 846 _BroadcastSubscriptionLink() { |
847 this[_next] = null; | 847 this[_next] = null; |
848 this[_previous] = null; | 848 this[_previous] = null; |
849 } | 849 } |
850 } | 850 } |
851 const _zone = Symbol('_zone'); | 851 const _zone = Symbol('_zone'); |
852 const _state = Symbol('_state'); | 852 const _state = Symbol('_state'); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 [_addPending]: [dart.void, [_DelayedEvent]], | 1184 [_addPending]: [dart.void, [_DelayedEvent]], |
1185 [_sendData]: [dart.void, [T]], | 1185 [_sendData]: [dart.void, [T]], |
1186 [_sendError]: [dart.void, [core.Object, core.StackTrace]], | 1186 [_sendError]: [dart.void, [core.Object, core.StackTrace]], |
1187 [_sendDone]: [dart.void, []], | 1187 [_sendDone]: [dart.void, []], |
1188 [_guardCallback]: [dart.void, [dart.dynamic]], | 1188 [_guardCallback]: [dart.void, [dart.dynamic]], |
1189 [_checkState]: [dart.void, [core.bool]] | 1189 [_checkState]: [dart.void, [core.bool]] |
1190 }) | 1190 }) |
1191 }); | 1191 }); |
1192 return _BufferingStreamSubscription; | 1192 return _BufferingStreamSubscription; |
1193 }); | 1193 }); |
1194 let _BufferingStreamSubscription = _BufferingStreamSubscription$(); | 1194 const _BufferingStreamSubscription = _BufferingStreamSubscription$(); |
1195 const _recordCancel = Symbol('_recordCancel'); | 1195 const _recordCancel = Symbol('_recordCancel'); |
1196 const _recordPause = Symbol('_recordPause'); | 1196 const _recordPause = Symbol('_recordPause'); |
1197 const _recordResume = Symbol('_recordResume'); | 1197 const _recordResume = Symbol('_recordResume'); |
1198 const _ControllerSubscription$ = dart.generic(function(T) { | 1198 const _ControllerSubscription$ = dart.generic(function(T) { |
1199 class _ControllerSubscription extends _BufferingStreamSubscription$(T) { | 1199 class _ControllerSubscription extends _BufferingStreamSubscription$(T) { |
1200 _ControllerSubscription(controller, onData, onError, onDone, cancelOnError
) { | 1200 _ControllerSubscription(controller, onData, onError, onDone, cancelOnError
) { |
1201 this[_controller] = controller; | 1201 this[_controller] = controller; |
1202 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); | 1202 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); |
1203 } | 1203 } |
1204 [_onCancel]() { | 1204 [_onCancel]() { |
1205 return this[_controller][_recordCancel](this); | 1205 return this[_controller][_recordCancel](this); |
1206 } | 1206 } |
1207 [_onPause]() { | 1207 [_onPause]() { |
1208 this[_controller][_recordPause](this); | 1208 this[_controller][_recordPause](this); |
1209 } | 1209 } |
1210 [_onResume]() { | 1210 [_onResume]() { |
1211 this[_controller][_recordResume](this); | 1211 this[_controller][_recordResume](this); |
1212 } | 1212 } |
1213 } | 1213 } |
1214 dart.setSignature(_ControllerSubscription, { | 1214 dart.setSignature(_ControllerSubscription, { |
1215 constructors: () => ({_ControllerSubscription: [_ControllerSubscription$(T
), [_StreamControllerLifecycle$(T), dart.functionType(dart.void, [T]), core.Func
tion, dart.functionType(dart.void, []), core.bool]]}) | 1215 constructors: () => ({_ControllerSubscription: [_ControllerSubscription$(T
), [_StreamControllerLifecycle$(T), dart.functionType(dart.void, [T]), core.Func
tion, dart.functionType(dart.void, []), core.bool]]}) |
1216 }); | 1216 }); |
1217 return _ControllerSubscription; | 1217 return _ControllerSubscription; |
1218 }); | 1218 }); |
1219 let _ControllerSubscription = _ControllerSubscription$(); | 1219 const _ControllerSubscription = _ControllerSubscription$(); |
1220 const _eventState = Symbol('_eventState'); | 1220 const _eventState = Symbol('_eventState'); |
1221 const _expectsEvent = Symbol('_expectsEvent'); | 1221 const _expectsEvent = Symbol('_expectsEvent'); |
1222 const _toggleEventId = Symbol('_toggleEventId'); | 1222 const _toggleEventId = Symbol('_toggleEventId'); |
1223 const _isFiring = Symbol('_isFiring'); | 1223 const _isFiring = Symbol('_isFiring'); |
1224 const _setRemoveAfterFiring = Symbol('_setRemoveAfterFiring'); | 1224 const _setRemoveAfterFiring = Symbol('_setRemoveAfterFiring'); |
1225 const _removeAfterFiring = Symbol('_removeAfterFiring'); | 1225 const _removeAfterFiring = Symbol('_removeAfterFiring'); |
1226 const _BroadcastSubscription$ = dart.generic(function(T) { | 1226 const _BroadcastSubscription$ = dart.generic(function(T) { |
1227 class _BroadcastSubscription extends _ControllerSubscription$(T) { | 1227 class _BroadcastSubscription extends _ControllerSubscription$(T) { |
1228 _BroadcastSubscription(controller, onData, onError, onDone, cancelOnError)
{ | 1228 _BroadcastSubscription(controller, onData, onError, onDone, cancelOnError)
{ |
1229 this[_eventState] = null; | 1229 this[_eventState] = null; |
(...skipping 25 matching lines...) Expand all Loading... |
1255 dart.setSignature(_BroadcastSubscription, { | 1255 dart.setSignature(_BroadcastSubscription, { |
1256 constructors: () => ({_BroadcastSubscription: [_BroadcastSubscription$(T),
[_StreamControllerLifecycle, dart.functionType(dart.void, [T]), core.Function,
dart.functionType(dart.void, []), core.bool]]}), | 1256 constructors: () => ({_BroadcastSubscription: [_BroadcastSubscription$(T),
[_StreamControllerLifecycle, dart.functionType(dart.void, [T]), core.Function,
dart.functionType(dart.void, []), core.bool]]}), |
1257 methods: () => ({ | 1257 methods: () => ({ |
1258 [_expectsEvent]: [core.bool, [core.int]], | 1258 [_expectsEvent]: [core.bool, [core.int]], |
1259 [_toggleEventId]: [dart.void, []], | 1259 [_toggleEventId]: [dart.void, []], |
1260 [_setRemoveAfterFiring]: [dart.void, []] | 1260 [_setRemoveAfterFiring]: [dart.void, []] |
1261 }) | 1261 }) |
1262 }); | 1262 }); |
1263 return _BroadcastSubscription; | 1263 return _BroadcastSubscription; |
1264 }); | 1264 }); |
1265 let _BroadcastSubscription = _BroadcastSubscription$(); | 1265 const _BroadcastSubscription = _BroadcastSubscription$(); |
1266 _BroadcastSubscription._STATE_EVENT_ID = 1; | 1266 _BroadcastSubscription._STATE_EVENT_ID = 1; |
1267 _BroadcastSubscription._STATE_FIRING = 2; | 1267 _BroadcastSubscription._STATE_FIRING = 2; |
1268 _BroadcastSubscription._STATE_REMOVE_AFTER_FIRING = 4; | 1268 _BroadcastSubscription._STATE_REMOVE_AFTER_FIRING = 4; |
1269 const _addStreamState = Symbol('_addStreamState'); | 1269 const _addStreamState = Symbol('_addStreamState'); |
1270 const _doneFuture = Symbol('_doneFuture'); | 1270 const _doneFuture = Symbol('_doneFuture'); |
1271 const _isEmpty = Symbol('_isEmpty'); | 1271 const _isEmpty = Symbol('_isEmpty'); |
1272 const _hasOneListener = Symbol('_hasOneListener'); | 1272 const _hasOneListener = Symbol('_hasOneListener'); |
1273 const _isAddingStream = Symbol('_isAddingStream'); | 1273 const _isAddingStream = Symbol('_isAddingStream'); |
1274 const _mayAddEvent = Symbol('_mayAddEvent'); | 1274 const _mayAddEvent = Symbol('_mayAddEvent'); |
1275 const _ensureDoneFuture = Symbol('_ensureDoneFuture'); | 1275 const _ensureDoneFuture = Symbol('_ensureDoneFuture'); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 addStream: [Future, [Stream$(T)], {cancelOnError: core.bool}], | 1496 addStream: [Future, [Stream$(T)], {cancelOnError: core.bool}], |
1497 [_add]: [dart.void, [T]], | 1497 [_add]: [dart.void, [T]], |
1498 [_addError]: [dart.void, [core.Object, core.StackTrace]], | 1498 [_addError]: [dart.void, [core.Object, core.StackTrace]], |
1499 [_close]: [dart.void, []], | 1499 [_close]: [dart.void, []], |
1500 [_forEachListener]: [dart.void, [dart.functionType(dart.void, [_Bufferin
gStreamSubscription$(T)])]], | 1500 [_forEachListener]: [dart.void, [dart.functionType(dart.void, [_Bufferin
gStreamSubscription$(T)])]], |
1501 [_callOnCancel]: [dart.void, []] | 1501 [_callOnCancel]: [dart.void, []] |
1502 }) | 1502 }) |
1503 }); | 1503 }); |
1504 return _BroadcastStreamController; | 1504 return _BroadcastStreamController; |
1505 }); | 1505 }); |
1506 let _BroadcastStreamController = _BroadcastStreamController$(); | 1506 const _BroadcastStreamController = _BroadcastStreamController$(); |
1507 _BroadcastStreamController._STATE_INITIAL = 0; | 1507 _BroadcastStreamController._STATE_INITIAL = 0; |
1508 _BroadcastStreamController._STATE_EVENT_ID = 1; | 1508 _BroadcastStreamController._STATE_EVENT_ID = 1; |
1509 _BroadcastStreamController._STATE_FIRING = 2; | 1509 _BroadcastStreamController._STATE_FIRING = 2; |
1510 _BroadcastStreamController._STATE_CLOSED = 4; | 1510 _BroadcastStreamController._STATE_CLOSED = 4; |
1511 _BroadcastStreamController._STATE_ADDSTREAM = 8; | 1511 _BroadcastStreamController._STATE_ADDSTREAM = 8; |
1512 const _SyncBroadcastStreamController$ = dart.generic(function(T) { | 1512 const _SyncBroadcastStreamController$ = dart.generic(function(T) { |
1513 class _SyncBroadcastStreamController extends _BroadcastStreamController$(T)
{ | 1513 class _SyncBroadcastStreamController extends _BroadcastStreamController$(T)
{ |
1514 _SyncBroadcastStreamController(onListen, onCancel) { | 1514 _SyncBroadcastStreamController(onListen, onCancel) { |
1515 super._BroadcastStreamController(onListen, onCancel); | 1515 super._BroadcastStreamController(onListen, onCancel); |
1516 } | 1516 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 dart.setSignature(_SyncBroadcastStreamController, { | 1555 dart.setSignature(_SyncBroadcastStreamController, { |
1556 constructors: () => ({_SyncBroadcastStreamController: [_SyncBroadcastStrea
mController$(T), [dart.functionType(dart.void, []), dart.functionType(dart.void,
[])]]}), | 1556 constructors: () => ({_SyncBroadcastStreamController: [_SyncBroadcastStrea
mController$(T), [dart.functionType(dart.void, []), dart.functionType(dart.void,
[])]]}), |
1557 methods: () => ({ | 1557 methods: () => ({ |
1558 [_sendData]: [dart.void, [T]], | 1558 [_sendData]: [dart.void, [T]], |
1559 [_sendError]: [dart.void, [core.Object, core.StackTrace]], | 1559 [_sendError]: [dart.void, [core.Object, core.StackTrace]], |
1560 [_sendDone]: [dart.void, []] | 1560 [_sendDone]: [dart.void, []] |
1561 }) | 1561 }) |
1562 }); | 1562 }); |
1563 return _SyncBroadcastStreamController; | 1563 return _SyncBroadcastStreamController; |
1564 }); | 1564 }); |
1565 let _SyncBroadcastStreamController = _SyncBroadcastStreamController$(); | 1565 const _SyncBroadcastStreamController = _SyncBroadcastStreamController$(); |
1566 const _AsyncBroadcastStreamController$ = dart.generic(function(T) { | 1566 const _AsyncBroadcastStreamController$ = dart.generic(function(T) { |
1567 class _AsyncBroadcastStreamController extends _BroadcastStreamController$(T)
{ | 1567 class _AsyncBroadcastStreamController extends _BroadcastStreamController$(T)
{ |
1568 _AsyncBroadcastStreamController(onListen, onCancel) { | 1568 _AsyncBroadcastStreamController(onListen, onCancel) { |
1569 super._BroadcastStreamController(onListen, onCancel); | 1569 super._BroadcastStreamController(onListen, onCancel); |
1570 } | 1570 } |
1571 [_sendData](data) { | 1571 [_sendData](data) { |
1572 dart.as(data, T); | 1572 dart.as(data, T); |
1573 for (let link = this[_next]; !dart.notNull(core.identical(link, this));
link = link[_next]) { | 1573 for (let link = this[_next]; !dart.notNull(core.identical(link, this));
link = link[_next]) { |
1574 let subscription = dart.as(link, _BroadcastSubscription$(T)); | 1574 let subscription = dart.as(link, _BroadcastSubscription$(T)); |
1575 subscription[_addPending](new _DelayedData(data)); | 1575 subscription[_addPending](new _DelayedData(data)); |
(...skipping 21 matching lines...) Expand all Loading... |
1597 dart.setSignature(_AsyncBroadcastStreamController, { | 1597 dart.setSignature(_AsyncBroadcastStreamController, { |
1598 constructors: () => ({_AsyncBroadcastStreamController: [_AsyncBroadcastStr
eamController$(T), [dart.functionType(dart.void, []), dart.functionType(dart.voi
d, [])]]}), | 1598 constructors: () => ({_AsyncBroadcastStreamController: [_AsyncBroadcastStr
eamController$(T), [dart.functionType(dart.void, []), dart.functionType(dart.voi
d, [])]]}), |
1599 methods: () => ({ | 1599 methods: () => ({ |
1600 [_sendData]: [dart.void, [T]], | 1600 [_sendData]: [dart.void, [T]], |
1601 [_sendError]: [dart.void, [core.Object, core.StackTrace]], | 1601 [_sendError]: [dart.void, [core.Object, core.StackTrace]], |
1602 [_sendDone]: [dart.void, []] | 1602 [_sendDone]: [dart.void, []] |
1603 }) | 1603 }) |
1604 }); | 1604 }); |
1605 return _AsyncBroadcastStreamController; | 1605 return _AsyncBroadcastStreamController; |
1606 }); | 1606 }); |
1607 let _AsyncBroadcastStreamController = _AsyncBroadcastStreamController$(); | 1607 const _AsyncBroadcastStreamController = _AsyncBroadcastStreamController$(); |
1608 const _addPendingEvent = Symbol('_addPendingEvent'); | 1608 const _addPendingEvent = Symbol('_addPendingEvent'); |
1609 const _AsBroadcastStreamController$ = dart.generic(function(T) { | 1609 const _AsBroadcastStreamController$ = dart.generic(function(T) { |
1610 class _AsBroadcastStreamController extends _SyncBroadcastStreamController$(T
) { | 1610 class _AsBroadcastStreamController extends _SyncBroadcastStreamController$(T
) { |
1611 _AsBroadcastStreamController(onListen, onCancel) { | 1611 _AsBroadcastStreamController(onListen, onCancel) { |
1612 this[_pending] = null; | 1612 this[_pending] = null; |
1613 super._SyncBroadcastStreamController(onListen, onCancel); | 1613 super._SyncBroadcastStreamController(onListen, onCancel); |
1614 } | 1614 } |
1615 get [_hasPending]() { | 1615 get [_hasPending]() { |
1616 return this[_pending] != null && !dart.notNull(this[_pending].isEmpty); | 1616 return this[_pending] != null && !dart.notNull(this[_pending].isEmpty); |
1617 } | 1617 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 _AsBroadcastStreamController[dart.implements] = () => [_EventDispatch$(T)]; | 1665 _AsBroadcastStreamController[dart.implements] = () => [_EventDispatch$(T)]; |
1666 dart.setSignature(_AsBroadcastStreamController, { | 1666 dart.setSignature(_AsBroadcastStreamController, { |
1667 constructors: () => ({_AsBroadcastStreamController: [_AsBroadcastStreamCon
troller$(T), [dart.functionType(dart.void, []), dart.functionType(dart.void, [])
]]}), | 1667 constructors: () => ({_AsBroadcastStreamController: [_AsBroadcastStreamCon
troller$(T), [dart.functionType(dart.void, []), dart.functionType(dart.void, [])
]]}), |
1668 methods: () => ({ | 1668 methods: () => ({ |
1669 [_addPendingEvent]: [dart.void, [_DelayedEvent]], | 1669 [_addPendingEvent]: [dart.void, [_DelayedEvent]], |
1670 add: [dart.void, [T]] | 1670 add: [dart.void, [T]] |
1671 }) | 1671 }) |
1672 }); | 1672 }); |
1673 return _AsBroadcastStreamController; | 1673 return _AsBroadcastStreamController; |
1674 }); | 1674 }); |
1675 let _AsBroadcastStreamController = _AsBroadcastStreamController$(); | 1675 const _AsBroadcastStreamController = _AsBroadcastStreamController$(); |
1676 const _pauseCount = Symbol('_pauseCount'); | 1676 const _pauseCount = Symbol('_pauseCount'); |
1677 const _resume = Symbol('_resume'); | 1677 const _resume = Symbol('_resume'); |
1678 const _DoneSubscription$ = dart.generic(function(T) { | 1678 const _DoneSubscription$ = dart.generic(function(T) { |
1679 class _DoneSubscription extends core.Object { | 1679 class _DoneSubscription extends core.Object { |
1680 _DoneSubscription() { | 1680 _DoneSubscription() { |
1681 this[_pauseCount] = 0; | 1681 this[_pauseCount] = 0; |
1682 } | 1682 } |
1683 onData(handleData) { | 1683 onData(handleData) { |
1684 dart.as(handleData, dart.functionType(dart.void, [T])); | 1684 dart.as(handleData, dart.functionType(dart.void, [T])); |
1685 } | 1685 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 onDone: [dart.void, [dart.functionType(dart.void, [])]], | 1719 onDone: [dart.void, [dart.functionType(dart.void, [])]], |
1720 pause: [dart.void, [], [Future]], | 1720 pause: [dart.void, [], [Future]], |
1721 resume: [dart.void, []], | 1721 resume: [dart.void, []], |
1722 [_resume]: [dart.void, [dart.dynamic]], | 1722 [_resume]: [dart.void, [dart.dynamic]], |
1723 cancel: [Future, []], | 1723 cancel: [Future, []], |
1724 asFuture: [Future, [], [core.Object]] | 1724 asFuture: [Future, [], [core.Object]] |
1725 }) | 1725 }) |
1726 }); | 1726 }); |
1727 return _DoneSubscription; | 1727 return _DoneSubscription; |
1728 }); | 1728 }); |
1729 let _DoneSubscription = _DoneSubscription$(); | 1729 const _DoneSubscription = _DoneSubscription$(); |
1730 const __CastType2$ = dart.generic(function(T) { | 1730 const __CastType2$ = dart.generic(function(T) { |
1731 const __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart
.void, [_BufferingStreamSubscription$(T)])); | 1731 const __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart
.void, [_BufferingStreamSubscription$(T)])); |
1732 return __CastType2; | 1732 return __CastType2; |
1733 }); | 1733 }); |
1734 let __CastType2 = __CastType2$(); | 1734 const __CastType2 = __CastType2$(); |
1735 class DeferredLibrary extends core.Object { | 1735 class DeferredLibrary extends core.Object { |
1736 DeferredLibrary(libraryName, opts) { | 1736 DeferredLibrary(libraryName, opts) { |
1737 let uri = opts && 'uri' in opts ? opts.uri : null; | 1737 let uri = opts && 'uri' in opts ? opts.uri : null; |
1738 this.libraryName = libraryName; | 1738 this.libraryName = libraryName; |
1739 this.uri = uri; | 1739 this.uri = uri; |
1740 } | 1740 } |
1741 load() { | 1741 load() { |
1742 dart.throw('DeferredLibrary not supported. ' + 'please use the `import "li
b.dart" deferred as lib` syntax.'); | 1742 dart.throw('DeferredLibrary not supported. ' + 'please use the `import "li
b.dart" deferred as lib` syntax.'); |
1743 } | 1743 } |
1744 } | 1744 } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 }), | 1924 }), |
1925 statics: () => ({ | 1925 statics: () => ({ |
1926 wait: [Future$(core.List), [core.Iterable$(Future$())], {eagerError: cor
e.bool, cleanUp: dart.functionType(dart.void, [dart.dynamic])}], | 1926 wait: [Future$(core.List), [core.Iterable$(Future$())], {eagerError: cor
e.bool, cleanUp: dart.functionType(dart.void, [dart.dynamic])}], |
1927 forEach: [Future$(), [core.Iterable, dart.functionType(dart.dynamic, [da
rt.dynamic])]], | 1927 forEach: [Future$(), [core.Iterable, dart.functionType(dart.dynamic, [da
rt.dynamic])]], |
1928 doWhile: [Future$(), [dart.functionType(dart.dynamic, [])]] | 1928 doWhile: [Future$(), [dart.functionType(dart.dynamic, [])]] |
1929 }), | 1929 }), |
1930 names: ['wait', 'forEach', 'doWhile'] | 1930 names: ['wait', 'forEach', 'doWhile'] |
1931 }); | 1931 }); |
1932 return Future; | 1932 return Future; |
1933 }); | 1933 }); |
1934 let Future = Future$(); | 1934 const Future = Future$(); |
1935 dart.defineLazyProperties(Future, { | 1935 dart.defineLazyProperties(Future, { |
1936 get _nullFuture() { | 1936 get _nullFuture() { |
1937 return new _Future.immediate(null); | 1937 return new _Future.immediate(null); |
1938 } | 1938 } |
1939 }); | 1939 }); |
1940 class TimeoutException extends core.Object { | 1940 class TimeoutException extends core.Object { |
1941 TimeoutException(message, duration) { | 1941 TimeoutException(message, duration) { |
1942 if (duration === void 0) duration = null; | 1942 if (duration === void 0) duration = null; |
1943 this.message = message; | 1943 this.message = message; |
1944 this.duration = duration; | 1944 this.duration = duration; |
(...skipping 19 matching lines...) Expand all Loading... |
1964 } | 1964 } |
1965 } | 1965 } |
1966 dart.setSignature(Completer, { | 1966 dart.setSignature(Completer, { |
1967 constructors: () => ({ | 1967 constructors: () => ({ |
1968 new: [Completer$(T), []], | 1968 new: [Completer$(T), []], |
1969 sync: [Completer$(T), []] | 1969 sync: [Completer$(T), []] |
1970 }) | 1970 }) |
1971 }); | 1971 }); |
1972 return Completer; | 1972 return Completer; |
1973 }); | 1973 }); |
1974 let Completer = Completer$(); | 1974 const Completer = Completer$(); |
1975 function _completeWithErrorCallback(result, error, stackTrace) { | 1975 function _completeWithErrorCallback(result, error, stackTrace) { |
1976 let replacement = Zone.current.errorCallback(error, dart.as(stackTrace, core
.StackTrace)); | 1976 let replacement = Zone.current.errorCallback(error, dart.as(stackTrace, core
.StackTrace)); |
1977 if (replacement != null) { | 1977 if (replacement != null) { |
1978 error = _nonNullError(replacement.error); | 1978 error = _nonNullError(replacement.error); |
1979 stackTrace = replacement.stackTrace; | 1979 stackTrace = replacement.stackTrace; |
1980 } | 1980 } |
1981 result[_completeError](error, dart.as(stackTrace, core.StackTrace)); | 1981 result[_completeError](error, dart.as(stackTrace, core.StackTrace)); |
1982 } | 1982 } |
1983 dart.fn(_completeWithErrorCallback, () => dart.definiteFunctionType(dart.void,
[_Future, dart.dynamic, dart.dynamic])); | 1983 dart.fn(_completeWithErrorCallback, () => dart.definiteFunctionType(dart.void,
[_Future, dart.dynamic, dart.dynamic])); |
1984 function _nonNullError(error) { | 1984 function _nonNullError(error) { |
1985 return error != null ? error : new core.NullThrownError(); | 1985 return error != null ? error : new core.NullThrownError(); |
1986 } | 1986 } |
1987 dart.fn(_nonNullError, core.Object, [core.Object]); | 1987 dart.fn(_nonNullError, core.Object, [core.Object]); |
1988 const __CastType4 = dart.typedef('__CastType4', () => dart.functionType(dart.d
ynamic, [dart.dynamic])); | 1988 const __CastType4 = dart.typedef('__CastType4', () => dart.functionType(dart.d
ynamic, [dart.dynamic])); |
1989 const _FutureOnValue$ = dart.generic(function(T) { | 1989 const _FutureOnValue$ = dart.generic(function(T) { |
1990 const _FutureOnValue = dart.typedef('_FutureOnValue', () => dart.functionTyp
e(dart.dynamic, [T])); | 1990 const _FutureOnValue = dart.typedef('_FutureOnValue', () => dart.functionTyp
e(dart.dynamic, [T])); |
1991 return _FutureOnValue; | 1991 return _FutureOnValue; |
1992 }); | 1992 }); |
1993 let _FutureOnValue = _FutureOnValue$(); | 1993 const _FutureOnValue = _FutureOnValue$(); |
1994 const _FutureErrorTest = dart.typedef('_FutureErrorTest', () => dart.functionT
ype(core.bool, [dart.dynamic])); | 1994 const _FutureErrorTest = dart.typedef('_FutureErrorTest', () => dart.functionT
ype(core.bool, [dart.dynamic])); |
1995 const _FutureAction = dart.typedef('_FutureAction', () => dart.functionType(da
rt.dynamic, [])); | 1995 const _FutureAction = dart.typedef('_FutureAction', () => dart.functionType(da
rt.dynamic, [])); |
1996 const _Completer$ = dart.generic(function(T) { | 1996 const _Completer$ = dart.generic(function(T) { |
1997 class _Completer extends core.Object { | 1997 class _Completer extends core.Object { |
1998 _Completer() { | 1998 _Completer() { |
1999 this.future = new (_Future$(T))(); | 1999 this.future = new (_Future$(T))(); |
2000 } | 2000 } |
2001 completeError(error, stackTrace) { | 2001 completeError(error, stackTrace) { |
2002 if (stackTrace === void 0) stackTrace = null; | 2002 if (stackTrace === void 0) stackTrace = null; |
2003 error = _nonNullError(error); | 2003 error = _nonNullError(error); |
2004 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); | 2004 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); |
2005 let replacement = Zone.current.errorCallback(error, stackTrace); | 2005 let replacement = Zone.current.errorCallback(error, stackTrace); |
2006 if (replacement != null) { | 2006 if (replacement != null) { |
2007 error = _nonNullError(replacement.error); | 2007 error = _nonNullError(replacement.error); |
2008 stackTrace = replacement.stackTrace; | 2008 stackTrace = replacement.stackTrace; |
2009 } | 2009 } |
2010 this[_completeError](error, stackTrace); | 2010 this[_completeError](error, stackTrace); |
2011 } | 2011 } |
2012 get isCompleted() { | 2012 get isCompleted() { |
2013 return !dart.notNull(this.future[_mayComplete]); | 2013 return !dart.notNull(this.future[_mayComplete]); |
2014 } | 2014 } |
2015 } | 2015 } |
2016 _Completer[dart.implements] = () => [Completer$(T)]; | 2016 _Completer[dart.implements] = () => [Completer$(T)]; |
2017 dart.setSignature(_Completer, { | 2017 dart.setSignature(_Completer, { |
2018 methods: () => ({completeError: [dart.void, [core.Object], [core.StackTrac
e]]}) | 2018 methods: () => ({completeError: [dart.void, [core.Object], [core.StackTrac
e]]}) |
2019 }); | 2019 }); |
2020 return _Completer; | 2020 return _Completer; |
2021 }); | 2021 }); |
2022 let _Completer = _Completer$(); | 2022 const _Completer = _Completer$(); |
2023 const _asyncCompleteError = Symbol('_asyncCompleteError'); | 2023 const _asyncCompleteError = Symbol('_asyncCompleteError'); |
2024 const _AsyncCompleter$ = dart.generic(function(T) { | 2024 const _AsyncCompleter$ = dart.generic(function(T) { |
2025 class _AsyncCompleter extends _Completer$(T) { | 2025 class _AsyncCompleter extends _Completer$(T) { |
2026 _AsyncCompleter() { | 2026 _AsyncCompleter() { |
2027 super._Completer(); | 2027 super._Completer(); |
2028 } | 2028 } |
2029 complete(value) { | 2029 complete(value) { |
2030 if (value === void 0) value = null; | 2030 if (value === void 0) value = null; |
2031 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); | 2031 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); |
2032 this.future[_asyncComplete](value); | 2032 this.future[_asyncComplete](value); |
2033 } | 2033 } |
2034 [_completeError](error, stackTrace) { | 2034 [_completeError](error, stackTrace) { |
2035 this.future[_asyncCompleteError](error, stackTrace); | 2035 this.future[_asyncCompleteError](error, stackTrace); |
2036 } | 2036 } |
2037 } | 2037 } |
2038 dart.setSignature(_AsyncCompleter, { | 2038 dart.setSignature(_AsyncCompleter, { |
2039 methods: () => ({ | 2039 methods: () => ({ |
2040 complete: [dart.void, [], [dart.dynamic]], | 2040 complete: [dart.void, [], [dart.dynamic]], |
2041 [_completeError]: [dart.void, [core.Object, core.StackTrace]] | 2041 [_completeError]: [dart.void, [core.Object, core.StackTrace]] |
2042 }) | 2042 }) |
2043 }); | 2043 }); |
2044 return _AsyncCompleter; | 2044 return _AsyncCompleter; |
2045 }); | 2045 }); |
2046 let _AsyncCompleter = _AsyncCompleter$(); | 2046 const _AsyncCompleter = _AsyncCompleter$(); |
2047 const _SyncCompleter$ = dart.generic(function(T) { | 2047 const _SyncCompleter$ = dart.generic(function(T) { |
2048 class _SyncCompleter extends _Completer$(T) { | 2048 class _SyncCompleter extends _Completer$(T) { |
2049 _SyncCompleter() { | 2049 _SyncCompleter() { |
2050 super._Completer(); | 2050 super._Completer(); |
2051 } | 2051 } |
2052 complete(value) { | 2052 complete(value) { |
2053 if (value === void 0) value = null; | 2053 if (value === void 0) value = null; |
2054 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); | 2054 if (!dart.notNull(this.future[_mayComplete])) dart.throw(new core.StateE
rror("Future already completed")); |
2055 this.future[_complete](value); | 2055 this.future[_complete](value); |
2056 } | 2056 } |
2057 [_completeError](error, stackTrace) { | 2057 [_completeError](error, stackTrace) { |
2058 this.future[_completeError](error, stackTrace); | 2058 this.future[_completeError](error, stackTrace); |
2059 } | 2059 } |
2060 } | 2060 } |
2061 dart.setSignature(_SyncCompleter, { | 2061 dart.setSignature(_SyncCompleter, { |
2062 methods: () => ({ | 2062 methods: () => ({ |
2063 complete: [dart.void, [], [dart.dynamic]], | 2063 complete: [dart.void, [], [dart.dynamic]], |
2064 [_completeError]: [dart.void, [core.Object, core.StackTrace]] | 2064 [_completeError]: [dart.void, [core.Object, core.StackTrace]] |
2065 }) | 2065 }) |
2066 }); | 2066 }); |
2067 return _SyncCompleter; | 2067 return _SyncCompleter; |
2068 }); | 2068 }); |
2069 let _SyncCompleter = _SyncCompleter$(); | 2069 const _SyncCompleter = _SyncCompleter$(); |
2070 const _nextListener = Symbol('_nextListener'); | 2070 const _nextListener = Symbol('_nextListener'); |
2071 const _onValue = Symbol('_onValue'); | 2071 const _onValue = Symbol('_onValue'); |
2072 const _errorTest = Symbol('_errorTest'); | 2072 const _errorTest = Symbol('_errorTest'); |
2073 const _whenCompleteAction = Symbol('_whenCompleteAction'); | 2073 const _whenCompleteAction = Symbol('_whenCompleteAction'); |
2074 class _FutureListener extends core.Object { | 2074 class _FutureListener extends core.Object { |
2075 then(result, onValue, errorCallback) { | 2075 then(result, onValue, errorCallback) { |
2076 this.result = result; | 2076 this.result = result; |
2077 this.callback = onValue; | 2077 this.callback = onValue; |
2078 this.errorCallback = errorCallback; | 2078 this.errorCallback = errorCallback; |
2079 this.state = errorCallback == null ? _FutureListener.STATE_THEN : _FutureL
istener.STATE_THEN_ONERROR; | 2079 this.state = errorCallback == null ? _FutureListener.STATE_THEN : _FutureL
istener.STATE_THEN_ONERROR; |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2603 }), | 2603 }), |
2604 statics: () => ({ | 2604 statics: () => ({ |
2605 _chainForeignFuture: [dart.void, [Future, _Future$()]], | 2605 _chainForeignFuture: [dart.void, [Future, _Future$()]], |
2606 _chainCoreFuture: [dart.void, [_Future$(), _Future$()]], | 2606 _chainCoreFuture: [dart.void, [_Future$(), _Future$()]], |
2607 _propagateToListeners: [dart.void, [_Future$(), _FutureListener]] | 2607 _propagateToListeners: [dart.void, [_Future$(), _FutureListener]] |
2608 }), | 2608 }), |
2609 names: ['_chainForeignFuture', '_chainCoreFuture', '_propagateToListeners'
] | 2609 names: ['_chainForeignFuture', '_chainCoreFuture', '_propagateToListeners'
] |
2610 }); | 2610 }); |
2611 return _Future; | 2611 return _Future; |
2612 }); | 2612 }); |
2613 let _Future = _Future$(); | 2613 const _Future = _Future$(); |
2614 _Future._INCOMPLETE = 0; | 2614 _Future._INCOMPLETE = 0; |
2615 _Future._PENDING_COMPLETE = 1; | 2615 _Future._PENDING_COMPLETE = 1; |
2616 _Future._CHAINED = 2; | 2616 _Future._CHAINED = 2; |
2617 _Future._VALUE = 4; | 2617 _Future._VALUE = 4; |
2618 _Future._ERROR = 8; | 2618 _Future._ERROR = 8; |
2619 const __CastType6$ = dart.generic(function(T, S) { | 2619 const __CastType6$ = dart.generic(function(T, S) { |
2620 const __CastType6 = dart.typedef('__CastType6', () => dart.functionType(S, [
T])); | 2620 const __CastType6 = dart.typedef('__CastType6', () => dart.functionType(S, [
T])); |
2621 return __CastType6; | 2621 return __CastType6; |
2622 }); | 2622 }); |
2623 let __CastType6 = __CastType6$(); | 2623 const __CastType6 = __CastType6$(); |
2624 const __CastType8 = dart.typedef('__CastType8', () => dart.functionType(core.b
ool, [dart.dynamic])); | 2624 const __CastType8 = dart.typedef('__CastType8', () => dart.functionType(core.b
ool, [dart.dynamic])); |
2625 const __CastType10 = dart.typedef('__CastType10', () => dart.functionType(dart
.dynamic, [dart.dynamic])); | 2625 const __CastType10 = dart.typedef('__CastType10', () => dart.functionType(dart
.dynamic, [dart.dynamic])); |
2626 const _AsyncCallback = dart.typedef('_AsyncCallback', () => dart.functionType(
dart.void, [])); | 2626 const _AsyncCallback = dart.typedef('_AsyncCallback', () => dart.functionType(
dart.void, [])); |
2627 class _AsyncCallbackEntry extends core.Object { | 2627 class _AsyncCallbackEntry extends core.Object { |
2628 _AsyncCallbackEntry(callback) { | 2628 _AsyncCallbackEntry(callback) { |
2629 this.callback = callback; | 2629 this.callback = callback; |
2630 this.next = null; | 2630 this.next = null; |
2631 } | 2631 } |
2632 } | 2632 } |
2633 dart.setSignature(_AsyncCallbackEntry, { | 2633 dart.setSignature(_AsyncCallbackEntry, { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 }); | 2766 }); |
2767 dart.defineLazyProperties(_AsyncRun, { | 2767 dart.defineLazyProperties(_AsyncRun, { |
2768 get scheduleImmediateClosure() { | 2768 get scheduleImmediateClosure() { |
2769 return _AsyncRun._initializeScheduleImmediate(); | 2769 return _AsyncRun._initializeScheduleImmediate(); |
2770 } | 2770 } |
2771 }); | 2771 }); |
2772 const StreamSubscription$ = dart.generic(function(T) { | 2772 const StreamSubscription$ = dart.generic(function(T) { |
2773 class StreamSubscription extends core.Object {} | 2773 class StreamSubscription extends core.Object {} |
2774 return StreamSubscription; | 2774 return StreamSubscription; |
2775 }); | 2775 }); |
2776 let StreamSubscription = StreamSubscription$(); | 2776 const StreamSubscription = StreamSubscription$(); |
2777 const EventSink$ = dart.generic(function(T) { | 2777 const EventSink$ = dart.generic(function(T) { |
2778 class EventSink extends core.Object {} | 2778 class EventSink extends core.Object {} |
2779 EventSink[dart.implements] = () => [core.Sink$(T)]; | 2779 EventSink[dart.implements] = () => [core.Sink$(T)]; |
2780 return EventSink; | 2780 return EventSink; |
2781 }); | 2781 }); |
2782 let EventSink = EventSink$(); | 2782 const EventSink = EventSink$(); |
2783 const _stream = Symbol('_stream'); | 2783 const _stream = Symbol('_stream'); |
2784 const StreamView$ = dart.generic(function(T) { | 2784 const StreamView$ = dart.generic(function(T) { |
2785 class StreamView extends Stream$(T) { | 2785 class StreamView extends Stream$(T) { |
2786 StreamView(stream) { | 2786 StreamView(stream) { |
2787 this[_stream] = stream; | 2787 this[_stream] = stream; |
2788 super.Stream(); | 2788 super.Stream(); |
2789 } | 2789 } |
2790 get isBroadcast() { | 2790 get isBroadcast() { |
2791 return this[_stream].isBroadcast; | 2791 return this[_stream].isBroadcast; |
2792 } | 2792 } |
(...skipping 15 matching lines...) Expand all Loading... |
2808 } | 2808 } |
2809 dart.setSignature(StreamView, { | 2809 dart.setSignature(StreamView, { |
2810 constructors: () => ({StreamView: [StreamView$(T), [Stream$(T)]]}), | 2810 constructors: () => ({StreamView: [StreamView$(T), [Stream$(T)]]}), |
2811 methods: () => ({ | 2811 methods: () => ({ |
2812 asBroadcastStream: [Stream$(T), [], {onListen: dart.functionType(dart.vo
id, [StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [StreamSub
scription$(T)])}], | 2812 asBroadcastStream: [Stream$(T), [], {onListen: dart.functionType(dart.vo
id, [StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [StreamSub
scription$(T)])}], |
2813 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}] | 2813 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}] |
2814 }) | 2814 }) |
2815 }); | 2815 }); |
2816 return StreamView; | 2816 return StreamView; |
2817 }); | 2817 }); |
2818 let StreamView = StreamView$(); | 2818 const StreamView = StreamView$(); |
2819 const StreamConsumer$ = dart.generic(function(S) { | 2819 const StreamConsumer$ = dart.generic(function(S) { |
2820 class StreamConsumer extends core.Object {} | 2820 class StreamConsumer extends core.Object {} |
2821 return StreamConsumer; | 2821 return StreamConsumer; |
2822 }); | 2822 }); |
2823 let StreamConsumer = StreamConsumer$(); | 2823 const StreamConsumer = StreamConsumer$(); |
2824 const StreamSink$ = dart.generic(function(S) { | 2824 const StreamSink$ = dart.generic(function(S) { |
2825 class StreamSink extends core.Object {} | 2825 class StreamSink extends core.Object {} |
2826 StreamSink[dart.implements] = () => [StreamConsumer$(S), EventSink$(S)]; | 2826 StreamSink[dart.implements] = () => [StreamConsumer$(S), EventSink$(S)]; |
2827 return StreamSink; | 2827 return StreamSink; |
2828 }); | 2828 }); |
2829 let StreamSink = StreamSink$(); | 2829 const StreamSink = StreamSink$(); |
2830 const StreamTransformer$ = dart.generic(function(S, T) { | 2830 const StreamTransformer$ = dart.generic(function(S, T) { |
2831 class StreamTransformer extends core.Object { | 2831 class StreamTransformer extends core.Object { |
2832 static new(transformer) { | 2832 static new(transformer) { |
2833 return new (_StreamSubscriptionTransformer$(S, T))(transformer); | 2833 return new (_StreamSubscriptionTransformer$(S, T))(transformer); |
2834 } | 2834 } |
2835 static fromHandlers(opts) { | 2835 static fromHandlers(opts) { |
2836 return new (_StreamHandlerTransformer$(S, T))(opts); | 2836 return new (_StreamHandlerTransformer$(S, T))(opts); |
2837 } | 2837 } |
2838 } | 2838 } |
2839 dart.setSignature(StreamTransformer, { | 2839 dart.setSignature(StreamTransformer, { |
2840 constructors: () => ({ | 2840 constructors: () => ({ |
2841 new: [StreamTransformer$(S, T), [dart.functionType(StreamSubscription$(T
), [Stream$(S), core.bool])]], | 2841 new: [StreamTransformer$(S, T), [dart.functionType(StreamSubscription$(T
), [Stream$(S), core.bool])]], |
2842 fromHandlers: [StreamTransformer$(S, T), [], {handleData: dart.functionT
ype(dart.void, [S, EventSink$(T)]), handleError: dart.functionType(dart.void, [c
ore.Object, core.StackTrace, EventSink$(T)]), handleDone: dart.functionType(dart
.void, [EventSink$(T)])}] | 2842 fromHandlers: [StreamTransformer$(S, T), [], {handleData: dart.functionT
ype(dart.void, [S, EventSink$(T)]), handleError: dart.functionType(dart.void, [c
ore.Object, core.StackTrace, EventSink$(T)]), handleDone: dart.functionType(dart
.void, [EventSink$(T)])}] |
2843 }) | 2843 }) |
2844 }); | 2844 }); |
2845 return StreamTransformer; | 2845 return StreamTransformer; |
2846 }); | 2846 }); |
2847 let StreamTransformer = StreamTransformer$(); | 2847 const StreamTransformer = StreamTransformer$(); |
2848 const StreamIterator$ = dart.generic(function(T) { | 2848 const StreamIterator$ = dart.generic(function(T) { |
2849 class StreamIterator extends core.Object { | 2849 class StreamIterator extends core.Object { |
2850 static new(stream) { | 2850 static new(stream) { |
2851 return new (_StreamIteratorImpl$(T))(stream); | 2851 return new (_StreamIteratorImpl$(T))(stream); |
2852 } | 2852 } |
2853 } | 2853 } |
2854 dart.setSignature(StreamIterator, { | 2854 dart.setSignature(StreamIterator, { |
2855 constructors: () => ({new: [StreamIterator$(T), [Stream$(T)]]}) | 2855 constructors: () => ({new: [StreamIterator$(T), [Stream$(T)]]}) |
2856 }); | 2856 }); |
2857 return StreamIterator; | 2857 return StreamIterator; |
2858 }); | 2858 }); |
2859 let StreamIterator = StreamIterator$(); | 2859 const StreamIterator = StreamIterator$(); |
2860 const _ControllerEventSinkWrapper$ = dart.generic(function(T) { | 2860 const _ControllerEventSinkWrapper$ = dart.generic(function(T) { |
2861 class _ControllerEventSinkWrapper extends core.Object { | 2861 class _ControllerEventSinkWrapper extends core.Object { |
2862 _ControllerEventSinkWrapper(sink) { | 2862 _ControllerEventSinkWrapper(sink) { |
2863 this[_sink] = sink; | 2863 this[_sink] = sink; |
2864 } | 2864 } |
2865 add(data) { | 2865 add(data) { |
2866 dart.as(data, T); | 2866 dart.as(data, T); |
2867 this[_sink].add(data); | 2867 this[_sink].add(data); |
2868 } | 2868 } |
2869 addError(error, stackTrace) { | 2869 addError(error, stackTrace) { |
2870 if (stackTrace === void 0) stackTrace = null; | 2870 if (stackTrace === void 0) stackTrace = null; |
2871 this[_sink].addError(error, stackTrace); | 2871 this[_sink].addError(error, stackTrace); |
2872 } | 2872 } |
2873 close() { | 2873 close() { |
2874 this[_sink].close(); | 2874 this[_sink].close(); |
2875 } | 2875 } |
2876 } | 2876 } |
2877 _ControllerEventSinkWrapper[dart.implements] = () => [EventSink$(T)]; | 2877 _ControllerEventSinkWrapper[dart.implements] = () => [EventSink$(T)]; |
2878 dart.setSignature(_ControllerEventSinkWrapper, { | 2878 dart.setSignature(_ControllerEventSinkWrapper, { |
2879 constructors: () => ({_ControllerEventSinkWrapper: [_ControllerEventSinkWr
apper$(T), [EventSink]]}), | 2879 constructors: () => ({_ControllerEventSinkWrapper: [_ControllerEventSinkWr
apper$(T), [EventSink]]}), |
2880 methods: () => ({ | 2880 methods: () => ({ |
2881 add: [dart.void, [T]], | 2881 add: [dart.void, [T]], |
2882 addError: [dart.void, [dart.dynamic], [core.StackTrace]], | 2882 addError: [dart.void, [dart.dynamic], [core.StackTrace]], |
2883 close: [dart.void, []] | 2883 close: [dart.void, []] |
2884 }) | 2884 }) |
2885 }); | 2885 }); |
2886 return _ControllerEventSinkWrapper; | 2886 return _ControllerEventSinkWrapper; |
2887 }); | 2887 }); |
2888 let _ControllerEventSinkWrapper = _ControllerEventSinkWrapper$(); | 2888 const _ControllerEventSinkWrapper = _ControllerEventSinkWrapper$(); |
2889 const __CastType12 = dart.typedef('__CastType12', () => dart.functionType(dart
.void, [StreamSubscription])); | 2889 const __CastType12 = dart.typedef('__CastType12', () => dart.functionType(dart
.void, [StreamSubscription])); |
2890 const __CastType14 = dart.typedef('__CastType14', () => dart.functionType(dart
.dynamic, [dart.dynamic, core.StackTrace])); | 2890 const __CastType14 = dart.typedef('__CastType14', () => dart.functionType(dart
.dynamic, [dart.dynamic, core.StackTrace])); |
2891 const __CastType17 = dart.typedef('__CastType17', () => dart.functionType(dart
.void, [])); | 2891 const __CastType17 = dart.typedef('__CastType17', () => dart.functionType(dart
.void, [])); |
2892 const __CastType18 = dart.typedef('__CastType18', () => dart.functionType(dart
.void, [EventSink])); | 2892 const __CastType18 = dart.typedef('__CastType18', () => dart.functionType(dart
.void, [EventSink])); |
2893 const StreamController$ = dart.generic(function(T) { | 2893 const StreamController$ = dart.generic(function(T) { |
2894 class StreamController extends core.Object { | 2894 class StreamController extends core.Object { |
2895 static new(opts) { | 2895 static new(opts) { |
2896 let onListen = opts && 'onListen' in opts ? opts.onListen : null; | 2896 let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
2897 let onPause = opts && 'onPause' in opts ? opts.onPause : null; | 2897 let onPause = opts && 'onPause' in opts ? opts.onPause : null; |
2898 let onResume = opts && 'onResume' in opts ? opts.onResume : null; | 2898 let onResume = opts && 'onResume' in opts ? opts.onResume : null; |
(...skipping 13 matching lines...) Expand all Loading... |
2912 } | 2912 } |
2913 StreamController[dart.implements] = () => [StreamSink$(T)]; | 2913 StreamController[dart.implements] = () => [StreamSink$(T)]; |
2914 dart.setSignature(StreamController, { | 2914 dart.setSignature(StreamController, { |
2915 constructors: () => ({ | 2915 constructors: () => ({ |
2916 new: [StreamController$(T), [], {onListen: dart.functionType(dart.void,
[]), onPause: dart.functionType(dart.void, []), onResume: dart.functionType(dart
.void, []), onCancel: dart.functionType(dart.dynamic, []), sync: core.bool}], | 2916 new: [StreamController$(T), [], {onListen: dart.functionType(dart.void,
[]), onPause: dart.functionType(dart.void, []), onResume: dart.functionType(dart
.void, []), onCancel: dart.functionType(dart.dynamic, []), sync: core.bool}], |
2917 broadcast: [StreamController$(T), [], {onListen: dart.functionType(dart.
void, []), onCancel: dart.functionType(dart.void, []), sync: core.bool}] | 2917 broadcast: [StreamController$(T), [], {onListen: dart.functionType(dart.
void, []), onCancel: dart.functionType(dart.void, []), sync: core.bool}] |
2918 }) | 2918 }) |
2919 }); | 2919 }); |
2920 return StreamController; | 2920 return StreamController; |
2921 }); | 2921 }); |
2922 let StreamController = StreamController$(); | 2922 const StreamController = StreamController$(); |
2923 const _StreamControllerLifecycle$ = dart.generic(function(T) { | 2923 const _StreamControllerLifecycle$ = dart.generic(function(T) { |
2924 class _StreamControllerLifecycle extends core.Object { | 2924 class _StreamControllerLifecycle extends core.Object { |
2925 [_recordPause](subscription) { | 2925 [_recordPause](subscription) { |
2926 dart.as(subscription, StreamSubscription$(T)); | 2926 dart.as(subscription, StreamSubscription$(T)); |
2927 } | 2927 } |
2928 [_recordResume](subscription) { | 2928 [_recordResume](subscription) { |
2929 dart.as(subscription, StreamSubscription$(T)); | 2929 dart.as(subscription, StreamSubscription$(T)); |
2930 } | 2930 } |
2931 [_recordCancel](subscription) { | 2931 [_recordCancel](subscription) { |
2932 dart.as(subscription, StreamSubscription$(T)); | 2932 dart.as(subscription, StreamSubscription$(T)); |
2933 return null; | 2933 return null; |
2934 } | 2934 } |
2935 } | 2935 } |
2936 dart.setSignature(_StreamControllerLifecycle, { | 2936 dart.setSignature(_StreamControllerLifecycle, { |
2937 methods: () => ({ | 2937 methods: () => ({ |
2938 [_recordPause]: [dart.void, [StreamSubscription$(T)]], | 2938 [_recordPause]: [dart.void, [StreamSubscription$(T)]], |
2939 [_recordResume]: [dart.void, [StreamSubscription$(T)]], | 2939 [_recordResume]: [dart.void, [StreamSubscription$(T)]], |
2940 [_recordCancel]: [Future, [StreamSubscription$(T)]] | 2940 [_recordCancel]: [Future, [StreamSubscription$(T)]] |
2941 }) | 2941 }) |
2942 }); | 2942 }); |
2943 return _StreamControllerLifecycle; | 2943 return _StreamControllerLifecycle; |
2944 }); | 2944 }); |
2945 let _StreamControllerLifecycle = _StreamControllerLifecycle$(); | 2945 const _StreamControllerLifecycle = _StreamControllerLifecycle$(); |
2946 const _varData = Symbol('_varData'); | 2946 const _varData = Symbol('_varData'); |
2947 const _isInitialState = Symbol('_isInitialState'); | 2947 const _isInitialState = Symbol('_isInitialState'); |
2948 const _subscription = Symbol('_subscription'); | 2948 const _subscription = Symbol('_subscription'); |
2949 const _pendingEvents = Symbol('_pendingEvents'); | 2949 const _pendingEvents = Symbol('_pendingEvents'); |
2950 const _ensurePendingEvents = Symbol('_ensurePendingEvents'); | 2950 const _ensurePendingEvents = Symbol('_ensurePendingEvents'); |
2951 const _badEventState = Symbol('_badEventState'); | 2951 const _badEventState = Symbol('_badEventState'); |
2952 const _StreamController$ = dart.generic(function(T) { | 2952 const _StreamController$ = dart.generic(function(T) { |
2953 class _StreamController extends core.Object { | 2953 class _StreamController extends core.Object { |
2954 _StreamController() { | 2954 _StreamController() { |
2955 this[_varData] = null; | 2955 this[_varData] = null; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3180 [_addError]: [dart.void, [core.Object, core.StackTrace]], | 3180 [_addError]: [dart.void, [core.Object, core.StackTrace]], |
3181 [_close]: [dart.void, []], | 3181 [_close]: [dart.void, []], |
3182 [_subscribe]: [StreamSubscription$(T), [dart.functionType(dart.void, [T]
), core.Function, dart.functionType(dart.void, []), core.bool]], | 3182 [_subscribe]: [StreamSubscription$(T), [dart.functionType(dart.void, [T]
), core.Function, dart.functionType(dart.void, []), core.bool]], |
3183 [_recordCancel]: [Future, [StreamSubscription$(T)]], | 3183 [_recordCancel]: [Future, [StreamSubscription$(T)]], |
3184 [_recordPause]: [dart.void, [StreamSubscription$(T)]], | 3184 [_recordPause]: [dart.void, [StreamSubscription$(T)]], |
3185 [_recordResume]: [dart.void, [StreamSubscription$(T)]] | 3185 [_recordResume]: [dart.void, [StreamSubscription$(T)]] |
3186 }) | 3186 }) |
3187 }); | 3187 }); |
3188 return _StreamController; | 3188 return _StreamController; |
3189 }); | 3189 }); |
3190 let _StreamController = _StreamController$(); | 3190 const _StreamController = _StreamController$(); |
3191 _StreamController._STATE_INITIAL = 0; | 3191 _StreamController._STATE_INITIAL = 0; |
3192 _StreamController._STATE_SUBSCRIBED = 1; | 3192 _StreamController._STATE_SUBSCRIBED = 1; |
3193 _StreamController._STATE_CANCELED = 2; | 3193 _StreamController._STATE_CANCELED = 2; |
3194 _StreamController._STATE_SUBSCRIPTION_MASK = 3; | 3194 _StreamController._STATE_SUBSCRIPTION_MASK = 3; |
3195 _StreamController._STATE_CLOSED = 4; | 3195 _StreamController._STATE_CLOSED = 4; |
3196 _StreamController._STATE_ADDSTREAM = 8; | 3196 _StreamController._STATE_ADDSTREAM = 8; |
3197 const _SyncStreamControllerDispatch$ = dart.generic(function(T) { | 3197 const _SyncStreamControllerDispatch$ = dart.generic(function(T) { |
3198 class _SyncStreamControllerDispatch extends core.Object { | 3198 class _SyncStreamControllerDispatch extends core.Object { |
3199 [_sendData](data) { | 3199 [_sendData](data) { |
3200 dart.as(data, T); | 3200 dart.as(data, T); |
3201 this[_subscription][_add](data); | 3201 this[_subscription][_add](data); |
3202 } | 3202 } |
3203 [_sendError](error, stackTrace) { | 3203 [_sendError](error, stackTrace) { |
3204 this[_subscription][_addError](error, stackTrace); | 3204 this[_subscription][_addError](error, stackTrace); |
3205 } | 3205 } |
3206 [_sendDone]() { | 3206 [_sendDone]() { |
3207 this[_subscription][_close](); | 3207 this[_subscription][_close](); |
3208 } | 3208 } |
3209 } | 3209 } |
3210 _SyncStreamControllerDispatch[dart.implements] = () => [_StreamController$(T
)]; | 3210 _SyncStreamControllerDispatch[dart.implements] = () => [_StreamController$(T
)]; |
3211 dart.setSignature(_SyncStreamControllerDispatch, { | 3211 dart.setSignature(_SyncStreamControllerDispatch, { |
3212 methods: () => ({ | 3212 methods: () => ({ |
3213 [_sendData]: [dart.void, [T]], | 3213 [_sendData]: [dart.void, [T]], |
3214 [_sendError]: [dart.void, [core.Object, core.StackTrace]], | 3214 [_sendError]: [dart.void, [core.Object, core.StackTrace]], |
3215 [_sendDone]: [dart.void, []] | 3215 [_sendDone]: [dart.void, []] |
3216 }) | 3216 }) |
3217 }); | 3217 }); |
3218 return _SyncStreamControllerDispatch; | 3218 return _SyncStreamControllerDispatch; |
3219 }); | 3219 }); |
3220 let _SyncStreamControllerDispatch = _SyncStreamControllerDispatch$(); | 3220 const _SyncStreamControllerDispatch = _SyncStreamControllerDispatch$(); |
3221 const _AsyncStreamControllerDispatch$ = dart.generic(function(T) { | 3221 const _AsyncStreamControllerDispatch$ = dart.generic(function(T) { |
3222 class _AsyncStreamControllerDispatch extends core.Object { | 3222 class _AsyncStreamControllerDispatch extends core.Object { |
3223 [_sendData](data) { | 3223 [_sendData](data) { |
3224 dart.as(data, T); | 3224 dart.as(data, T); |
3225 this[_subscription][_addPending](new _DelayedData(data)); | 3225 this[_subscription][_addPending](new _DelayedData(data)); |
3226 } | 3226 } |
3227 [_sendError](error, stackTrace) { | 3227 [_sendError](error, stackTrace) { |
3228 this[_subscription][_addPending](new _DelayedError(error, stackTrace)); | 3228 this[_subscription][_addPending](new _DelayedError(error, stackTrace)); |
3229 } | 3229 } |
3230 [_sendDone]() { | 3230 [_sendDone]() { |
3231 this[_subscription][_addPending](dart.const(new _DelayedDone())); | 3231 this[_subscription][_addPending](dart.const(new _DelayedDone())); |
3232 } | 3232 } |
3233 } | 3233 } |
3234 _AsyncStreamControllerDispatch[dart.implements] = () => [_StreamController$(
T)]; | 3234 _AsyncStreamControllerDispatch[dart.implements] = () => [_StreamController$(
T)]; |
3235 dart.setSignature(_AsyncStreamControllerDispatch, { | 3235 dart.setSignature(_AsyncStreamControllerDispatch, { |
3236 methods: () => ({ | 3236 methods: () => ({ |
3237 [_sendData]: [dart.void, [T]], | 3237 [_sendData]: [dart.void, [T]], |
3238 [_sendError]: [dart.void, [core.Object, core.StackTrace]], | 3238 [_sendError]: [dart.void, [core.Object, core.StackTrace]], |
3239 [_sendDone]: [dart.void, []] | 3239 [_sendDone]: [dart.void, []] |
3240 }) | 3240 }) |
3241 }); | 3241 }); |
3242 return _AsyncStreamControllerDispatch; | 3242 return _AsyncStreamControllerDispatch; |
3243 }); | 3243 }); |
3244 let _AsyncStreamControllerDispatch = _AsyncStreamControllerDispatch$(); | 3244 const _AsyncStreamControllerDispatch = _AsyncStreamControllerDispatch$(); |
3245 const _AsyncStreamController$ = dart.generic(function(T) { | 3245 const _AsyncStreamController$ = dart.generic(function(T) { |
3246 class _AsyncStreamController extends dart.mixin(_StreamController$(T), _Asyn
cStreamControllerDispatch$(T)) { | 3246 class _AsyncStreamController extends dart.mixin(_StreamController$(T), _Asyn
cStreamControllerDispatch$(T)) { |
3247 _AsyncStreamController(onListen, onPause, onResume, onCancel) { | 3247 _AsyncStreamController(onListen, onPause, onResume, onCancel) { |
3248 this[_onListen] = onListen; | 3248 this[_onListen] = onListen; |
3249 this[_onPause] = onPause; | 3249 this[_onPause] = onPause; |
3250 this[_onResume] = onResume; | 3250 this[_onResume] = onResume; |
3251 this[_onCancel] = onCancel; | 3251 this[_onCancel] = onCancel; |
3252 super._StreamController(); | 3252 super._StreamController(); |
3253 } | 3253 } |
3254 } | 3254 } |
3255 dart.setSignature(_AsyncStreamController, { | 3255 dart.setSignature(_AsyncStreamController, { |
3256 constructors: () => ({_AsyncStreamController: [_AsyncStreamController$(T),
[dart.functionType(dart.void, []), dart.functionType(dart.void, []), dart.funct
ionType(dart.void, []), dart.functionType(dart.dynamic, [])]]}) | 3256 constructors: () => ({_AsyncStreamController: [_AsyncStreamController$(T),
[dart.functionType(dart.void, []), dart.functionType(dart.void, []), dart.funct
ionType(dart.void, []), dart.functionType(dart.dynamic, [])]]}) |
3257 }); | 3257 }); |
3258 return _AsyncStreamController; | 3258 return _AsyncStreamController; |
3259 }); | 3259 }); |
3260 let _AsyncStreamController = _AsyncStreamController$(); | 3260 const _AsyncStreamController = _AsyncStreamController$(); |
3261 const _SyncStreamController$ = dart.generic(function(T) { | 3261 const _SyncStreamController$ = dart.generic(function(T) { |
3262 class _SyncStreamController extends dart.mixin(_StreamController$(T), _SyncS
treamControllerDispatch$(T)) { | 3262 class _SyncStreamController extends dart.mixin(_StreamController$(T), _SyncS
treamControllerDispatch$(T)) { |
3263 _SyncStreamController(onListen, onPause, onResume, onCancel) { | 3263 _SyncStreamController(onListen, onPause, onResume, onCancel) { |
3264 this[_onListen] = onListen; | 3264 this[_onListen] = onListen; |
3265 this[_onPause] = onPause; | 3265 this[_onPause] = onPause; |
3266 this[_onResume] = onResume; | 3266 this[_onResume] = onResume; |
3267 this[_onCancel] = onCancel; | 3267 this[_onCancel] = onCancel; |
3268 super._StreamController(); | 3268 super._StreamController(); |
3269 } | 3269 } |
3270 } | 3270 } |
3271 dart.setSignature(_SyncStreamController, { | 3271 dart.setSignature(_SyncStreamController, { |
3272 constructors: () => ({_SyncStreamController: [_SyncStreamController$(T), [
dart.functionType(dart.void, []), dart.functionType(dart.void, []), dart.functio
nType(dart.void, []), dart.functionType(dart.dynamic, [])]]}) | 3272 constructors: () => ({_SyncStreamController: [_SyncStreamController$(T), [
dart.functionType(dart.void, []), dart.functionType(dart.void, []), dart.functio
nType(dart.void, []), dart.functionType(dart.dynamic, [])]]}) |
3273 }); | 3273 }); |
3274 return _SyncStreamController; | 3274 return _SyncStreamController; |
3275 }); | 3275 }); |
3276 let _SyncStreamController = _SyncStreamController$(); | 3276 const _SyncStreamController = _SyncStreamController$(); |
3277 class _NoCallbacks extends core.Object { | 3277 class _NoCallbacks extends core.Object { |
3278 get [_onListen]() { | 3278 get [_onListen]() { |
3279 return null; | 3279 return null; |
3280 } | 3280 } |
3281 get [_onPause]() { | 3281 get [_onPause]() { |
3282 return null; | 3282 return null; |
3283 } | 3283 } |
3284 get [_onResume]() { | 3284 get [_onResume]() { |
3285 return null; | 3285 return null; |
3286 } | 3286 } |
3287 get [_onCancel]() { | 3287 get [_onCancel]() { |
3288 return null; | 3288 return null; |
3289 } | 3289 } |
3290 } | 3290 } |
3291 const _NoCallbackAsyncStreamController$ = dart.generic(function(T) { | 3291 const _NoCallbackAsyncStreamController$ = dart.generic(function(T) { |
3292 class _NoCallbackAsyncStreamController extends dart.mixin(_StreamController$
(T), _AsyncStreamControllerDispatch$(T), _NoCallbacks) { | 3292 class _NoCallbackAsyncStreamController extends dart.mixin(_StreamController$
(T), _AsyncStreamControllerDispatch$(T), _NoCallbacks) { |
3293 _NoCallbackAsyncStreamController() { | 3293 _NoCallbackAsyncStreamController() { |
3294 super._StreamController(...arguments); | 3294 super._StreamController(...arguments); |
3295 } | 3295 } |
3296 } | 3296 } |
3297 return _NoCallbackAsyncStreamController; | 3297 return _NoCallbackAsyncStreamController; |
3298 }); | 3298 }); |
3299 let _NoCallbackAsyncStreamController = _NoCallbackAsyncStreamController$(); | 3299 const _NoCallbackAsyncStreamController = _NoCallbackAsyncStreamController$(); |
3300 const _NoCallbackSyncStreamController$ = dart.generic(function(T) { | 3300 const _NoCallbackSyncStreamController$ = dart.generic(function(T) { |
3301 class _NoCallbackSyncStreamController extends dart.mixin(_StreamController$(
T), _SyncStreamControllerDispatch$(T), _NoCallbacks) { | 3301 class _NoCallbackSyncStreamController extends dart.mixin(_StreamController$(
T), _SyncStreamControllerDispatch$(T), _NoCallbacks) { |
3302 _NoCallbackSyncStreamController() { | 3302 _NoCallbackSyncStreamController() { |
3303 super._StreamController(...arguments); | 3303 super._StreamController(...arguments); |
3304 } | 3304 } |
3305 } | 3305 } |
3306 return _NoCallbackSyncStreamController; | 3306 return _NoCallbackSyncStreamController; |
3307 }); | 3307 }); |
3308 let _NoCallbackSyncStreamController = _NoCallbackSyncStreamController$(); | 3308 const _NoCallbackSyncStreamController = _NoCallbackSyncStreamController$(); |
3309 const _NotificationHandler = dart.typedef('_NotificationHandler', () => dart.f
unctionType(dart.dynamic, [])); | 3309 const _NotificationHandler = dart.typedef('_NotificationHandler', () => dart.f
unctionType(dart.dynamic, [])); |
3310 function _runGuarded(notificationHandler) { | 3310 function _runGuarded(notificationHandler) { |
3311 if (notificationHandler == null) return null; | 3311 if (notificationHandler == null) return null; |
3312 try { | 3312 try { |
3313 let result = notificationHandler(); | 3313 let result = notificationHandler(); |
3314 if (dart.is(result, Future)) return dart.as(result, Future); | 3314 if (dart.is(result, Future)) return dart.as(result, Future); |
3315 return null; | 3315 return null; |
3316 } catch (e) { | 3316 } catch (e) { |
3317 let s = dart.stackTrace(e); | 3317 let s = dart.stackTrace(e); |
3318 Zone.current.handleUncaughtError(e, s); | 3318 Zone.current.handleUncaughtError(e, s); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3351 constructors: () => ({_StreamSinkWrapper: [_StreamSinkWrapper$(T), [Stream
Controller]]}), | 3351 constructors: () => ({_StreamSinkWrapper: [_StreamSinkWrapper$(T), [Stream
Controller]]}), |
3352 methods: () => ({ | 3352 methods: () => ({ |
3353 add: [dart.void, [T]], | 3353 add: [dart.void, [T]], |
3354 addError: [dart.void, [core.Object], [core.StackTrace]], | 3354 addError: [dart.void, [core.Object], [core.StackTrace]], |
3355 close: [Future, []], | 3355 close: [Future, []], |
3356 addStream: [Future, [Stream$(T)], {cancelOnError: core.bool}] | 3356 addStream: [Future, [Stream$(T)], {cancelOnError: core.bool}] |
3357 }) | 3357 }) |
3358 }); | 3358 }); |
3359 return _StreamSinkWrapper; | 3359 return _StreamSinkWrapper; |
3360 }); | 3360 }); |
3361 let _StreamSinkWrapper = _StreamSinkWrapper$(); | 3361 const _StreamSinkWrapper = _StreamSinkWrapper$(); |
3362 const _AddStreamState$ = dart.generic(function(T) { | 3362 const _AddStreamState$ = dart.generic(function(T) { |
3363 class _AddStreamState extends core.Object { | 3363 class _AddStreamState extends core.Object { |
3364 _AddStreamState(controller, source, cancelOnError) { | 3364 _AddStreamState(controller, source, cancelOnError) { |
3365 this.addStreamFuture = new _Future(); | 3365 this.addStreamFuture = new _Future(); |
3366 this.addSubscription = source.listen(dart.bind(controller, _add), {onErr
or: dart.as(dart.notNull(cancelOnError) ? _AddStreamState$().makeErrorHandler(co
ntroller) : dart.bind(controller, _addError), core.Function), onDone: dart.bind(
controller, _close), cancelOnError: cancelOnError}); | 3366 this.addSubscription = source.listen(dart.bind(controller, _add), {onErr
or: dart.as(dart.notNull(cancelOnError) ? _AddStreamState$().makeErrorHandler(co
ntroller) : dart.bind(controller, _addError), core.Function), onDone: dart.bind(
controller, _close), cancelOnError: cancelOnError}); |
3367 } | 3367 } |
3368 static makeErrorHandler(controller) { | 3368 static makeErrorHandler(controller) { |
3369 return dart.fn((e, s) => { | 3369 return dart.fn((e, s) => { |
3370 controller[_addError](e, s); | 3370 controller[_addError](e, s); |
3371 controller[_close](); | 3371 controller[_close](); |
(...skipping 25 matching lines...) Expand all Loading... |
3397 pause: [dart.void, []], | 3397 pause: [dart.void, []], |
3398 resume: [dart.void, []], | 3398 resume: [dart.void, []], |
3399 cancel: [Future, []], | 3399 cancel: [Future, []], |
3400 complete: [dart.void, []] | 3400 complete: [dart.void, []] |
3401 }), | 3401 }), |
3402 statics: () => ({makeErrorHandler: [dart.dynamic, [_EventSink]]}), | 3402 statics: () => ({makeErrorHandler: [dart.dynamic, [_EventSink]]}), |
3403 names: ['makeErrorHandler'] | 3403 names: ['makeErrorHandler'] |
3404 }); | 3404 }); |
3405 return _AddStreamState; | 3405 return _AddStreamState; |
3406 }); | 3406 }); |
3407 let _AddStreamState = _AddStreamState$(); | 3407 const _AddStreamState = _AddStreamState$(); |
3408 const _StreamControllerAddStreamState$ = dart.generic(function(T) { | 3408 const _StreamControllerAddStreamState$ = dart.generic(function(T) { |
3409 class _StreamControllerAddStreamState extends _AddStreamState$(T) { | 3409 class _StreamControllerAddStreamState extends _AddStreamState$(T) { |
3410 _StreamControllerAddStreamState(controller, varData, source, cancelOnError
) { | 3410 _StreamControllerAddStreamState(controller, varData, source, cancelOnError
) { |
3411 this.varData = varData; | 3411 this.varData = varData; |
3412 super._AddStreamState(dart.as(controller, _EventSink$(T)), source, cance
lOnError); | 3412 super._AddStreamState(dart.as(controller, _EventSink$(T)), source, cance
lOnError); |
3413 if (dart.notNull(controller.isPaused)) { | 3413 if (dart.notNull(controller.isPaused)) { |
3414 this.addSubscription.pause(); | 3414 this.addSubscription.pause(); |
3415 } | 3415 } |
3416 } | 3416 } |
3417 } | 3417 } |
3418 dart.setSignature(_StreamControllerAddStreamState, { | 3418 dart.setSignature(_StreamControllerAddStreamState, { |
3419 constructors: () => ({_StreamControllerAddStreamState: [_StreamControllerA
ddStreamState$(T), [_StreamController, dart.dynamic, Stream, core.bool]]}) | 3419 constructors: () => ({_StreamControllerAddStreamState: [_StreamControllerA
ddStreamState$(T), [_StreamController, dart.dynamic, Stream, core.bool]]}) |
3420 }); | 3420 }); |
3421 return _StreamControllerAddStreamState; | 3421 return _StreamControllerAddStreamState; |
3422 }); | 3422 }); |
3423 let _StreamControllerAddStreamState = _StreamControllerAddStreamState$(); | 3423 const _StreamControllerAddStreamState = _StreamControllerAddStreamState$(); |
3424 const _EventSink$ = dart.generic(function(T) { | 3424 const _EventSink$ = dart.generic(function(T) { |
3425 class _EventSink extends core.Object {} | 3425 class _EventSink extends core.Object {} |
3426 return _EventSink; | 3426 return _EventSink; |
3427 }); | 3427 }); |
3428 let _EventSink = _EventSink$(); | 3428 const _EventSink = _EventSink$(); |
3429 const _EventDispatch$ = dart.generic(function(T) { | 3429 const _EventDispatch$ = dart.generic(function(T) { |
3430 class _EventDispatch extends core.Object {} | 3430 class _EventDispatch extends core.Object {} |
3431 return _EventDispatch; | 3431 return _EventDispatch; |
3432 }); | 3432 }); |
3433 let _EventDispatch = _EventDispatch$(); | 3433 const _EventDispatch = _EventDispatch$(); |
3434 _BufferingStreamSubscription._STATE_CANCEL_ON_ERROR = 1; | 3434 _BufferingStreamSubscription._STATE_CANCEL_ON_ERROR = 1; |
3435 _BufferingStreamSubscription._STATE_CLOSED = 2; | 3435 _BufferingStreamSubscription._STATE_CLOSED = 2; |
3436 _BufferingStreamSubscription._STATE_INPUT_PAUSED = 4; | 3436 _BufferingStreamSubscription._STATE_INPUT_PAUSED = 4; |
3437 _BufferingStreamSubscription._STATE_CANCELED = 8; | 3437 _BufferingStreamSubscription._STATE_CANCELED = 8; |
3438 _BufferingStreamSubscription._STATE_WAIT_FOR_CANCEL = 16; | 3438 _BufferingStreamSubscription._STATE_WAIT_FOR_CANCEL = 16; |
3439 _BufferingStreamSubscription._STATE_IN_CALLBACK = 32; | 3439 _BufferingStreamSubscription._STATE_IN_CALLBACK = 32; |
3440 _BufferingStreamSubscription._STATE_HAS_PENDING = 64; | 3440 _BufferingStreamSubscription._STATE_HAS_PENDING = 64; |
3441 _BufferingStreamSubscription._STATE_PAUSE_COUNT = 128; | 3441 _BufferingStreamSubscription._STATE_PAUSE_COUNT = 128; |
3442 _BufferingStreamSubscription._STATE_PAUSE_COUNT_SHIFT = 7; | 3442 _BufferingStreamSubscription._STATE_PAUSE_COUNT_SHIFT = 7; |
3443 const _EventGenerator = dart.typedef('_EventGenerator', () => dart.functionTyp
e(_PendingEvents, [])); | 3443 const _EventGenerator = dart.typedef('_EventGenerator', () => dart.functionTyp
e(_PendingEvents, [])); |
(...skipping 13 matching lines...) Expand all Loading... |
3457 _[_setPendingEvents](this[_pending]()); | 3457 _[_setPendingEvents](this[_pending]()); |
3458 return _; | 3458 return _; |
3459 } | 3459 } |
3460 } | 3460 } |
3461 dart.setSignature(_GeneratedStreamImpl, { | 3461 dart.setSignature(_GeneratedStreamImpl, { |
3462 constructors: () => ({_GeneratedStreamImpl: [_GeneratedStreamImpl$(T), [_E
ventGenerator]]}), | 3462 constructors: () => ({_GeneratedStreamImpl: [_GeneratedStreamImpl$(T), [_E
ventGenerator]]}), |
3463 methods: () => ({[_createSubscription]: [StreamSubscription$(T), [dart.fun
ctionType(dart.void, [T]), core.Function, dart.functionType(dart.void, []), core
.bool]]}) | 3463 methods: () => ({[_createSubscription]: [StreamSubscription$(T), [dart.fun
ctionType(dart.void, [T]), core.Function, dart.functionType(dart.void, []), core
.bool]]}) |
3464 }); | 3464 }); |
3465 return _GeneratedStreamImpl; | 3465 return _GeneratedStreamImpl; |
3466 }); | 3466 }); |
3467 let _GeneratedStreamImpl = _GeneratedStreamImpl$(); | 3467 const _GeneratedStreamImpl = _GeneratedStreamImpl$(); |
3468 const _eventScheduled = Symbol('_eventScheduled'); | 3468 const _eventScheduled = Symbol('_eventScheduled'); |
3469 class _PendingEvents extends core.Object { | 3469 class _PendingEvents extends core.Object { |
3470 _PendingEvents() { | 3470 _PendingEvents() { |
3471 this[_state] = _PendingEvents._STATE_UNSCHEDULED; | 3471 this[_state] = _PendingEvents._STATE_UNSCHEDULED; |
3472 } | 3472 } |
3473 get isScheduled() { | 3473 get isScheduled() { |
3474 return this[_state] == _PendingEvents._STATE_SCHEDULED; | 3474 return this[_state] == _PendingEvents._STATE_SCHEDULED; |
3475 } | 3475 } |
3476 get [_eventScheduled]() { | 3476 get [_eventScheduled]() { |
3477 return dart.notNull(this[_state]) >= dart.notNull(_PendingEvents._STATE_SC
HEDULED); | 3477 return dart.notNull(this[_state]) >= dart.notNull(_PendingEvents._STATE_SC
HEDULED); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3540 } | 3540 } |
3541 dart.setSignature(_IterablePendingEvents, { | 3541 dart.setSignature(_IterablePendingEvents, { |
3542 constructors: () => ({_IterablePendingEvents: [_IterablePendingEvents$(T),
[core.Iterable$(T)]]}), | 3542 constructors: () => ({_IterablePendingEvents: [_IterablePendingEvents$(T),
[core.Iterable$(T)]]}), |
3543 methods: () => ({ | 3543 methods: () => ({ |
3544 handleNext: [dart.void, [_EventDispatch]], | 3544 handleNext: [dart.void, [_EventDispatch]], |
3545 clear: [dart.void, []] | 3545 clear: [dart.void, []] |
3546 }) | 3546 }) |
3547 }); | 3547 }); |
3548 return _IterablePendingEvents; | 3548 return _IterablePendingEvents; |
3549 }); | 3549 }); |
3550 let _IterablePendingEvents = _IterablePendingEvents$(); | 3550 const _IterablePendingEvents = _IterablePendingEvents$(); |
3551 const _DataHandler$ = dart.generic(function(T) { | 3551 const _DataHandler$ = dart.generic(function(T) { |
3552 const _DataHandler = dart.typedef('_DataHandler', () => dart.functionType(da
rt.void, [T])); | 3552 const _DataHandler = dart.typedef('_DataHandler', () => dart.functionType(da
rt.void, [T])); |
3553 return _DataHandler; | 3553 return _DataHandler; |
3554 }); | 3554 }); |
3555 let _DataHandler = _DataHandler$(); | 3555 const _DataHandler = _DataHandler$(); |
3556 const _DoneHandler = dart.typedef('_DoneHandler', () => dart.functionType(dart
.void, [])); | 3556 const _DoneHandler = dart.typedef('_DoneHandler', () => dart.functionType(dart
.void, [])); |
3557 function _nullDataHandler(value) { | 3557 function _nullDataHandler(value) { |
3558 } | 3558 } |
3559 dart.fn(_nullDataHandler, dart.void, [dart.dynamic]); | 3559 dart.fn(_nullDataHandler, dart.void, [dart.dynamic]); |
3560 function _nullErrorHandler(error, stackTrace) { | 3560 function _nullErrorHandler(error, stackTrace) { |
3561 if (stackTrace === void 0) stackTrace = null; | 3561 if (stackTrace === void 0) stackTrace = null; |
3562 Zone.current.handleUncaughtError(error, stackTrace); | 3562 Zone.current.handleUncaughtError(error, stackTrace); |
3563 } | 3563 } |
3564 dart.fn(_nullErrorHandler, dart.void, [dart.dynamic], [core.StackTrace]); | 3564 dart.fn(_nullErrorHandler, dart.void, [dart.dynamic], [core.StackTrace]); |
3565 function _nullDoneHandler() { | 3565 function _nullDoneHandler() { |
3566 } | 3566 } |
3567 dart.fn(_nullDoneHandler, dart.void, []); | 3567 dart.fn(_nullDoneHandler, dart.void, []); |
3568 const _DelayedEvent$ = dart.generic(function(T) { | 3568 const _DelayedEvent$ = dart.generic(function(T) { |
3569 class _DelayedEvent extends core.Object { | 3569 class _DelayedEvent extends core.Object { |
3570 _DelayedEvent() { | 3570 _DelayedEvent() { |
3571 this.next = null; | 3571 this.next = null; |
3572 } | 3572 } |
3573 } | 3573 } |
3574 return _DelayedEvent; | 3574 return _DelayedEvent; |
3575 }); | 3575 }); |
3576 let _DelayedEvent = _DelayedEvent$(); | 3576 const _DelayedEvent = _DelayedEvent$(); |
3577 const _DelayedData$ = dart.generic(function(T) { | 3577 const _DelayedData$ = dart.generic(function(T) { |
3578 class _DelayedData extends _DelayedEvent$(T) { | 3578 class _DelayedData extends _DelayedEvent$(T) { |
3579 _DelayedData(value) { | 3579 _DelayedData(value) { |
3580 this.value = value; | 3580 this.value = value; |
3581 super._DelayedEvent(); | 3581 super._DelayedEvent(); |
3582 } | 3582 } |
3583 perform(dispatch) { | 3583 perform(dispatch) { |
3584 dart.as(dispatch, _EventDispatch$(T)); | 3584 dart.as(dispatch, _EventDispatch$(T)); |
3585 dispatch[_sendData](this.value); | 3585 dispatch[_sendData](this.value); |
3586 } | 3586 } |
3587 } | 3587 } |
3588 dart.setSignature(_DelayedData, { | 3588 dart.setSignature(_DelayedData, { |
3589 constructors: () => ({_DelayedData: [_DelayedData$(T), [T]]}), | 3589 constructors: () => ({_DelayedData: [_DelayedData$(T), [T]]}), |
3590 methods: () => ({perform: [dart.void, [_EventDispatch$(T)]]}) | 3590 methods: () => ({perform: [dart.void, [_EventDispatch$(T)]]}) |
3591 }); | 3591 }); |
3592 return _DelayedData; | 3592 return _DelayedData; |
3593 }); | 3593 }); |
3594 let _DelayedData = _DelayedData$(); | 3594 const _DelayedData = _DelayedData$(); |
3595 class _DelayedError extends _DelayedEvent { | 3595 class _DelayedError extends _DelayedEvent { |
3596 _DelayedError(error, stackTrace) { | 3596 _DelayedError(error, stackTrace) { |
3597 this.error = error; | 3597 this.error = error; |
3598 this.stackTrace = stackTrace; | 3598 this.stackTrace = stackTrace; |
3599 super._DelayedEvent(); | 3599 super._DelayedEvent(); |
3600 } | 3600 } |
3601 perform(dispatch) { | 3601 perform(dispatch) { |
3602 dispatch[_sendError](this.error, this.stackTrace); | 3602 dispatch[_sendError](this.error, this.stackTrace); |
3603 } | 3603 } |
3604 } | 3604 } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3765 onDone: [dart.void, [dart.functionType(dart.void, [])]], | 3765 onDone: [dart.void, [dart.functionType(dart.void, [])]], |
3766 pause: [dart.void, [], [Future]], | 3766 pause: [dart.void, [], [Future]], |
3767 resume: [dart.void, []], | 3767 resume: [dart.void, []], |
3768 cancel: [Future, []], | 3768 cancel: [Future, []], |
3769 asFuture: [Future, [], [dart.dynamic]], | 3769 asFuture: [Future, [], [dart.dynamic]], |
3770 [_sendDone]: [dart.void, []] | 3770 [_sendDone]: [dart.void, []] |
3771 }) | 3771 }) |
3772 }); | 3772 }); |
3773 return _DoneStreamSubscription; | 3773 return _DoneStreamSubscription; |
3774 }); | 3774 }); |
3775 let _DoneStreamSubscription = _DoneStreamSubscription$(); | 3775 const _DoneStreamSubscription = _DoneStreamSubscription$(); |
3776 _DoneStreamSubscription._DONE_SENT = 1; | 3776 _DoneStreamSubscription._DONE_SENT = 1; |
3777 _DoneStreamSubscription._SCHEDULED = 2; | 3777 _DoneStreamSubscription._SCHEDULED = 2; |
3778 _DoneStreamSubscription._PAUSED = 4; | 3778 _DoneStreamSubscription._PAUSED = 4; |
3779 const _source = Symbol('_source'); | 3779 const _source = Symbol('_source'); |
3780 const _onListenHandler = Symbol('_onListenHandler'); | 3780 const _onListenHandler = Symbol('_onListenHandler'); |
3781 const _onCancelHandler = Symbol('_onCancelHandler'); | 3781 const _onCancelHandler = Symbol('_onCancelHandler'); |
3782 const _cancelSubscription = Symbol('_cancelSubscription'); | 3782 const _cancelSubscription = Symbol('_cancelSubscription'); |
3783 const _pauseSubscription = Symbol('_pauseSubscription'); | 3783 const _pauseSubscription = Symbol('_pauseSubscription'); |
3784 const _resumeSubscription = Symbol('_resumeSubscription'); | 3784 const _resumeSubscription = Symbol('_resumeSubscription'); |
3785 const _isSubscriptionPaused = Symbol('_isSubscriptionPaused'); | 3785 const _isSubscriptionPaused = Symbol('_isSubscriptionPaused'); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3856 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], | 3856 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], |
3857 [_onCancel]: [dart.void, []], | 3857 [_onCancel]: [dart.void, []], |
3858 [_onListen]: [dart.void, []], | 3858 [_onListen]: [dart.void, []], |
3859 [_cancelSubscription]: [dart.void, []], | 3859 [_cancelSubscription]: [dart.void, []], |
3860 [_pauseSubscription]: [dart.void, [Future]], | 3860 [_pauseSubscription]: [dart.void, [Future]], |
3861 [_resumeSubscription]: [dart.void, []] | 3861 [_resumeSubscription]: [dart.void, []] |
3862 }) | 3862 }) |
3863 }); | 3863 }); |
3864 return _AsBroadcastStream; | 3864 return _AsBroadcastStream; |
3865 }); | 3865 }); |
3866 let _AsBroadcastStream = _AsBroadcastStream$(); | 3866 const _AsBroadcastStream = _AsBroadcastStream$(); |
3867 const _BroadcastSubscriptionWrapper$ = dart.generic(function(T) { | 3867 const _BroadcastSubscriptionWrapper$ = dart.generic(function(T) { |
3868 class _BroadcastSubscriptionWrapper extends core.Object { | 3868 class _BroadcastSubscriptionWrapper extends core.Object { |
3869 _BroadcastSubscriptionWrapper(stream) { | 3869 _BroadcastSubscriptionWrapper(stream) { |
3870 this[_stream] = stream; | 3870 this[_stream] = stream; |
3871 } | 3871 } |
3872 onData(handleData) { | 3872 onData(handleData) { |
3873 dart.as(handleData, dart.functionType(dart.void, [T])); | 3873 dart.as(handleData, dart.functionType(dart.void, [T])); |
3874 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); | 3874 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); |
3875 } | 3875 } |
3876 onError(handleError) { | 3876 onError(handleError) { |
(...skipping 30 matching lines...) Expand all Loading... |
3907 onError: [dart.void, [core.Function]], | 3907 onError: [dart.void, [core.Function]], |
3908 onDone: [dart.void, [dart.functionType(dart.void, [])]], | 3908 onDone: [dart.void, [dart.functionType(dart.void, [])]], |
3909 pause: [dart.void, [], [Future]], | 3909 pause: [dart.void, [], [Future]], |
3910 resume: [dart.void, []], | 3910 resume: [dart.void, []], |
3911 cancel: [Future, []], | 3911 cancel: [Future, []], |
3912 asFuture: [Future, [], [dart.dynamic]] | 3912 asFuture: [Future, [], [dart.dynamic]] |
3913 }) | 3913 }) |
3914 }); | 3914 }); |
3915 return _BroadcastSubscriptionWrapper; | 3915 return _BroadcastSubscriptionWrapper; |
3916 }); | 3916 }); |
3917 let _BroadcastSubscriptionWrapper = _BroadcastSubscriptionWrapper$(); | 3917 const _BroadcastSubscriptionWrapper = _BroadcastSubscriptionWrapper$(); |
3918 const _current = Symbol('_current'); | 3918 const _current = Symbol('_current'); |
3919 const _futureOrPrefetch = Symbol('_futureOrPrefetch'); | 3919 const _futureOrPrefetch = Symbol('_futureOrPrefetch'); |
3920 const _clear = Symbol('_clear'); | 3920 const _clear = Symbol('_clear'); |
3921 const _StreamIteratorImpl$ = dart.generic(function(T) { | 3921 const _StreamIteratorImpl$ = dart.generic(function(T) { |
3922 class _StreamIteratorImpl extends core.Object { | 3922 class _StreamIteratorImpl extends core.Object { |
3923 _StreamIteratorImpl(stream) { | 3923 _StreamIteratorImpl(stream) { |
3924 this[_subscription] = null; | 3924 this[_subscription] = null; |
3925 this[_current] = null; | 3925 this[_current] = null; |
3926 this[_futureOrPrefetch] = null; | 3926 this[_futureOrPrefetch] = null; |
3927 this[_state] = _StreamIteratorImpl$()._STATE_FOUND; | 3927 this[_state] = _StreamIteratorImpl$()._STATE_FOUND; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4032 moveNext: [Future$(core.bool), []], | 4032 moveNext: [Future$(core.bool), []], |
4033 [_clear]: [dart.void, []], | 4033 [_clear]: [dart.void, []], |
4034 cancel: [Future, []], | 4034 cancel: [Future, []], |
4035 [_onData]: [dart.void, [T]], | 4035 [_onData]: [dart.void, [T]], |
4036 [_onError]: [dart.void, [core.Object], [core.StackTrace]], | 4036 [_onError]: [dart.void, [core.Object], [core.StackTrace]], |
4037 [_onDone]: [dart.void, []] | 4037 [_onDone]: [dart.void, []] |
4038 }) | 4038 }) |
4039 }); | 4039 }); |
4040 return _StreamIteratorImpl; | 4040 return _StreamIteratorImpl; |
4041 }); | 4041 }); |
4042 let _StreamIteratorImpl = _StreamIteratorImpl$(); | 4042 const _StreamIteratorImpl = _StreamIteratorImpl$(); |
4043 _StreamIteratorImpl._STATE_FOUND = 0; | 4043 _StreamIteratorImpl._STATE_FOUND = 0; |
4044 _StreamIteratorImpl._STATE_DONE = 1; | 4044 _StreamIteratorImpl._STATE_DONE = 1; |
4045 _StreamIteratorImpl._STATE_MOVING = 2; | 4045 _StreamIteratorImpl._STATE_MOVING = 2; |
4046 _StreamIteratorImpl._STATE_EXTRA_DATA = 3; | 4046 _StreamIteratorImpl._STATE_EXTRA_DATA = 3; |
4047 _StreamIteratorImpl._STATE_EXTRA_ERROR = 4; | 4047 _StreamIteratorImpl._STATE_EXTRA_ERROR = 4; |
4048 _StreamIteratorImpl._STATE_EXTRA_DONE = 5; | 4048 _StreamIteratorImpl._STATE_EXTRA_DONE = 5; |
4049 const __CastType20$ = dart.generic(function(T) { | 4049 const __CastType20$ = dart.generic(function(T) { |
4050 const __CastType20 = dart.typedef('__CastType20', () => dart.functionType(da
rt.void, [T])); | 4050 const __CastType20 = dart.typedef('__CastType20', () => dart.functionType(da
rt.void, [T])); |
4051 return __CastType20; | 4051 return __CastType20; |
4052 }); | 4052 }); |
4053 let __CastType20 = __CastType20$(); | 4053 const __CastType20 = __CastType20$(); |
4054 const __CastType22 = dart.typedef('__CastType22', () => dart.functionType(dart
.dynamic, [dart.dynamic, dart.dynamic])); | 4054 const __CastType22 = dart.typedef('__CastType22', () => dart.functionType(dart
.dynamic, [dart.dynamic, dart.dynamic])); |
4055 const __CastType25 = dart.typedef('__CastType25', () => dart.functionType(dart
.dynamic, [dart.dynamic])); | 4055 const __CastType25 = dart.typedef('__CastType25', () => dart.functionType(dart
.dynamic, [dart.dynamic])); |
4056 function _runUserCode(userCode, onSuccess, onError) { | 4056 function _runUserCode(userCode, onSuccess, onError) { |
4057 try { | 4057 try { |
4058 dart.dcall(onSuccess, userCode()); | 4058 dart.dcall(onSuccess, userCode()); |
4059 } catch (e) { | 4059 } catch (e) { |
4060 let s = dart.stackTrace(e); | 4060 let s = dart.stackTrace(e); |
4061 let replacement = Zone.current.errorCallback(e, s); | 4061 let replacement = Zone.current.errorCallback(e, s); |
4062 if (replacement == null) { | 4062 if (replacement == null) { |
4063 dart.dcall(onError, e, s); | 4063 dart.dcall(onError, e, s); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4147 methods: () => ({ | 4147 methods: () => ({ |
4148 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], | 4148 listen: [StreamSubscription$(T), [dart.functionType(dart.void, [T])], {o
nError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError:
core.bool}], |
4149 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], | 4149 [_createSubscription]: [StreamSubscription$(T), [dart.functionType(dart.
void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]], |
4150 [_handleData]: [dart.void, [S, _EventSink$(T)]], | 4150 [_handleData]: [dart.void, [S, _EventSink$(T)]], |
4151 [_handleError]: [dart.void, [dart.dynamic, core.StackTrace, _EventSink$(
T)]], | 4151 [_handleError]: [dart.void, [dart.dynamic, core.StackTrace, _EventSink$(
T)]], |
4152 [_handleDone]: [dart.void, [_EventSink$(T)]] | 4152 [_handleDone]: [dart.void, [_EventSink$(T)]] |
4153 }) | 4153 }) |
4154 }); | 4154 }); |
4155 return _ForwardingStream; | 4155 return _ForwardingStream; |
4156 }); | 4156 }); |
4157 let _ForwardingStream = _ForwardingStream$(); | 4157 const _ForwardingStream = _ForwardingStream$(); |
4158 const _ForwardingStreamSubscription$ = dart.generic(function(S, T) { | 4158 const _ForwardingStreamSubscription$ = dart.generic(function(S, T) { |
4159 class _ForwardingStreamSubscription extends _BufferingStreamSubscription$(T)
{ | 4159 class _ForwardingStreamSubscription extends _BufferingStreamSubscription$(T)
{ |
4160 _ForwardingStreamSubscription(stream, onData, onError, onDone, cancelOnErr
or) { | 4160 _ForwardingStreamSubscription(stream, onData, onError, onDone, cancelOnErr
or) { |
4161 this[_stream] = stream; | 4161 this[_stream] = stream; |
4162 this[_subscription] = null; | 4162 this[_subscription] = null; |
4163 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); | 4163 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); |
4164 this[_subscription] = this[_stream][_source].listen(dart.bind(this, _han
dleData), {onError: dart.bind(this, _handleError), onDone: dart.bind(this, _hand
leDone)}); | 4164 this[_subscription] = this[_stream][_source].listen(dart.bind(this, _han
dleData), {onError: dart.bind(this, _handleError), onDone: dart.bind(this, _hand
leDone)}); |
4165 } | 4165 } |
4166 [_add](data) { | 4166 [_add](data) { |
4167 dart.as(data, T); | 4167 dart.as(data, T); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4203 constructors: () => ({_ForwardingStreamSubscription: [_ForwardingStreamSub
scription$(S, T), [_ForwardingStream$(S, T), dart.functionType(dart.void, [T]),
core.Function, dart.functionType(dart.void, []), core.bool]]}), | 4203 constructors: () => ({_ForwardingStreamSubscription: [_ForwardingStreamSub
scription$(S, T), [_ForwardingStream$(S, T), dart.functionType(dart.void, [T]),
core.Function, dart.functionType(dart.void, []), core.bool]]}), |
4204 methods: () => ({ | 4204 methods: () => ({ |
4205 [_add]: [dart.void, [T]], | 4205 [_add]: [dart.void, [T]], |
4206 [_handleData]: [dart.void, [S]], | 4206 [_handleData]: [dart.void, [S]], |
4207 [_handleError]: [dart.void, [dart.dynamic, core.StackTrace]], | 4207 [_handleError]: [dart.void, [dart.dynamic, core.StackTrace]], |
4208 [_handleDone]: [dart.void, []] | 4208 [_handleDone]: [dart.void, []] |
4209 }) | 4209 }) |
4210 }); | 4210 }); |
4211 return _ForwardingStreamSubscription; | 4211 return _ForwardingStreamSubscription; |
4212 }); | 4212 }); |
4213 let _ForwardingStreamSubscription = _ForwardingStreamSubscription$(); | 4213 const _ForwardingStreamSubscription = _ForwardingStreamSubscription$(); |
4214 const _Predicate$ = dart.generic(function(T) { | 4214 const _Predicate$ = dart.generic(function(T) { |
4215 const _Predicate = dart.typedef('_Predicate', () => dart.functionType(core.b
ool, [T])); | 4215 const _Predicate = dart.typedef('_Predicate', () => dart.functionType(core.b
ool, [T])); |
4216 return _Predicate; | 4216 return _Predicate; |
4217 }); | 4217 }); |
4218 let _Predicate = _Predicate$(); | 4218 const _Predicate = _Predicate$(); |
4219 function _addErrorWithReplacement(sink, error, stackTrace) { | 4219 function _addErrorWithReplacement(sink, error, stackTrace) { |
4220 let replacement = Zone.current.errorCallback(error, dart.as(stackTrace, core
.StackTrace)); | 4220 let replacement = Zone.current.errorCallback(error, dart.as(stackTrace, core
.StackTrace)); |
4221 if (replacement != null) { | 4221 if (replacement != null) { |
4222 error = _nonNullError(replacement.error); | 4222 error = _nonNullError(replacement.error); |
4223 stackTrace = replacement.stackTrace; | 4223 stackTrace = replacement.stackTrace; |
4224 } | 4224 } |
4225 sink[_addError](error, dart.as(stackTrace, core.StackTrace)); | 4225 sink[_addError](error, dart.as(stackTrace, core.StackTrace)); |
4226 } | 4226 } |
4227 dart.fn(_addErrorWithReplacement, dart.void, [_EventSink, dart.dynamic, dart.d
ynamic]); | 4227 dart.fn(_addErrorWithReplacement, dart.void, [_EventSink, dart.dynamic, dart.d
ynamic]); |
4228 const _test = Symbol('_test'); | 4228 const _test = Symbol('_test'); |
(...skipping 19 matching lines...) Expand all Loading... |
4248 sink[_add](inputEvent); | 4248 sink[_add](inputEvent); |
4249 } | 4249 } |
4250 } | 4250 } |
4251 } | 4251 } |
4252 dart.setSignature(_WhereStream, { | 4252 dart.setSignature(_WhereStream, { |
4253 constructors: () => ({_WhereStream: [_WhereStream$(T), [Stream$(T), dart.f
unctionType(core.bool, [T])]]}), | 4253 constructors: () => ({_WhereStream: [_WhereStream$(T), [Stream$(T), dart.f
unctionType(core.bool, [T])]]}), |
4254 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4254 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4255 }); | 4255 }); |
4256 return _WhereStream; | 4256 return _WhereStream; |
4257 }); | 4257 }); |
4258 let _WhereStream = _WhereStream$(); | 4258 const _WhereStream = _WhereStream$(); |
4259 const _Transformation$ = dart.generic(function(S, T) { | 4259 const _Transformation$ = dart.generic(function(S, T) { |
4260 const _Transformation = dart.typedef('_Transformation', () => dart.functionT
ype(T, [S])); | 4260 const _Transformation = dart.typedef('_Transformation', () => dart.functionT
ype(T, [S])); |
4261 return _Transformation; | 4261 return _Transformation; |
4262 }); | 4262 }); |
4263 let _Transformation = _Transformation$(); | 4263 const _Transformation = _Transformation$(); |
4264 const _transform = Symbol('_transform'); | 4264 const _transform = Symbol('_transform'); |
4265 const _MapStream$ = dart.generic(function(S, T) { | 4265 const _MapStream$ = dart.generic(function(S, T) { |
4266 class _MapStream extends _ForwardingStream$(S, T) { | 4266 class _MapStream extends _ForwardingStream$(S, T) { |
4267 _MapStream(source, transform) { | 4267 _MapStream(source, transform) { |
4268 this[_transform] = transform; | 4268 this[_transform] = transform; |
4269 super._ForwardingStream(source); | 4269 super._ForwardingStream(source); |
4270 } | 4270 } |
4271 [_handleData](inputEvent, sink) { | 4271 [_handleData](inputEvent, sink) { |
4272 dart.as(inputEvent, S); | 4272 dart.as(inputEvent, S); |
4273 dart.as(sink, _EventSink$(T)); | 4273 dart.as(sink, _EventSink$(T)); |
4274 let outputEvent = null; | 4274 let outputEvent = null; |
4275 try { | 4275 try { |
4276 outputEvent = dart.as(dart.dcall(this[_transform], inputEvent), T); | 4276 outputEvent = dart.as(dart.dcall(this[_transform], inputEvent), T); |
4277 } catch (e) { | 4277 } catch (e) { |
4278 let s = dart.stackTrace(e); | 4278 let s = dart.stackTrace(e); |
4279 _addErrorWithReplacement(sink, e, s); | 4279 _addErrorWithReplacement(sink, e, s); |
4280 return; | 4280 return; |
4281 } | 4281 } |
4282 | 4282 |
4283 sink[_add](outputEvent); | 4283 sink[_add](outputEvent); |
4284 } | 4284 } |
4285 } | 4285 } |
4286 dart.setSignature(_MapStream, { | 4286 dart.setSignature(_MapStream, { |
4287 constructors: () => ({_MapStream: [_MapStream$(S, T), [Stream$(S), dart.fu
nctionType(T, [S])]]}), | 4287 constructors: () => ({_MapStream: [_MapStream$(S, T), [Stream$(S), dart.fu
nctionType(T, [S])]]}), |
4288 methods: () => ({[_handleData]: [dart.void, [S, _EventSink$(T)]]}) | 4288 methods: () => ({[_handleData]: [dart.void, [S, _EventSink$(T)]]}) |
4289 }); | 4289 }); |
4290 return _MapStream; | 4290 return _MapStream; |
4291 }); | 4291 }); |
4292 let _MapStream = _MapStream$(); | 4292 const _MapStream = _MapStream$(); |
4293 const _expand = Symbol('_expand'); | 4293 const _expand = Symbol('_expand'); |
4294 const _ExpandStream$ = dart.generic(function(S, T) { | 4294 const _ExpandStream$ = dart.generic(function(S, T) { |
4295 class _ExpandStream extends _ForwardingStream$(S, T) { | 4295 class _ExpandStream extends _ForwardingStream$(S, T) { |
4296 _ExpandStream(source, expand) { | 4296 _ExpandStream(source, expand) { |
4297 this[_expand] = expand; | 4297 this[_expand] = expand; |
4298 super._ForwardingStream(source); | 4298 super._ForwardingStream(source); |
4299 } | 4299 } |
4300 [_handleData](inputEvent, sink) { | 4300 [_handleData](inputEvent, sink) { |
4301 dart.as(inputEvent, S); | 4301 dart.as(inputEvent, S); |
4302 dart.as(sink, _EventSink$(T)); | 4302 dart.as(sink, _EventSink$(T)); |
4303 try { | 4303 try { |
4304 for (let value of this[_expand](inputEvent)) { | 4304 for (let value of this[_expand](inputEvent)) { |
4305 sink[_add](value); | 4305 sink[_add](value); |
4306 } | 4306 } |
4307 } catch (e) { | 4307 } catch (e) { |
4308 let s = dart.stackTrace(e); | 4308 let s = dart.stackTrace(e); |
4309 _addErrorWithReplacement(sink, e, s); | 4309 _addErrorWithReplacement(sink, e, s); |
4310 } | 4310 } |
4311 | 4311 |
4312 } | 4312 } |
4313 } | 4313 } |
4314 dart.setSignature(_ExpandStream, { | 4314 dart.setSignature(_ExpandStream, { |
4315 constructors: () => ({_ExpandStream: [_ExpandStream$(S, T), [Stream$(S), d
art.functionType(core.Iterable$(T), [S])]]}), | 4315 constructors: () => ({_ExpandStream: [_ExpandStream$(S, T), [Stream$(S), d
art.functionType(core.Iterable$(T), [S])]]}), |
4316 methods: () => ({[_handleData]: [dart.void, [S, _EventSink$(T)]]}) | 4316 methods: () => ({[_handleData]: [dart.void, [S, _EventSink$(T)]]}) |
4317 }); | 4317 }); |
4318 return _ExpandStream; | 4318 return _ExpandStream; |
4319 }); | 4319 }); |
4320 let _ExpandStream = _ExpandStream$(); | 4320 const _ExpandStream = _ExpandStream$(); |
4321 const _ErrorTest = dart.typedef('_ErrorTest', () => dart.functionType(core.boo
l, [dart.dynamic])); | 4321 const _ErrorTest = dart.typedef('_ErrorTest', () => dart.functionType(core.boo
l, [dart.dynamic])); |
4322 const _HandleErrorStream$ = dart.generic(function(T) { | 4322 const _HandleErrorStream$ = dart.generic(function(T) { |
4323 class _HandleErrorStream extends _ForwardingStream$(T, T) { | 4323 class _HandleErrorStream extends _ForwardingStream$(T, T) { |
4324 _HandleErrorStream(source, onError, test) { | 4324 _HandleErrorStream(source, onError, test) { |
4325 this[_transform] = onError; | 4325 this[_transform] = onError; |
4326 this[_test] = test; | 4326 this[_test] = test; |
4327 super._ForwardingStream(source); | 4327 super._ForwardingStream(source); |
4328 } | 4328 } |
4329 [_handleError](error, stackTrace, sink) { | 4329 [_handleError](error, stackTrace, sink) { |
4330 dart.as(sink, _EventSink$(T)); | 4330 dart.as(sink, _EventSink$(T)); |
(...skipping 25 matching lines...) Expand all Loading... |
4356 sink[_addError](error, stackTrace); | 4356 sink[_addError](error, stackTrace); |
4357 } | 4357 } |
4358 } | 4358 } |
4359 } | 4359 } |
4360 dart.setSignature(_HandleErrorStream, { | 4360 dart.setSignature(_HandleErrorStream, { |
4361 constructors: () => ({_HandleErrorStream: [_HandleErrorStream$(T), [Stream
$(T), core.Function, dart.functionType(core.bool, [dart.dynamic])]]}), | 4361 constructors: () => ({_HandleErrorStream: [_HandleErrorStream$(T), [Stream
$(T), core.Function, dart.functionType(core.bool, [dart.dynamic])]]}), |
4362 methods: () => ({[_handleError]: [dart.void, [core.Object, core.StackTrace
, _EventSink$(T)]]}) | 4362 methods: () => ({[_handleError]: [dart.void, [core.Object, core.StackTrace
, _EventSink$(T)]]}) |
4363 }); | 4363 }); |
4364 return _HandleErrorStream; | 4364 return _HandleErrorStream; |
4365 }); | 4365 }); |
4366 let _HandleErrorStream = _HandleErrorStream$(); | 4366 const _HandleErrorStream = _HandleErrorStream$(); |
4367 const _remaining = Symbol('_remaining'); | 4367 const _remaining = Symbol('_remaining'); |
4368 const _TakeStream$ = dart.generic(function(T) { | 4368 const _TakeStream$ = dart.generic(function(T) { |
4369 class _TakeStream extends _ForwardingStream$(T, T) { | 4369 class _TakeStream extends _ForwardingStream$(T, T) { |
4370 _TakeStream(source, count) { | 4370 _TakeStream(source, count) { |
4371 this[_remaining] = count; | 4371 this[_remaining] = count; |
4372 super._ForwardingStream(source); | 4372 super._ForwardingStream(source); |
4373 if (!(typeof count == 'number')) dart.throw(new core.ArgumentError(count
)); | 4373 if (!(typeof count == 'number')) dart.throw(new core.ArgumentError(count
)); |
4374 } | 4374 } |
4375 [_handleData](inputEvent, sink) { | 4375 [_handleData](inputEvent, sink) { |
4376 dart.as(inputEvent, T); | 4376 dart.as(inputEvent, T); |
4377 dart.as(sink, _EventSink$(T)); | 4377 dart.as(sink, _EventSink$(T)); |
4378 if (dart.notNull(this[_remaining]) > 0) { | 4378 if (dart.notNull(this[_remaining]) > 0) { |
4379 sink[_add](inputEvent); | 4379 sink[_add](inputEvent); |
4380 this[_remaining] = dart.notNull(this[_remaining]) - 1; | 4380 this[_remaining] = dart.notNull(this[_remaining]) - 1; |
4381 if (this[_remaining] == 0) { | 4381 if (this[_remaining] == 0) { |
4382 sink[_close](); | 4382 sink[_close](); |
4383 } | 4383 } |
4384 } | 4384 } |
4385 } | 4385 } |
4386 } | 4386 } |
4387 dart.setSignature(_TakeStream, { | 4387 dart.setSignature(_TakeStream, { |
4388 constructors: () => ({_TakeStream: [_TakeStream$(T), [Stream$(T), core.int
]]}), | 4388 constructors: () => ({_TakeStream: [_TakeStream$(T), [Stream$(T), core.int
]]}), |
4389 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4389 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4390 }); | 4390 }); |
4391 return _TakeStream; | 4391 return _TakeStream; |
4392 }); | 4392 }); |
4393 let _TakeStream = _TakeStream$(); | 4393 const _TakeStream = _TakeStream$(); |
4394 const _TakeWhileStream$ = dart.generic(function(T) { | 4394 const _TakeWhileStream$ = dart.generic(function(T) { |
4395 class _TakeWhileStream extends _ForwardingStream$(T, T) { | 4395 class _TakeWhileStream extends _ForwardingStream$(T, T) { |
4396 _TakeWhileStream(source, test) { | 4396 _TakeWhileStream(source, test) { |
4397 this[_test] = test; | 4397 this[_test] = test; |
4398 super._ForwardingStream(source); | 4398 super._ForwardingStream(source); |
4399 } | 4399 } |
4400 [_handleData](inputEvent, sink) { | 4400 [_handleData](inputEvent, sink) { |
4401 dart.as(inputEvent, T); | 4401 dart.as(inputEvent, T); |
4402 dart.as(sink, _EventSink$(T)); | 4402 dart.as(sink, _EventSink$(T)); |
4403 let satisfies = null; | 4403 let satisfies = null; |
(...skipping 12 matching lines...) Expand all Loading... |
4416 sink[_close](); | 4416 sink[_close](); |
4417 } | 4417 } |
4418 } | 4418 } |
4419 } | 4419 } |
4420 dart.setSignature(_TakeWhileStream, { | 4420 dart.setSignature(_TakeWhileStream, { |
4421 constructors: () => ({_TakeWhileStream: [_TakeWhileStream$(T), [Stream$(T)
, dart.functionType(core.bool, [T])]]}), | 4421 constructors: () => ({_TakeWhileStream: [_TakeWhileStream$(T), [Stream$(T)
, dart.functionType(core.bool, [T])]]}), |
4422 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4422 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4423 }); | 4423 }); |
4424 return _TakeWhileStream; | 4424 return _TakeWhileStream; |
4425 }); | 4425 }); |
4426 let _TakeWhileStream = _TakeWhileStream$(); | 4426 const _TakeWhileStream = _TakeWhileStream$(); |
4427 const _SkipStream$ = dart.generic(function(T) { | 4427 const _SkipStream$ = dart.generic(function(T) { |
4428 class _SkipStream extends _ForwardingStream$(T, T) { | 4428 class _SkipStream extends _ForwardingStream$(T, T) { |
4429 _SkipStream(source, count) { | 4429 _SkipStream(source, count) { |
4430 this[_remaining] = count; | 4430 this[_remaining] = count; |
4431 super._ForwardingStream(source); | 4431 super._ForwardingStream(source); |
4432 if (!(typeof count == 'number') || dart.notNull(count) < 0) dart.throw(n
ew core.ArgumentError(count)); | 4432 if (!(typeof count == 'number') || dart.notNull(count) < 0) dart.throw(n
ew core.ArgumentError(count)); |
4433 } | 4433 } |
4434 [_handleData](inputEvent, sink) { | 4434 [_handleData](inputEvent, sink) { |
4435 dart.as(inputEvent, T); | 4435 dart.as(inputEvent, T); |
4436 dart.as(sink, _EventSink$(T)); | 4436 dart.as(sink, _EventSink$(T)); |
4437 if (dart.notNull(this[_remaining]) > 0) { | 4437 if (dart.notNull(this[_remaining]) > 0) { |
4438 this[_remaining] = dart.notNull(this[_remaining]) - 1; | 4438 this[_remaining] = dart.notNull(this[_remaining]) - 1; |
4439 return; | 4439 return; |
4440 } | 4440 } |
4441 sink[_add](inputEvent); | 4441 sink[_add](inputEvent); |
4442 } | 4442 } |
4443 } | 4443 } |
4444 dart.setSignature(_SkipStream, { | 4444 dart.setSignature(_SkipStream, { |
4445 constructors: () => ({_SkipStream: [_SkipStream$(T), [Stream$(T), core.int
]]}), | 4445 constructors: () => ({_SkipStream: [_SkipStream$(T), [Stream$(T), core.int
]]}), |
4446 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4446 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4447 }); | 4447 }); |
4448 return _SkipStream; | 4448 return _SkipStream; |
4449 }); | 4449 }); |
4450 let _SkipStream = _SkipStream$(); | 4450 const _SkipStream = _SkipStream$(); |
4451 const _hasFailed = Symbol('_hasFailed'); | 4451 const _hasFailed = Symbol('_hasFailed'); |
4452 const _SkipWhileStream$ = dart.generic(function(T) { | 4452 const _SkipWhileStream$ = dart.generic(function(T) { |
4453 class _SkipWhileStream extends _ForwardingStream$(T, T) { | 4453 class _SkipWhileStream extends _ForwardingStream$(T, T) { |
4454 _SkipWhileStream(source, test) { | 4454 _SkipWhileStream(source, test) { |
4455 this[_test] = test; | 4455 this[_test] = test; |
4456 this[_hasFailed] = false; | 4456 this[_hasFailed] = false; |
4457 super._ForwardingStream(source); | 4457 super._ForwardingStream(source); |
4458 } | 4458 } |
4459 [_handleData](inputEvent, sink) { | 4459 [_handleData](inputEvent, sink) { |
4460 dart.as(inputEvent, T); | 4460 dart.as(inputEvent, T); |
(...skipping 17 matching lines...) Expand all Loading... |
4478 sink[_add](inputEvent); | 4478 sink[_add](inputEvent); |
4479 } | 4479 } |
4480 } | 4480 } |
4481 } | 4481 } |
4482 dart.setSignature(_SkipWhileStream, { | 4482 dart.setSignature(_SkipWhileStream, { |
4483 constructors: () => ({_SkipWhileStream: [_SkipWhileStream$(T), [Stream$(T)
, dart.functionType(core.bool, [T])]]}), | 4483 constructors: () => ({_SkipWhileStream: [_SkipWhileStream$(T), [Stream$(T)
, dart.functionType(core.bool, [T])]]}), |
4484 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4484 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4485 }); | 4485 }); |
4486 return _SkipWhileStream; | 4486 return _SkipWhileStream; |
4487 }); | 4487 }); |
4488 let _SkipWhileStream = _SkipWhileStream$(); | 4488 const _SkipWhileStream = _SkipWhileStream$(); |
4489 const _Equality$ = dart.generic(function(T) { | 4489 const _Equality$ = dart.generic(function(T) { |
4490 const _Equality = dart.typedef('_Equality', () => dart.functionType(core.boo
l, [T, T])); | 4490 const _Equality = dart.typedef('_Equality', () => dart.functionType(core.boo
l, [T, T])); |
4491 return _Equality; | 4491 return _Equality; |
4492 }); | 4492 }); |
4493 let _Equality = _Equality$(); | 4493 const _Equality = _Equality$(); |
4494 const _equals = Symbol('_equals'); | 4494 const _equals = Symbol('_equals'); |
4495 const _DistinctStream$ = dart.generic(function(T) { | 4495 const _DistinctStream$ = dart.generic(function(T) { |
4496 class _DistinctStream extends _ForwardingStream$(T, T) { | 4496 class _DistinctStream extends _ForwardingStream$(T, T) { |
4497 _DistinctStream(source, equals) { | 4497 _DistinctStream(source, equals) { |
4498 this[_previous] = _DistinctStream$()._SENTINEL; | 4498 this[_previous] = _DistinctStream$()._SENTINEL; |
4499 this[_equals] = equals; | 4499 this[_equals] = equals; |
4500 super._ForwardingStream(source); | 4500 super._ForwardingStream(source); |
4501 } | 4501 } |
4502 [_handleData](inputEvent, sink) { | 4502 [_handleData](inputEvent, sink) { |
4503 dart.as(inputEvent, T); | 4503 dart.as(inputEvent, T); |
(...skipping 21 matching lines...) Expand all Loading... |
4525 } | 4525 } |
4526 } | 4526 } |
4527 } | 4527 } |
4528 } | 4528 } |
4529 dart.setSignature(_DistinctStream, { | 4529 dart.setSignature(_DistinctStream, { |
4530 constructors: () => ({_DistinctStream: [_DistinctStream$(T), [Stream$(T),
dart.functionType(core.bool, [T, T])]]}), | 4530 constructors: () => ({_DistinctStream: [_DistinctStream$(T), [Stream$(T),
dart.functionType(core.bool, [T, T])]]}), |
4531 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) | 4531 methods: () => ({[_handleData]: [dart.void, [T, _EventSink$(T)]]}) |
4532 }); | 4532 }); |
4533 return _DistinctStream; | 4533 return _DistinctStream; |
4534 }); | 4534 }); |
4535 let _DistinctStream = _DistinctStream$(); | 4535 const _DistinctStream = _DistinctStream$(); |
4536 dart.defineLazyProperties(_DistinctStream, { | 4536 dart.defineLazyProperties(_DistinctStream, { |
4537 get _SENTINEL() { | 4537 get _SENTINEL() { |
4538 return new core.Object(); | 4538 return new core.Object(); |
4539 }, | 4539 }, |
4540 set _SENTINEL(_) {} | 4540 set _SENTINEL(_) {} |
4541 }); | 4541 }); |
4542 const _EventSinkWrapper$ = dart.generic(function(T) { | 4542 const _EventSinkWrapper$ = dart.generic(function(T) { |
4543 class _EventSinkWrapper extends core.Object { | 4543 class _EventSinkWrapper extends core.Object { |
4544 _EventSinkWrapper(sink) { | 4544 _EventSinkWrapper(sink) { |
4545 this[_sink] = sink; | 4545 this[_sink] = sink; |
(...skipping 14 matching lines...) Expand all Loading... |
4560 dart.setSignature(_EventSinkWrapper, { | 4560 dart.setSignature(_EventSinkWrapper, { |
4561 constructors: () => ({_EventSinkWrapper: [_EventSinkWrapper$(T), [_EventSi
nk]]}), | 4561 constructors: () => ({_EventSinkWrapper: [_EventSinkWrapper$(T), [_EventSi
nk]]}), |
4562 methods: () => ({ | 4562 methods: () => ({ |
4563 add: [dart.void, [T]], | 4563 add: [dart.void, [T]], |
4564 addError: [dart.void, [dart.dynamic], [core.StackTrace]], | 4564 addError: [dart.void, [dart.dynamic], [core.StackTrace]], |
4565 close: [dart.void, []] | 4565 close: [dart.void, []] |
4566 }) | 4566 }) |
4567 }); | 4567 }); |
4568 return _EventSinkWrapper; | 4568 return _EventSinkWrapper; |
4569 }); | 4569 }); |
4570 let _EventSinkWrapper = _EventSinkWrapper$(); | 4570 const _EventSinkWrapper = _EventSinkWrapper$(); |
4571 const _transformerSink = Symbol('_transformerSink'); | 4571 const _transformerSink = Symbol('_transformerSink'); |
4572 const _isSubscribed = Symbol('_isSubscribed'); | 4572 const _isSubscribed = Symbol('_isSubscribed'); |
4573 const _SinkTransformerStreamSubscription$ = dart.generic(function(S, T) { | 4573 const _SinkTransformerStreamSubscription$ = dart.generic(function(S, T) { |
4574 class _SinkTransformerStreamSubscription extends _BufferingStreamSubscriptio
n$(T) { | 4574 class _SinkTransformerStreamSubscription extends _BufferingStreamSubscriptio
n$(T) { |
4575 _SinkTransformerStreamSubscription(source, mapper, onData, onError, onDone
, cancelOnError) { | 4575 _SinkTransformerStreamSubscription(source, mapper, onData, onError, onDone
, cancelOnError) { |
4576 this[_transformerSink] = null; | 4576 this[_transformerSink] = null; |
4577 this[_subscription] = null; | 4577 this[_subscription] = null; |
4578 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); | 4578 super._BufferingStreamSubscription(onData, onError, onDone, cancelOnErro
r); |
4579 let eventSink = new (_EventSinkWrapper$(T))(this); | 4579 let eventSink = new (_EventSinkWrapper$(T))(this); |
4580 this[_transformerSink] = mapper(eventSink); | 4580 this[_transformerSink] = mapper(eventSink); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4655 constructors: () => ({_SinkTransformerStreamSubscription: [_SinkTransforme
rStreamSubscription$(S, T), [Stream$(S), _SinkMapper$(S, T), dart.functionType(d
art.void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]]}), | 4655 constructors: () => ({_SinkTransformerStreamSubscription: [_SinkTransforme
rStreamSubscription$(S, T), [Stream$(S), _SinkMapper$(S, T), dart.functionType(d
art.void, [T]), core.Function, dart.functionType(dart.void, []), core.bool]]}), |
4656 methods: () => ({ | 4656 methods: () => ({ |
4657 [_add]: [dart.void, [T]], | 4657 [_add]: [dart.void, [T]], |
4658 [_handleData]: [dart.void, [S]], | 4658 [_handleData]: [dart.void, [S]], |
4659 [_handleError]: [dart.void, [dart.dynamic], [dart.dynamic]], | 4659 [_handleError]: [dart.void, [dart.dynamic], [dart.dynamic]], |
4660 [_handleDone]: [dart.void, []] | 4660 [_handleDone]: [dart.void, []] |
4661 }) | 4661 }) |
4662 }); | 4662 }); |
4663 return _SinkTransformerStreamSubscription; | 4663 return _SinkTransformerStreamSubscription; |
4664 }); | 4664 }); |
4665 let _SinkTransformerStreamSubscription = _SinkTransformerStreamSubscription$()
; | 4665 const _SinkTransformerStreamSubscription = _SinkTransformerStreamSubscription$
(); |
4666 const _SinkMapper$ = dart.generic(function(S, T) { | 4666 const _SinkMapper$ = dart.generic(function(S, T) { |
4667 const _SinkMapper = dart.typedef('_SinkMapper', () => dart.functionType(Even
tSink$(S), [EventSink$(T)])); | 4667 const _SinkMapper = dart.typedef('_SinkMapper', () => dart.functionType(Even
tSink$(S), [EventSink$(T)])); |
4668 return _SinkMapper; | 4668 return _SinkMapper; |
4669 }); | 4669 }); |
4670 let _SinkMapper = _SinkMapper$(); | 4670 const _SinkMapper = _SinkMapper$(); |
4671 const _sinkMapper = Symbol('_sinkMapper'); | 4671 const _sinkMapper = Symbol('_sinkMapper'); |
4672 const _StreamSinkTransformer$ = dart.generic(function(S, T) { | 4672 const _StreamSinkTransformer$ = dart.generic(function(S, T) { |
4673 class _StreamSinkTransformer extends core.Object { | 4673 class _StreamSinkTransformer extends core.Object { |
4674 _StreamSinkTransformer(sinkMapper) { | 4674 _StreamSinkTransformer(sinkMapper) { |
4675 this[_sinkMapper] = sinkMapper; | 4675 this[_sinkMapper] = sinkMapper; |
4676 } | 4676 } |
4677 bind(stream) { | 4677 bind(stream) { |
4678 dart.as(stream, Stream$(S)); | 4678 dart.as(stream, Stream$(S)); |
4679 return new (_BoundSinkStream$(S, T))(stream, this[_sinkMapper]); | 4679 return new (_BoundSinkStream$(S, T))(stream, this[_sinkMapper]); |
4680 } | 4680 } |
4681 } | 4681 } |
4682 _StreamSinkTransformer[dart.implements] = () => [StreamTransformer$(S, T)]; | 4682 _StreamSinkTransformer[dart.implements] = () => [StreamTransformer$(S, T)]; |
4683 dart.setSignature(_StreamSinkTransformer, { | 4683 dart.setSignature(_StreamSinkTransformer, { |
4684 constructors: () => ({_StreamSinkTransformer: [_StreamSinkTransformer$(S,
T), [_SinkMapper$(S, T)]]}), | 4684 constructors: () => ({_StreamSinkTransformer: [_StreamSinkTransformer$(S,
T), [_SinkMapper$(S, T)]]}), |
4685 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}) | 4685 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}) |
4686 }); | 4686 }); |
4687 return _StreamSinkTransformer; | 4687 return _StreamSinkTransformer; |
4688 }); | 4688 }); |
4689 let _StreamSinkTransformer = _StreamSinkTransformer$(); | 4689 const _StreamSinkTransformer = _StreamSinkTransformer$(); |
4690 const _BoundSinkStream$ = dart.generic(function(S, T) { | 4690 const _BoundSinkStream$ = dart.generic(function(S, T) { |
4691 class _BoundSinkStream extends Stream$(T) { | 4691 class _BoundSinkStream extends Stream$(T) { |
4692 get isBroadcast() { | 4692 get isBroadcast() { |
4693 return this[_stream].isBroadcast; | 4693 return this[_stream].isBroadcast; |
4694 } | 4694 } |
4695 _BoundSinkStream(stream, sinkMapper) { | 4695 _BoundSinkStream(stream, sinkMapper) { |
4696 this[_stream] = stream; | 4696 this[_stream] = stream; |
4697 this[_sinkMapper] = sinkMapper; | 4697 this[_sinkMapper] = sinkMapper; |
4698 super.Stream(); | 4698 super.Stream(); |
4699 } | 4699 } |
4700 listen(onData, opts) { | 4700 listen(onData, opts) { |
4701 dart.as(onData, dart.functionType(dart.void, [T])); | 4701 dart.as(onData, dart.functionType(dart.void, [T])); |
4702 let onError = opts && 'onError' in opts ? opts.onError : null; | 4702 let onError = opts && 'onError' in opts ? opts.onError : null; |
4703 let onDone = opts && 'onDone' in opts ? opts.onDone : null; | 4703 let onDone = opts && 'onDone' in opts ? opts.onDone : null; |
4704 dart.as(onDone, dart.functionType(dart.void, [])); | 4704 dart.as(onDone, dart.functionType(dart.void, [])); |
4705 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; | 4705 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; |
4706 cancelOnError = core.identical(true, cancelOnError); | 4706 cancelOnError = core.identical(true, cancelOnError); |
4707 let subscription = new (_SinkTransformerStreamSubscription$(dart.dynamic
, T))(this[_stream], this[_sinkMapper], onData, onError, onDone, cancelOnError); | 4707 let subscription = new (_SinkTransformerStreamSubscription$(dart.dynamic
, T))(this[_stream], this[_sinkMapper], onData, onError, onDone, cancelOnError); |
4708 return subscription; | 4708 return subscription; |
4709 } | 4709 } |
4710 } | 4710 } |
4711 dart.setSignature(_BoundSinkStream, { | 4711 dart.setSignature(_BoundSinkStream, { |
4712 constructors: () => ({_BoundSinkStream: [_BoundSinkStream$(S, T), [Stream$
(S), _SinkMapper$(S, T)]]}), | 4712 constructors: () => ({_BoundSinkStream: [_BoundSinkStream$(S, T), [Stream$
(S), _SinkMapper$(S, T)]]}), |
4713 methods: () => ({listen: [StreamSubscription$(T), [dart.functionType(dart.
void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []),
cancelOnError: core.bool}]}) | 4713 methods: () => ({listen: [StreamSubscription$(T), [dart.functionType(dart.
void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []),
cancelOnError: core.bool}]}) |
4714 }); | 4714 }); |
4715 return _BoundSinkStream; | 4715 return _BoundSinkStream; |
4716 }); | 4716 }); |
4717 let _BoundSinkStream = _BoundSinkStream$(); | 4717 const _BoundSinkStream = _BoundSinkStream$(); |
4718 const _TransformDataHandler$ = dart.generic(function(S, T) { | 4718 const _TransformDataHandler$ = dart.generic(function(S, T) { |
4719 const _TransformDataHandler = dart.typedef('_TransformDataHandler', () => da
rt.functionType(dart.void, [S, EventSink$(T)])); | 4719 const _TransformDataHandler = dart.typedef('_TransformDataHandler', () => da
rt.functionType(dart.void, [S, EventSink$(T)])); |
4720 return _TransformDataHandler; | 4720 return _TransformDataHandler; |
4721 }); | 4721 }); |
4722 let _TransformDataHandler = _TransformDataHandler$(); | 4722 const _TransformDataHandler = _TransformDataHandler$(); |
4723 const _TransformErrorHandler$ = dart.generic(function(T) { | 4723 const _TransformErrorHandler$ = dart.generic(function(T) { |
4724 const _TransformErrorHandler = dart.typedef('_TransformErrorHandler', () =>
dart.functionType(dart.void, [core.Object, core.StackTrace, EventSink$(T)])); | 4724 const _TransformErrorHandler = dart.typedef('_TransformErrorHandler', () =>
dart.functionType(dart.void, [core.Object, core.StackTrace, EventSink$(T)])); |
4725 return _TransformErrorHandler; | 4725 return _TransformErrorHandler; |
4726 }); | 4726 }); |
4727 let _TransformErrorHandler = _TransformErrorHandler$(); | 4727 const _TransformErrorHandler = _TransformErrorHandler$(); |
4728 const _TransformDoneHandler$ = dart.generic(function(T) { | 4728 const _TransformDoneHandler$ = dart.generic(function(T) { |
4729 const _TransformDoneHandler = dart.typedef('_TransformDoneHandler', () => da
rt.functionType(dart.void, [EventSink$(T)])); | 4729 const _TransformDoneHandler = dart.typedef('_TransformDoneHandler', () => da
rt.functionType(dart.void, [EventSink$(T)])); |
4730 return _TransformDoneHandler; | 4730 return _TransformDoneHandler; |
4731 }); | 4731 }); |
4732 let _TransformDoneHandler = _TransformDoneHandler$(); | 4732 const _TransformDoneHandler = _TransformDoneHandler$(); |
4733 const _HandlerEventSink$ = dart.generic(function(S, T) { | 4733 const _HandlerEventSink$ = dart.generic(function(S, T) { |
4734 class _HandlerEventSink extends core.Object { | 4734 class _HandlerEventSink extends core.Object { |
4735 _HandlerEventSink(handleData, handleError, handleDone, sink) { | 4735 _HandlerEventSink(handleData, handleError, handleDone, sink) { |
4736 this[_handleData] = handleData; | 4736 this[_handleData] = handleData; |
4737 this[_handleError] = handleError; | 4737 this[_handleError] = handleError; |
4738 this[_handleDone] = handleDone; | 4738 this[_handleDone] = handleDone; |
4739 this[_sink] = sink; | 4739 this[_sink] = sink; |
4740 } | 4740 } |
4741 add(data) { | 4741 add(data) { |
4742 dart.as(data, S); | 4742 dart.as(data, S); |
(...skipping 11 matching lines...) Expand all Loading... |
4754 dart.setSignature(_HandlerEventSink, { | 4754 dart.setSignature(_HandlerEventSink, { |
4755 constructors: () => ({_HandlerEventSink: [_HandlerEventSink$(S, T), [_Tran
sformDataHandler$(S, T), _TransformErrorHandler$(T), _TransformDoneHandler$(T),
EventSink$(T)]]}), | 4755 constructors: () => ({_HandlerEventSink: [_HandlerEventSink$(S, T), [_Tran
sformDataHandler$(S, T), _TransformErrorHandler$(T), _TransformDoneHandler$(T),
EventSink$(T)]]}), |
4756 methods: () => ({ | 4756 methods: () => ({ |
4757 add: [dart.void, [S]], | 4757 add: [dart.void, [S]], |
4758 addError: [dart.void, [core.Object], [core.StackTrace]], | 4758 addError: [dart.void, [core.Object], [core.StackTrace]], |
4759 close: [dart.void, []] | 4759 close: [dart.void, []] |
4760 }) | 4760 }) |
4761 }); | 4761 }); |
4762 return _HandlerEventSink; | 4762 return _HandlerEventSink; |
4763 }); | 4763 }); |
4764 let _HandlerEventSink = _HandlerEventSink$(); | 4764 const _HandlerEventSink = _HandlerEventSink$(); |
4765 const _StreamHandlerTransformer$ = dart.generic(function(S, T) { | 4765 const _StreamHandlerTransformer$ = dart.generic(function(S, T) { |
4766 class _StreamHandlerTransformer extends _StreamSinkTransformer$(S, T) { | 4766 class _StreamHandlerTransformer extends _StreamSinkTransformer$(S, T) { |
4767 _StreamHandlerTransformer(opts) { | 4767 _StreamHandlerTransformer(opts) { |
4768 let handleData = opts && 'handleData' in opts ? opts.handleData : null; | 4768 let handleData = opts && 'handleData' in opts ? opts.handleData : null; |
4769 let handleError = opts && 'handleError' in opts ? opts.handleError : nul
l; | 4769 let handleError = opts && 'handleError' in opts ? opts.handleError : nul
l; |
4770 let handleDone = opts && 'handleDone' in opts ? opts.handleDone : null; | 4770 let handleDone = opts && 'handleDone' in opts ? opts.handleDone : null; |
4771 super._StreamSinkTransformer(dart.fn(outputSink => { | 4771 super._StreamSinkTransformer(dart.fn(outputSink => { |
4772 dart.as(outputSink, EventSink$(T)); | 4772 dart.as(outputSink, EventSink$(T)); |
4773 if (handleData == null) handleData = dart.as(_StreamHandlerTransformer
$()._defaultHandleData, __CastType27); | 4773 if (handleData == null) handleData = dart.as(_StreamHandlerTransformer
$()._defaultHandleData, __CastType27); |
4774 if (handleError == null) handleError = dart.as(_StreamHandlerTransform
er$()._defaultHandleError, __CastType30); | 4774 if (handleError == null) handleError = dart.as(_StreamHandlerTransform
er$()._defaultHandleError, __CastType30); |
(...skipping 20 matching lines...) Expand all Loading... |
4795 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}), | 4795 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}), |
4796 statics: () => ({ | 4796 statics: () => ({ |
4797 _defaultHandleData: [dart.void, [dart.dynamic, EventSink]], | 4797 _defaultHandleData: [dart.void, [dart.dynamic, EventSink]], |
4798 _defaultHandleError: [dart.void, [dart.dynamic, core.StackTrace, EventSi
nk]], | 4798 _defaultHandleError: [dart.void, [dart.dynamic, core.StackTrace, EventSi
nk]], |
4799 _defaultHandleDone: [dart.void, [EventSink]] | 4799 _defaultHandleDone: [dart.void, [EventSink]] |
4800 }), | 4800 }), |
4801 names: ['_defaultHandleData', '_defaultHandleError', '_defaultHandleDone'] | 4801 names: ['_defaultHandleData', '_defaultHandleError', '_defaultHandleDone'] |
4802 }); | 4802 }); |
4803 return _StreamHandlerTransformer; | 4803 return _StreamHandlerTransformer; |
4804 }); | 4804 }); |
4805 let _StreamHandlerTransformer = _StreamHandlerTransformer$(); | 4805 const _StreamHandlerTransformer = _StreamHandlerTransformer$(); |
4806 const _SubscriptionTransformer$ = dart.generic(function(S, T) { | 4806 const _SubscriptionTransformer$ = dart.generic(function(S, T) { |
4807 const _SubscriptionTransformer = dart.typedef('_SubscriptionTransformer', ()
=> dart.functionType(StreamSubscription$(T), [Stream$(S), core.bool])); | 4807 const _SubscriptionTransformer = dart.typedef('_SubscriptionTransformer', ()
=> dart.functionType(StreamSubscription$(T), [Stream$(S), core.bool])); |
4808 return _SubscriptionTransformer; | 4808 return _SubscriptionTransformer; |
4809 }); | 4809 }); |
4810 let _SubscriptionTransformer = _SubscriptionTransformer$(); | 4810 const _SubscriptionTransformer = _SubscriptionTransformer$(); |
4811 const _transformer = Symbol('_transformer'); | 4811 const _transformer = Symbol('_transformer'); |
4812 const _StreamSubscriptionTransformer$ = dart.generic(function(S, T) { | 4812 const _StreamSubscriptionTransformer$ = dart.generic(function(S, T) { |
4813 class _StreamSubscriptionTransformer extends core.Object { | 4813 class _StreamSubscriptionTransformer extends core.Object { |
4814 _StreamSubscriptionTransformer(transformer) { | 4814 _StreamSubscriptionTransformer(transformer) { |
4815 this[_transformer] = transformer; | 4815 this[_transformer] = transformer; |
4816 } | 4816 } |
4817 bind(stream) { | 4817 bind(stream) { |
4818 dart.as(stream, Stream$(S)); | 4818 dart.as(stream, Stream$(S)); |
4819 return new (_BoundSubscriptionStream$(S, T))(stream, this[_transformer])
; | 4819 return new (_BoundSubscriptionStream$(S, T))(stream, this[_transformer])
; |
4820 } | 4820 } |
4821 } | 4821 } |
4822 _StreamSubscriptionTransformer[dart.implements] = () => [StreamTransformer$(
S, T)]; | 4822 _StreamSubscriptionTransformer[dart.implements] = () => [StreamTransformer$(
S, T)]; |
4823 dart.setSignature(_StreamSubscriptionTransformer, { | 4823 dart.setSignature(_StreamSubscriptionTransformer, { |
4824 constructors: () => ({_StreamSubscriptionTransformer: [_StreamSubscription
Transformer$(S, T), [_SubscriptionTransformer$(S, T)]]}), | 4824 constructors: () => ({_StreamSubscriptionTransformer: [_StreamSubscription
Transformer$(S, T), [_SubscriptionTransformer$(S, T)]]}), |
4825 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}) | 4825 methods: () => ({bind: [Stream$(T), [Stream$(S)]]}) |
4826 }); | 4826 }); |
4827 return _StreamSubscriptionTransformer; | 4827 return _StreamSubscriptionTransformer; |
4828 }); | 4828 }); |
4829 let _StreamSubscriptionTransformer = _StreamSubscriptionTransformer$(); | 4829 const _StreamSubscriptionTransformer = _StreamSubscriptionTransformer$(); |
4830 const _BoundSubscriptionStream$ = dart.generic(function(S, T) { | 4830 const _BoundSubscriptionStream$ = dart.generic(function(S, T) { |
4831 class _BoundSubscriptionStream extends Stream$(T) { | 4831 class _BoundSubscriptionStream extends Stream$(T) { |
4832 _BoundSubscriptionStream(stream, transformer) { | 4832 _BoundSubscriptionStream(stream, transformer) { |
4833 this[_stream] = stream; | 4833 this[_stream] = stream; |
4834 this[_transformer] = transformer; | 4834 this[_transformer] = transformer; |
4835 super.Stream(); | 4835 super.Stream(); |
4836 } | 4836 } |
4837 listen(onData, opts) { | 4837 listen(onData, opts) { |
4838 dart.as(onData, dart.functionType(dart.void, [T])); | 4838 dart.as(onData, dart.functionType(dart.void, [T])); |
4839 let onError = opts && 'onError' in opts ? opts.onError : null; | 4839 let onError = opts && 'onError' in opts ? opts.onError : null; |
4840 let onDone = opts && 'onDone' in opts ? opts.onDone : null; | 4840 let onDone = opts && 'onDone' in opts ? opts.onDone : null; |
4841 dart.as(onDone, dart.functionType(dart.void, [])); | 4841 dart.as(onDone, dart.functionType(dart.void, [])); |
4842 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; | 4842 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; |
4843 cancelOnError = core.identical(true, cancelOnError); | 4843 cancelOnError = core.identical(true, cancelOnError); |
4844 let result = this[_transformer](this[_stream], cancelOnError); | 4844 let result = this[_transformer](this[_stream], cancelOnError); |
4845 result.onData(onData); | 4845 result.onData(onData); |
4846 result.onError(onError); | 4846 result.onError(onError); |
4847 result.onDone(onDone); | 4847 result.onDone(onDone); |
4848 return result; | 4848 return result; |
4849 } | 4849 } |
4850 } | 4850 } |
4851 dart.setSignature(_BoundSubscriptionStream, { | 4851 dart.setSignature(_BoundSubscriptionStream, { |
4852 constructors: () => ({_BoundSubscriptionStream: [_BoundSubscriptionStream$
(S, T), [Stream$(S), _SubscriptionTransformer$(S, T)]]}), | 4852 constructors: () => ({_BoundSubscriptionStream: [_BoundSubscriptionStream$
(S, T), [Stream$(S), _SubscriptionTransformer$(S, T)]]}), |
4853 methods: () => ({listen: [StreamSubscription$(T), [dart.functionType(dart.
void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []),
cancelOnError: core.bool}]}) | 4853 methods: () => ({listen: [StreamSubscription$(T), [dart.functionType(dart.
void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []),
cancelOnError: core.bool}]}) |
4854 }); | 4854 }); |
4855 return _BoundSubscriptionStream; | 4855 return _BoundSubscriptionStream; |
4856 }); | 4856 }); |
4857 let _BoundSubscriptionStream = _BoundSubscriptionStream$(); | 4857 const _BoundSubscriptionStream = _BoundSubscriptionStream$(); |
4858 const __CastType27$ = dart.generic(function(S, T) { | 4858 const __CastType27$ = dart.generic(function(S, T) { |
4859 const __CastType27 = dart.typedef('__CastType27', () => dart.functionType(da
rt.void, [S, EventSink$(T)])); | 4859 const __CastType27 = dart.typedef('__CastType27', () => dart.functionType(da
rt.void, [S, EventSink$(T)])); |
4860 return __CastType27; | 4860 return __CastType27; |
4861 }); | 4861 }); |
4862 let __CastType27 = __CastType27$(); | 4862 const __CastType27 = __CastType27$(); |
4863 const __CastType30$ = dart.generic(function(T) { | 4863 const __CastType30$ = dart.generic(function(T) { |
4864 const __CastType30 = dart.typedef('__CastType30', () => dart.functionType(da
rt.void, [core.Object, core.StackTrace, EventSink$(T)])); | 4864 const __CastType30 = dart.typedef('__CastType30', () => dart.functionType(da
rt.void, [core.Object, core.StackTrace, EventSink$(T)])); |
4865 return __CastType30; | 4865 return __CastType30; |
4866 }); | 4866 }); |
4867 let __CastType30 = __CastType30$(); | 4867 const __CastType30 = __CastType30$(); |
4868 class Timer extends core.Object { | 4868 class Timer extends core.Object { |
4869 static new(duration, callback) { | 4869 static new(duration, callback) { |
4870 if (dart.equals(Zone.current, Zone.ROOT)) { | 4870 if (dart.equals(Zone.current, Zone.ROOT)) { |
4871 return Zone.current.createTimer(duration, callback); | 4871 return Zone.current.createTimer(duration, callback); |
4872 } | 4872 } |
4873 return Zone.current.createTimer(duration, Zone.current.bindCallback(callba
ck, {runGuarded: true})); | 4873 return Zone.current.createTimer(duration, Zone.current.bindCallback(callba
ck, {runGuarded: true})); |
4874 } | 4874 } |
4875 static periodic(duration, callback) { | 4875 static periodic(duration, callback) { |
4876 if (dart.equals(Zone.current, Zone.ROOT)) { | 4876 if (dart.equals(Zone.current, Zone.ROOT)) { |
4877 return Zone.current.createPeriodicTimer(duration, callback); | 4877 return Zone.current.createPeriodicTimer(duration, callback); |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5801 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; | 5801 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; |
5802 exports.CreateTimerHandler = CreateTimerHandler; | 5802 exports.CreateTimerHandler = CreateTimerHandler; |
5803 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; | 5803 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; |
5804 exports.PrintHandler = PrintHandler; | 5804 exports.PrintHandler = PrintHandler; |
5805 exports.ForkHandler = ForkHandler; | 5805 exports.ForkHandler = ForkHandler; |
5806 exports.ZoneSpecification = ZoneSpecification; | 5806 exports.ZoneSpecification = ZoneSpecification; |
5807 exports.ZoneDelegate = ZoneDelegate; | 5807 exports.ZoneDelegate = ZoneDelegate; |
5808 exports.Zone = Zone; | 5808 exports.Zone = Zone; |
5809 exports.runZoned = runZoned; | 5809 exports.runZoned = runZoned; |
5810 }); | 5810 }); |
OLD | NEW |