@@ -159,7 +159,7 @@ var collection = dart.import(collection);
159
159
dart . as ( convert , dart . functionType ( core . Object , [ T ] ) ) ;
160
160
let controller = null ;
161
161
let subscription = null ;
162
- let onListen = ( ( ) => {
162
+ let onListen = ( ) => {
163
163
let add = dart . bind ( controller , 'add' ) ;
164
164
dart . assert ( dart . is ( controller , _StreamController ) || dart . is ( controller , _BroadcastStreamController ) ) ;
165
165
let eventSink = controller ;
@@ -182,7 +182,7 @@ var collection = dart.import(collection);
182
182
controller . add ( newValue ) ;
183
183
}
184
184
} , core . Object , [ T ] ) , { onError : dart . as ( addError , core . Function ) , onDone : dart . bind ( controller , 'close' ) } ) ;
185
- } ) . bind ( this ) ;
185
+ } ;
186
186
dart . fn ( onListen , dart . void , [ ] ) ;
187
187
if ( this . isBroadcast ) {
188
188
controller = StreamController . broadcast ( { onListen : onListen , onCancel : dart . fn ( ( ) => {
@@ -203,7 +203,7 @@ var collection = dart.import(collection);
203
203
dart . as ( convert , dart . functionType ( Stream$ ( ) , [ T ] ) ) ;
204
204
let controller = null ;
205
205
let subscription = null ;
206
- let onListen = ( ( ) => {
206
+ let onListen = ( ) => {
207
207
dart . assert ( dart . is ( controller , _StreamController ) || dart . is ( controller , _BroadcastStreamController ) ) ;
208
208
let eventSink = controller ;
209
209
subscription = this . listen ( dart . fn ( event => {
@@ -222,7 +222,7 @@ var collection = dart.import(collection);
222
222
controller . addStream ( newStream ) . whenComplete ( dart . bind ( subscription , 'resume' ) ) ;
223
223
}
224
224
} , core . Object , [ T ] ) , { onError : dart . as ( eventSink [ _addError ] , core . Function ) , onDone : dart . bind ( controller , 'close' ) } ) ;
225
- } ) . bind ( this ) ;
225
+ } ;
226
226
dart . fn ( onListen , dart . void , [ ] ) ;
227
227
if ( this . isBroadcast ) {
228
228
controller = StreamController . broadcast ( { onListen : onListen , onCancel : dart . fn ( ( ) => {
@@ -649,9 +649,9 @@ var collection = dart.import(collection);
649
649
return ;
650
650
}
651
651
elementIndex = dart . notNull ( elementIndex ) + 1 ;
652
- } , core . Object , [ T ] ) , { onError : dart . bind ( future , _completeError ) , onDone : dart . fn ( ( ( ) => {
652
+ } , core . Object , [ T ] ) , { onError : dart . bind ( future , _completeError ) , onDone : dart . fn ( ( ) => {
653
653
future [ _completeError ] ( core . RangeError . index ( index , this , "index" , null , elementIndex ) ) ;
654
- } ) . bind ( this ) ) , cancelOnError : true } ) ;
654
+ } ) , cancelOnError : true } ) ;
655
655
return future ;
656
656
}
657
657
timeout ( timeLimit , opts ) {
@@ -682,7 +682,7 @@ var collection = dart.import(collection);
682
682
controller . close ( ) ;
683
683
} ;
684
684
dart . fn ( onDone , dart . void , [ ] ) ;
685
- let onListen = ( ( ) => {
685
+ let onListen = ( ) => {
686
686
zone = Zone . current ;
687
687
if ( onTimeout == null ) {
688
688
timeout = dart . fn ( ( ) => {
@@ -699,7 +699,7 @@ var collection = dart.import(collection);
699
699
}
700
700
subscription = this . listen ( onData , { onError : onError , onDone : onDone } ) ;
701
701
timer = zone . createTimer ( timeLimit , dart . as ( timeout , dart . functionType ( dart . void , [ ] ) ) ) ;
702
- } ) . bind ( this ) ;
702
+ } ;
703
703
dart . fn ( onListen , dart . void , [ ] ) ;
704
704
let onCancel = ( ) => {
705
705
timer . cancel ( ) ;
@@ -978,10 +978,10 @@ var collection = dart.import(collection);
978
978
this [ _onDone ] = dart . fn ( ( ) => {
979
979
result [ _complete ] ( futureValue ) ;
980
980
} ) ;
981
- this [ _onError ] = dart . fn ( ( ( error , stackTrace ) => {
981
+ this [ _onError ] = dart . fn ( ( error , stackTrace ) => {
982
982
this . cancel ( ) ;
983
983
result [ _completeError ] ( error , dart . as ( stackTrace , core . StackTrace ) ) ;
984
- } ) . bind ( this ) ) ;
984
+ } ) ;
985
985
return result ;
986
986
}
987
987
get [ _isInputPaused ] ( ) {
@@ -1102,7 +1102,7 @@ var collection = dart.import(collection);
1102
1102
dart . assert ( ! dart . notNull ( this [ _isPaused ] ) ) ;
1103
1103
dart . assert ( ! dart . notNull ( this [ _inCallback ] ) ) ;
1104
1104
let wasInputPaused = this [ _isInputPaused ] ;
1105
- let sendError = ( ( ) => {
1105
+ let sendError = ( ) => {
1106
1106
if ( dart . notNull ( this [ _isCanceled ] ) && ! dart . notNull ( this [ _waitsForCancel ] ) )
1107
1107
return ;
1108
1108
this [ _state ] = dart . notNull ( this [ _state ] ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_IN_CALLBACK ) ;
@@ -1112,7 +1112,7 @@ var collection = dart.import(collection);
1112
1112
this [ _zone ] . runUnaryGuarded ( dart . as ( this [ _onError ] , __CastType25 ) , error ) ;
1113
1113
}
1114
1114
this [ _state ] = dart . notNull ( this [ _state ] ) & ~ dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_IN_CALLBACK ) ;
1115
- } ) . bind ( this ) ;
1115
+ } ;
1116
1116
dart . fn ( sendError , dart . void , [ ] ) ;
1117
1117
if ( this [ _cancelOnError ] ) {
1118
1118
this [ _state ] = dart . notNull ( this [ _state ] ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_WAIT_FOR_CANCEL ) ;
@@ -1131,13 +1131,13 @@ var collection = dart.import(collection);
1131
1131
dart . assert ( ! dart . notNull ( this [ _isCanceled ] ) ) ;
1132
1132
dart . assert ( ! dart . notNull ( this [ _isPaused ] ) ) ;
1133
1133
dart . assert ( ! dart . notNull ( this [ _inCallback ] ) ) ;
1134
- let sendDone = ( ( ) => {
1134
+ let sendDone = ( ) => {
1135
1135
if ( ! dart . notNull ( this [ _waitsForCancel ] ) )
1136
1136
return ;
1137
1137
this [ _state ] = dart . notNull ( this [ _state ] ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_CANCELED ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_CLOSED ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_IN_CALLBACK ) ;
1138
1138
this [ _zone ] . runGuarded ( this [ _onDone ] ) ;
1139
1139
this [ _state ] = dart . notNull ( this [ _state ] ) & ~ dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_IN_CALLBACK ) ;
1140
- } ) . bind ( this ) ;
1140
+ } ;
1141
1141
dart . fn ( sendDone , dart . void , [ ] ) ;
1142
1142
this [ _cancel ] ( ) ;
1143
1143
this [ _state ] = dart . notNull ( this [ _state ] ) | dart . notNull ( _BufferingStreamSubscription$ ( ) . _STATE_WAIT_FOR_CANCEL ) ;
@@ -2333,9 +2333,9 @@ var collection = dart.import(collection);
2333
2333
[ _addListener ] ( listener ) {
2334
2334
dart . assert ( listener [ _nextListener ] == null ) ;
2335
2335
if ( this [ _isComplete ] ) {
2336
- this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ( ) => {
2336
+ this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ) => {
2337
2337
_Future$ ( ) . _propagateToListeners ( this , listener ) ;
2338
- } ) . bind ( this ) ) ) ;
2338
+ } ) ) ;
2339
2339
} else {
2340
2340
listener [ _nextListener ] = dart . as ( this [ _resultOrListeners ] , _FutureListener ) ;
2341
2341
this [ _resultOrListeners ] = listener ;
@@ -2417,9 +2417,9 @@ var collection = dart.import(collection);
2417
2417
let coreFuture = dart . as ( typedFuture , _Future$ ( T ) ) ;
2418
2418
if ( dart . notNull ( coreFuture [ _isComplete ] ) && dart . notNull ( coreFuture [ _hasError ] ) ) {
2419
2419
this [ _markPendingCompletion ] ( ) ;
2420
- this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ( ) => {
2420
+ this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ) => {
2421
2421
_Future$ ( ) . _chainCoreFuture ( coreFuture , this ) ;
2422
- } ) . bind ( this ) ) ) ;
2422
+ } ) ) ;
2423
2423
} else {
2424
2424
_Future$ ( ) . _chainCoreFuture ( coreFuture , this ) ;
2425
2425
}
@@ -2431,16 +2431,16 @@ var collection = dart.import(collection);
2431
2431
let typedValue = dart . as ( value , T ) ;
2432
2432
}
2433
2433
this [ _markPendingCompletion ] ( ) ;
2434
- this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ( ) => {
2434
+ this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ) => {
2435
2435
this [ _completeWithValue ] ( value ) ;
2436
- } ) . bind ( this ) ) ) ;
2436
+ } ) ) ;
2437
2437
}
2438
2438
[ _asyncCompleteError ] ( error , stackTrace ) {
2439
2439
dart . assert ( ! dart . notNull ( this [ _isComplete ] ) ) ;
2440
2440
this [ _markPendingCompletion ] ( ) ;
2441
- this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ( ) => {
2441
+ this [ _zone ] . scheduleMicrotask ( dart . fn ( ( ) => {
2442
2442
this [ _completeError ] ( error , stackTrace ) ;
2443
- } ) . bind ( this ) ) ) ;
2443
+ } ) ) ;
2444
2444
}
2445
2445
static _propagateToListeners ( source , listeners ) {
2446
2446
while ( true ) {
@@ -3183,9 +3183,9 @@ var collection = dart.import(collection);
3183
3183
this [ _varData ] = subscription ;
3184
3184
}
3185
3185
subscription [ _setPendingEvents ] ( pendingEvents ) ;
3186
- subscription [ _guardCallback ] ( dart . fn ( ( ( ) => {
3186
+ subscription [ _guardCallback ] ( dart . fn ( ( ) => {
3187
3187
_runGuarded ( this [ _onListen ] ) ;
3188
- } ) . bind ( this ) ) ) ;
3188
+ } ) ) ;
3189
3189
return dart . as ( subscription , StreamSubscription$ ( T ) ) ;
3190
3190
}
3191
3191
[ _recordCancel ] ( subscription ) {
@@ -3211,11 +3211,11 @@ var collection = dart.import(collection);
3211
3211
result = result . whenComplete ( this [ _onCancel ] ) ;
3212
3212
}
3213
3213
}
3214
- let complete = ( ( ) => {
3214
+ let complete = ( ) => {
3215
3215
if ( dart . notNull ( this [ _doneFuture ] != null ) && dart . notNull ( this [ _doneFuture ] [ _mayComplete ] ) ) {
3216
3216
this [ _doneFuture ] [ _asyncComplete ] ( null ) ;
3217
3217
}
3218
- } ) . bind ( this ) ;
3218
+ } ;
3219
3219
dart . fn ( complete , dart . void , [ ] ) ;
3220
3220
if ( result != null ) {
3221
3221
result = result . whenComplete ( complete ) ;
@@ -3447,9 +3447,9 @@ var collection = dart.import(collection);
3447
3447
this . addStreamFuture [ _asyncComplete ] ( null ) ;
3448
3448
return null ;
3449
3449
}
3450
- return cancel . whenComplete ( dart . fn ( ( ( ) => {
3450
+ return cancel . whenComplete ( dart . fn ( ( ) => {
3451
3451
this . addStreamFuture [ _asyncComplete ] ( null ) ;
3452
- } ) . bind ( this ) ) ) ;
3452
+ } ) ) ;
3453
3453
}
3454
3454
complete ( ) {
3455
3455
this . addStreamFuture [ _asyncComplete ] ( null ) ;
@@ -3522,7 +3522,7 @@ var collection = dart.import(collection);
3522
3522
let _ = new _BufferingStreamSubscription ( onData , onError , onDone , cancelOnError ) ;
3523
3523
_ [ _setPendingEvents ] ( this [ _pending ] ( ) ) ;
3524
3524
return _ ;
3525
- } ) . bind ( this ) ( ) , StreamSubscription$ ( T ) ) ;
3525
+ } ) ( ) , StreamSubscription$ ( T ) ) ;
3526
3526
}
3527
3527
}
3528
3528
dart . setSignature ( _GeneratedStreamImpl , {
@@ -3552,13 +3552,13 @@ var collection = dart.import(collection);
3552
3552
this [ _state ] = _PendingEvents . _STATE_SCHEDULED ;
3553
3553
return ;
3554
3554
}
3555
- scheduleMicrotask ( dart . fn ( ( ( ) => {
3555
+ scheduleMicrotask ( dart . fn ( ( ) => {
3556
3556
let oldState = this [ _state ] ;
3557
3557
this [ _state ] = _PendingEvents . _STATE_UNSCHEDULED ;
3558
3558
if ( oldState == _PendingEvents . _STATE_CANCELED )
3559
3559
return ;
3560
3560
this . handleNext ( dispatch ) ;
3561
- } ) . bind ( this ) ) ) ;
3561
+ } ) ) ;
3562
3562
this [ _state ] = _PendingEvents . _STATE_SCHEDULED ;
3563
3563
}
3564
3564
cancelSchedule ( ) {
@@ -5243,25 +5243,25 @@ var collection = dart.import(collection);
5243
5243
bindCallback ( f , opts ) {
5244
5244
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5245
5245
if ( runGuarded ) {
5246
- return dart . fn ( ( ( ) => this . runGuarded ( f ) ) . bind ( this ) ) ;
5246
+ return dart . fn ( ( ) => this . runGuarded ( f ) ) ;
5247
5247
} else {
5248
- return dart . fn ( ( ( ) => this . run ( f ) ) . bind ( this ) ) ;
5248
+ return dart . fn ( ( ) => this . run ( f ) ) ;
5249
5249
}
5250
5250
}
5251
5251
bindUnaryCallback ( f , opts ) {
5252
5252
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5253
5253
if ( runGuarded ) {
5254
- return dart . fn ( ( arg => this . runUnaryGuarded ( f , arg ) ) . bind ( this ) ) ;
5254
+ return dart . fn ( arg => this . runUnaryGuarded ( f , arg ) ) ;
5255
5255
} else {
5256
- return dart . fn ( ( arg => this . runUnary ( f , arg ) ) . bind ( this ) ) ;
5256
+ return dart . fn ( arg => this . runUnary ( f , arg ) ) ;
5257
5257
}
5258
5258
}
5259
5259
bindBinaryCallback ( f , opts ) {
5260
5260
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5261
5261
if ( runGuarded ) {
5262
- return dart . fn ( ( ( arg1 , arg2 ) => this . runBinaryGuarded ( f , arg1 , arg2 ) ) . bind ( this ) ) ;
5262
+ return dart . fn ( ( arg1 , arg2 ) => this . runBinaryGuarded ( f , arg1 , arg2 ) ) ;
5263
5263
} else {
5264
- return dart . fn ( ( ( arg1 , arg2 ) => this . runBinary ( f , arg1 , arg2 ) ) . bind ( this ) ) ;
5264
+ return dart . fn ( ( arg1 , arg2 ) => this . runBinary ( f , arg1 , arg2 ) ) ;
5265
5265
}
5266
5266
}
5267
5267
get ( key ) {
@@ -5515,27 +5515,27 @@ var collection = dart.import(collection);
5515
5515
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5516
5516
let registered = this . registerCallback ( f ) ;
5517
5517
if ( runGuarded ) {
5518
- return dart . fn ( ( ( ) => this . runGuarded ( registered ) ) . bind ( this ) ) ;
5518
+ return dart . fn ( ( ) => this . runGuarded ( registered ) ) ;
5519
5519
} else {
5520
- return dart . fn ( ( ( ) => this . run ( registered ) ) . bind ( this ) ) ;
5520
+ return dart . fn ( ( ) => this . run ( registered ) ) ;
5521
5521
}
5522
5522
}
5523
5523
bindUnaryCallback ( f , opts ) {
5524
5524
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5525
5525
let registered = this . registerUnaryCallback ( f ) ;
5526
5526
if ( runGuarded ) {
5527
- return dart . fn ( ( arg => this . runUnaryGuarded ( registered , arg ) ) . bind ( this ) ) ;
5527
+ return dart . fn ( arg => this . runUnaryGuarded ( registered , arg ) ) ;
5528
5528
} else {
5529
- return dart . fn ( ( arg => this . runUnary ( registered , arg ) ) . bind ( this ) ) ;
5529
+ return dart . fn ( arg => this . runUnary ( registered , arg ) ) ;
5530
5530
}
5531
5531
}
5532
5532
bindBinaryCallback ( f , opts ) {
5533
5533
let runGuarded = opts && 'runGuarded' in opts ? opts . runGuarded : true ;
5534
5534
let registered = this . registerBinaryCallback ( f ) ;
5535
5535
if ( runGuarded ) {
5536
- return dart . fn ( ( ( arg1 , arg2 ) => this . runBinaryGuarded ( registered , arg1 , arg2 ) ) . bind ( this ) ) ;
5536
+ return dart . fn ( ( arg1 , arg2 ) => this . runBinaryGuarded ( registered , arg1 , arg2 ) ) ;
5537
5537
} else {
5538
- return dart . fn ( ( ( arg1 , arg2 ) => this . runBinary ( registered , arg1 , arg2 ) ) . bind ( this ) ) ;
5538
+ return dart . fn ( ( arg1 , arg2 ) => this . runBinary ( registered , arg1 , arg2 ) ) ;
5539
5539
}
5540
5540
}
5541
5541
get ( key ) {
0 commit comments