| OLD | NEW |
| 1 dart_library.library('dart/async', null, /* Imports */[ | 1 dart_library.library('dart/async', null, /* Imports */[ |
| 2 "dart_runtime/dart", | 2 "dart_runtime/dart", |
| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 dart.as(newValue, T); | 271 dart.as(newValue, T); |
| 272 value = newValue; | 272 value = newValue; |
| 273 }, dart.dynamic, [T]), dart.as(_cancelAndErrorClosure(subscription,
result), __CastType14)); | 273 }, dart.dynamic, [T]), dart.as(_cancelAndErrorClosure(subscription,
result), __CastType14)); |
| 274 } else { | 274 } else { |
| 275 value = element; | 275 value = element; |
| 276 seenFirst = true; | 276 seenFirst = true; |
| 277 } | 277 } |
| 278 }, dart.dynamic, [T]), {onError: dart.bind(result, _completeError), onDo
ne: dart.fn(() => { | 278 }, dart.dynamic, [T]), {onError: dart.bind(result, _completeError), onDo
ne: dart.fn(() => { |
| 279 if (!dart.notNull(seenFirst)) { | 279 if (!dart.notNull(seenFirst)) { |
| 280 try { | 280 try { |
| 281 throw _internal.IterableElementError.noElement(); | 281 dart.throw(_internal.IterableElementError.noElement()); |
| 282 } catch (e) { | 282 } catch (e) { |
| 283 let s = dart.stackTrace(e); | 283 let s = dart.stackTrace(e); |
| 284 _completeWithErrorCallback(result, e, s); | 284 _completeWithErrorCallback(result, e, s); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } else { | 287 } else { |
| 288 result[_complete](value); | 288 result[_complete](value); |
| 289 } | 289 } |
| 290 }), cancelOnError: true}); | 290 }), cancelOnError: true}); |
| 291 return result; | 291 return result; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 return new (_DistinctStream$(T))(this, equals); | 462 return new (_DistinctStream$(T))(this, equals); |
| 463 } | 463 } |
| 464 get first() { | 464 get first() { |
| 465 let future = new (_Future$(T))(); | 465 let future = new (_Future$(T))(); |
| 466 let subscription = null; | 466 let subscription = null; |
| 467 subscription = this.listen(dart.fn(value => { | 467 subscription = this.listen(dart.fn(value => { |
| 468 dart.as(value, T); | 468 dart.as(value, T); |
| 469 _cancelAndValue(subscription, future, value); | 469 _cancelAndValue(subscription, future, value); |
| 470 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 470 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 471 try { | 471 try { |
| 472 throw _internal.IterableElementError.noElement(); | 472 dart.throw(_internal.IterableElementError.noElement()); |
| 473 } catch (e) { | 473 } catch (e) { |
| 474 let s = dart.stackTrace(e); | 474 let s = dart.stackTrace(e); |
| 475 _completeWithErrorCallback(future, e, s); | 475 _completeWithErrorCallback(future, e, s); |
| 476 } | 476 } |
| 477 | 477 |
| 478 }), cancelOnError: true}); | 478 }), cancelOnError: true}); |
| 479 return future; | 479 return future; |
| 480 } | 480 } |
| 481 get last() { | 481 get last() { |
| 482 let future = new (_Future$(T))(); | 482 let future = new (_Future$(T))(); |
| 483 let result = null; | 483 let result = null; |
| 484 let foundResult = false; | 484 let foundResult = false; |
| 485 let subscription = null; | 485 let subscription = null; |
| 486 subscription = this.listen(dart.fn(value => { | 486 subscription = this.listen(dart.fn(value => { |
| 487 dart.as(value, T); | 487 dart.as(value, T); |
| 488 foundResult = true; | 488 foundResult = true; |
| 489 result = value; | 489 result = value; |
| 490 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 490 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 491 if (dart.notNull(foundResult)) { | 491 if (dart.notNull(foundResult)) { |
| 492 future[_complete](result); | 492 future[_complete](result); |
| 493 return; | 493 return; |
| 494 } | 494 } |
| 495 try { | 495 try { |
| 496 throw _internal.IterableElementError.noElement(); | 496 dart.throw(_internal.IterableElementError.noElement()); |
| 497 } catch (e) { | 497 } catch (e) { |
| 498 let s = dart.stackTrace(e); | 498 let s = dart.stackTrace(e); |
| 499 _completeWithErrorCallback(future, e, s); | 499 _completeWithErrorCallback(future, e, s); |
| 500 } | 500 } |
| 501 | 501 |
| 502 }), cancelOnError: true}); | 502 }), cancelOnError: true}); |
| 503 return future; | 503 return future; |
| 504 } | 504 } |
| 505 get single() { | 505 get single() { |
| 506 let future = new (_Future$(T))(); | 506 let future = new (_Future$(T))(); |
| 507 let result = null; | 507 let result = null; |
| 508 let foundResult = false; | 508 let foundResult = false; |
| 509 let subscription = null; | 509 let subscription = null; |
| 510 subscription = this.listen(dart.fn(value => { | 510 subscription = this.listen(dart.fn(value => { |
| 511 dart.as(value, T); | 511 dart.as(value, T); |
| 512 if (dart.notNull(foundResult)) { | 512 if (dart.notNull(foundResult)) { |
| 513 try { | 513 try { |
| 514 throw _internal.IterableElementError.tooMany(); | 514 dart.throw(_internal.IterableElementError.tooMany()); |
| 515 } catch (e) { | 515 } catch (e) { |
| 516 let s = dart.stackTrace(e); | 516 let s = dart.stackTrace(e); |
| 517 _cancelAndErrorWithReplacement(subscription, future, e, s); | 517 _cancelAndErrorWithReplacement(subscription, future, e, s); |
| 518 } | 518 } |
| 519 | 519 |
| 520 return; | 520 return; |
| 521 } | 521 } |
| 522 foundResult = true; | 522 foundResult = true; |
| 523 result = value; | 523 result = value; |
| 524 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 524 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 525 if (dart.notNull(foundResult)) { | 525 if (dart.notNull(foundResult)) { |
| 526 future[_complete](result); | 526 future[_complete](result); |
| 527 return; | 527 return; |
| 528 } | 528 } |
| 529 try { | 529 try { |
| 530 throw _internal.IterableElementError.noElement(); | 530 dart.throw(_internal.IterableElementError.noElement()); |
| 531 } catch (e) { | 531 } catch (e) { |
| 532 let s = dart.stackTrace(e); | 532 let s = dart.stackTrace(e); |
| 533 _completeWithErrorCallback(future, e, s); | 533 _completeWithErrorCallback(future, e, s); |
| 534 } | 534 } |
| 535 | 535 |
| 536 }), cancelOnError: true}); | 536 }), cancelOnError: true}); |
| 537 return future; | 537 return future; |
| 538 } | 538 } |
| 539 firstWhere(test, opts) { | 539 firstWhere(test, opts) { |
| 540 dart.as(test, dart.functionType(core.bool, [T])); | 540 dart.as(test, dart.functionType(core.bool, [T])); |
| 541 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue :
null; | 541 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue :
null; |
| 542 dart.as(defaultValue, dart.functionType(core.Object, [])); | 542 dart.as(defaultValue, dart.functionType(core.Object, [])); |
| 543 let future = new _Future(); | 543 let future = new _Future(); |
| 544 let subscription = null; | 544 let subscription = null; |
| 545 subscription = this.listen(dart.fn(value => { | 545 subscription = this.listen(dart.fn(value => { |
| 546 dart.as(value, T); | 546 dart.as(value, T); |
| 547 _runUserCode(dart.fn(() => test(value), core.bool, []), dart.fn(isMatc
h => { | 547 _runUserCode(dart.fn(() => test(value), core.bool, []), dart.fn(isMatc
h => { |
| 548 if (dart.notNull(isMatch)) { | 548 if (dart.notNull(isMatch)) { |
| 549 _cancelAndValue(subscription, future, value); | 549 _cancelAndValue(subscription, future, value); |
| 550 } | 550 } |
| 551 }, dart.dynamic, [core.bool]), dart.as(_cancelAndErrorClosure(subscrip
tion, future), dart.functionType(dart.dynamic, [dart.dynamic, core.StackTrace]))
); | 551 }, dart.dynamic, [core.bool]), dart.as(_cancelAndErrorClosure(subscrip
tion, future), dart.functionType(dart.dynamic, [dart.dynamic, core.StackTrace]))
); |
| 552 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 552 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 553 if (defaultValue != null) { | 553 if (defaultValue != null) { |
| 554 _runUserCode(defaultValue, dart.bind(future, _complete), dart.bind
(future, _completeError)); | 554 _runUserCode(defaultValue, dart.bind(future, _complete), dart.bind
(future, _completeError)); |
| 555 return; | 555 return; |
| 556 } | 556 } |
| 557 try { | 557 try { |
| 558 throw _internal.IterableElementError.noElement(); | 558 dart.throw(_internal.IterableElementError.noElement()); |
| 559 } catch (e) { | 559 } catch (e) { |
| 560 let s = dart.stackTrace(e); | 560 let s = dart.stackTrace(e); |
| 561 _completeWithErrorCallback(future, e, s); | 561 _completeWithErrorCallback(future, e, s); |
| 562 } | 562 } |
| 563 | 563 |
| 564 }), cancelOnError: true}); | 564 }), cancelOnError: true}); |
| 565 return future; | 565 return future; |
| 566 } | 566 } |
| 567 lastWhere(test, opts) { | 567 lastWhere(test, opts) { |
| 568 dart.as(test, dart.functionType(core.bool, [T])); | 568 dart.as(test, dart.functionType(core.bool, [T])); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 583 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 583 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 584 if (dart.notNull(foundResult)) { | 584 if (dart.notNull(foundResult)) { |
| 585 future[_complete](result); | 585 future[_complete](result); |
| 586 return; | 586 return; |
| 587 } | 587 } |
| 588 if (defaultValue != null) { | 588 if (defaultValue != null) { |
| 589 _runUserCode(defaultValue, dart.bind(future, _complete), dart.bind
(future, _completeError)); | 589 _runUserCode(defaultValue, dart.bind(future, _complete), dart.bind
(future, _completeError)); |
| 590 return; | 590 return; |
| 591 } | 591 } |
| 592 try { | 592 try { |
| 593 throw _internal.IterableElementError.noElement(); | 593 dart.throw(_internal.IterableElementError.noElement()); |
| 594 } catch (e) { | 594 } catch (e) { |
| 595 let s = dart.stackTrace(e); | 595 let s = dart.stackTrace(e); |
| 596 _completeWithErrorCallback(future, e, s); | 596 _completeWithErrorCallback(future, e, s); |
| 597 } | 597 } |
| 598 | 598 |
| 599 }), cancelOnError: true}); | 599 }), cancelOnError: true}); |
| 600 return future; | 600 return future; |
| 601 } | 601 } |
| 602 singleWhere(test) { | 602 singleWhere(test) { |
| 603 dart.as(test, dart.functionType(core.bool, [T])); | 603 dart.as(test, dart.functionType(core.bool, [T])); |
| 604 let future = new (_Future$(T))(); | 604 let future = new (_Future$(T))(); |
| 605 let result = null; | 605 let result = null; |
| 606 let foundResult = false; | 606 let foundResult = false; |
| 607 let subscription = null; | 607 let subscription = null; |
| 608 subscription = this.listen(dart.fn(value => { | 608 subscription = this.listen(dart.fn(value => { |
| 609 dart.as(value, T); | 609 dart.as(value, T); |
| 610 _runUserCode(dart.fn(() => true == test(value), core.bool, []), dart.f
n(isMatch => { | 610 _runUserCode(dart.fn(() => true == test(value), core.bool, []), dart.f
n(isMatch => { |
| 611 if (dart.notNull(isMatch)) { | 611 if (dart.notNull(isMatch)) { |
| 612 if (dart.notNull(foundResult)) { | 612 if (dart.notNull(foundResult)) { |
| 613 try { | 613 try { |
| 614 throw _internal.IterableElementError.tooMany(); | 614 dart.throw(_internal.IterableElementError.tooMany()); |
| 615 } catch (e) { | 615 } catch (e) { |
| 616 let s = dart.stackTrace(e); | 616 let s = dart.stackTrace(e); |
| 617 _cancelAndErrorWithReplacement(subscription, future, e, s); | 617 _cancelAndErrorWithReplacement(subscription, future, e, s); |
| 618 } | 618 } |
| 619 | 619 |
| 620 return; | 620 return; |
| 621 } | 621 } |
| 622 foundResult = true; | 622 foundResult = true; |
| 623 result = value; | 623 result = value; |
| 624 } | 624 } |
| 625 }, dart.dynamic, [core.bool]), dart.as(_cancelAndErrorClosure(subscrip
tion, future), dart.functionType(dart.dynamic, [dart.dynamic, core.StackTrace]))
); | 625 }, dart.dynamic, [core.bool]), dart.as(_cancelAndErrorClosure(subscrip
tion, future), dart.functionType(dart.dynamic, [dart.dynamic, core.StackTrace]))
); |
| 626 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { | 626 }, dart.dynamic, [T]), {onError: dart.bind(future, _completeError), onDo
ne: dart.fn(() => { |
| 627 if (dart.notNull(foundResult)) { | 627 if (dart.notNull(foundResult)) { |
| 628 future[_complete](result); | 628 future[_complete](result); |
| 629 return; | 629 return; |
| 630 } | 630 } |
| 631 try { | 631 try { |
| 632 throw _internal.IterableElementError.noElement(); | 632 dart.throw(_internal.IterableElementError.noElement()); |
| 633 } catch (e) { | 633 } catch (e) { |
| 634 let s = dart.stackTrace(e); | 634 let s = dart.stackTrace(e); |
| 635 _completeWithErrorCallback(future, e, s); | 635 _completeWithErrorCallback(future, e, s); |
| 636 } | 636 } |
| 637 | 637 |
| 638 }), cancelOnError: true}); | 638 }), cancelOnError: true}); |
| 639 return future; | 639 return future; |
| 640 } | 640 } |
| 641 elementAt(index) { | 641 elementAt(index) { |
| 642 if (!(typeof index == 'number') || dart.notNull(index) < 0) | 642 if (!(typeof index == 'number') || dart.notNull(index) < 0) |
| 643 throw new core.ArgumentError(index); | 643 dart.throw(new core.ArgumentError(index)); |
| 644 let future = new (_Future$(T))(); | 644 let future = new (_Future$(T))(); |
| 645 let subscription = null; | 645 let subscription = null; |
| 646 let elementIndex = 0; | 646 let elementIndex = 0; |
| 647 subscription = this.listen(dart.fn(value => { | 647 subscription = this.listen(dart.fn(value => { |
| 648 dart.as(value, T); | 648 dart.as(value, T); |
| 649 if (index == elementIndex) { | 649 if (index == elementIndex) { |
| 650 _cancelAndValue(subscription, future, value); | 650 _cancelAndValue(subscription, future, value); |
| 651 return; | 651 return; |
| 652 } | 652 } |
| 653 elementIndex = dart.notNull(elementIndex) + 1; | 653 elementIndex = dart.notNull(elementIndex) + 1; |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 [_addEventError]() { | 1418 [_addEventError]() { |
| 1419 if (dart.notNull(this.isClosed)) { | 1419 if (dart.notNull(this.isClosed)) { |
| 1420 return new core.StateError("Cannot add new events after calling close"
); | 1420 return new core.StateError("Cannot add new events after calling close"
); |
| 1421 } | 1421 } |
| 1422 dart.assert(this[_isAddingStream]); | 1422 dart.assert(this[_isAddingStream]); |
| 1423 return new core.StateError("Cannot add new events while doing an addStre
am"); | 1423 return new core.StateError("Cannot add new events while doing an addStre
am"); |
| 1424 } | 1424 } |
| 1425 add(data) { | 1425 add(data) { |
| 1426 dart.as(data, T); | 1426 dart.as(data, T); |
| 1427 if (!dart.notNull(this[_mayAddEvent])) | 1427 if (!dart.notNull(this[_mayAddEvent])) |
| 1428 throw this[_addEventError](); | 1428 dart.throw(this[_addEventError]()); |
| 1429 this[_sendData](data); | 1429 this[_sendData](data); |
| 1430 } | 1430 } |
| 1431 addError(error, stackTrace) { | 1431 addError(error, stackTrace) { |
| 1432 if (stackTrace === void 0) | 1432 if (stackTrace === void 0) |
| 1433 stackTrace = null; | 1433 stackTrace = null; |
| 1434 error = _nonNullError(error); | 1434 error = _nonNullError(error); |
| 1435 if (!dart.notNull(this[_mayAddEvent])) | 1435 if (!dart.notNull(this[_mayAddEvent])) |
| 1436 throw this[_addEventError](); | 1436 dart.throw(this[_addEventError]()); |
| 1437 let replacement = Zone.current.errorCallback(error, stackTrace); | 1437 let replacement = Zone.current.errorCallback(error, stackTrace); |
| 1438 if (replacement != null) { | 1438 if (replacement != null) { |
| 1439 error = _nonNullError(replacement.error); | 1439 error = _nonNullError(replacement.error); |
| 1440 stackTrace = replacement.stackTrace; | 1440 stackTrace = replacement.stackTrace; |
| 1441 } | 1441 } |
| 1442 this[_sendError](error, stackTrace); | 1442 this[_sendError](error, stackTrace); |
| 1443 } | 1443 } |
| 1444 close() { | 1444 close() { |
| 1445 if (dart.notNull(this.isClosed)) { | 1445 if (dart.notNull(this.isClosed)) { |
| 1446 dart.assert(this[_doneFuture] != null); | 1446 dart.assert(this[_doneFuture] != null); |
| 1447 return this[_doneFuture]; | 1447 return this[_doneFuture]; |
| 1448 } | 1448 } |
| 1449 if (!dart.notNull(this[_mayAddEvent])) | 1449 if (!dart.notNull(this[_mayAddEvent])) |
| 1450 throw this[_addEventError](); | 1450 dart.throw(this[_addEventError]()); |
| 1451 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStrea
mController$()._STATE_CLOSED); | 1451 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStrea
mController$()._STATE_CLOSED); |
| 1452 let doneFuture = this[_ensureDoneFuture](); | 1452 let doneFuture = this[_ensureDoneFuture](); |
| 1453 this[_sendDone](); | 1453 this[_sendDone](); |
| 1454 return doneFuture; | 1454 return doneFuture; |
| 1455 } | 1455 } |
| 1456 get done() { | 1456 get done() { |
| 1457 return this[_ensureDoneFuture](); | 1457 return this[_ensureDoneFuture](); |
| 1458 } | 1458 } |
| 1459 addStream(stream, opts) { | 1459 addStream(stream, opts) { |
| 1460 dart.as(stream, Stream$(T)); | 1460 dart.as(stream, Stream$(T)); |
| 1461 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: true; | 1461 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: true; |
| 1462 if (!dart.notNull(this[_mayAddEvent])) | 1462 if (!dart.notNull(this[_mayAddEvent])) |
| 1463 throw this[_addEventError](); | 1463 dart.throw(this[_addEventError]()); |
| 1464 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStrea
mController$()._STATE_ADDSTREAM); | 1464 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStrea
mController$()._STATE_ADDSTREAM); |
| 1465 this[_addStreamState] = new (_AddStreamState$(T))(this, stream, cancelOn
Error); | 1465 this[_addStreamState] = new (_AddStreamState$(T))(this, stream, cancelOn
Error); |
| 1466 return this[_addStreamState].addStreamFuture; | 1466 return this[_addStreamState].addStreamFuture; |
| 1467 } | 1467 } |
| 1468 [_add](data) { | 1468 [_add](data) { |
| 1469 dart.as(data, T); | 1469 dart.as(data, T); |
| 1470 this[_sendData](data); | 1470 this[_sendData](data); |
| 1471 } | 1471 } |
| 1472 [_addError](error, stackTrace) { | 1472 [_addError](error, stackTrace) { |
| 1473 this[_sendError](error, stackTrace); | 1473 this[_sendError](error, stackTrace); |
| 1474 } | 1474 } |
| 1475 [_close]() { | 1475 [_close]() { |
| 1476 dart.assert(this[_isAddingStream]); | 1476 dart.assert(this[_isAddingStream]); |
| 1477 let addState = this[_addStreamState]; | 1477 let addState = this[_addStreamState]; |
| 1478 this[_addStreamState] = null; | 1478 this[_addStreamState] = null; |
| 1479 this[_state] = dart.notNull(this[_state]) & ~dart.notNull(_BroadcastStre
amController$()._STATE_ADDSTREAM); | 1479 this[_state] = dart.notNull(this[_state]) & ~dart.notNull(_BroadcastStre
amController$()._STATE_ADDSTREAM); |
| 1480 addState.complete(); | 1480 addState.complete(); |
| 1481 } | 1481 } |
| 1482 [_forEachListener](action) { | 1482 [_forEachListener](action) { |
| 1483 dart.as(action, dart.functionType(dart.void, [_BufferingStreamSubscripti
on$(T)])); | 1483 dart.as(action, dart.functionType(dart.void, [_BufferingStreamSubscripti
on$(T)])); |
| 1484 if (dart.notNull(this[_isFiring])) { | 1484 if (dart.notNull(this[_isFiring])) { |
| 1485 throw new core.StateError("Cannot fire new event. Controller is alread
y firing an event"); | 1485 dart.throw(new core.StateError("Cannot fire new event. Controller is a
lready firing an event")); |
| 1486 } | 1486 } |
| 1487 if (dart.notNull(this[_isEmpty])) | 1487 if (dart.notNull(this[_isEmpty])) |
| 1488 return; | 1488 return; |
| 1489 let id = dart.notNull(this[_state]) & dart.notNull(_BroadcastStreamContr
oller$()._STATE_EVENT_ID); | 1489 let id = dart.notNull(this[_state]) & dart.notNull(_BroadcastStreamContr
oller$()._STATE_EVENT_ID); |
| 1490 this[_state] = dart.notNull(this[_state]) ^ (dart.notNull(_BroadcastStre
amController$()._STATE_EVENT_ID) | dart.notNull(_BroadcastStreamController$()._S
TATE_FIRING)); | 1490 this[_state] = dart.notNull(this[_state]) ^ (dart.notNull(_BroadcastStre
amController$()._STATE_EVENT_ID) | dart.notNull(_BroadcastStreamController$()._S
TATE_FIRING)); |
| 1491 let link = this[_next]; | 1491 let link = this[_next]; |
| 1492 while (!dart.notNull(core.identical(link, this))) { | 1492 while (!dart.notNull(core.identical(link, this))) { |
| 1493 let subscription = dart.as(link, _BroadcastSubscription$(T)); | 1493 let subscription = dart.as(link, _BroadcastSubscription$(T)); |
| 1494 if (dart.notNull(subscription[_expectsEvent](id))) { | 1494 if (dart.notNull(subscription[_expectsEvent](id))) { |
| 1495 subscription[_eventState] = dart.notNull(subscription[_eventState])
| dart.notNull(_BroadcastSubscription._STATE_FIRING); | 1495 subscription[_eventState] = dart.notNull(subscription[_eventState])
| dart.notNull(_BroadcastSubscription._STATE_FIRING); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1674 } | 1674 } |
| 1675 } | 1675 } |
| 1676 addError(error, stackTrace) { | 1676 addError(error, stackTrace) { |
| 1677 if (stackTrace === void 0) | 1677 if (stackTrace === void 0) |
| 1678 stackTrace = null; | 1678 stackTrace = null; |
| 1679 if (!dart.notNull(this.isClosed) && dart.notNull(this[_isFiring])) { | 1679 if (!dart.notNull(this.isClosed) && dart.notNull(this[_isFiring])) { |
| 1680 this[_addPendingEvent](new _DelayedError(error, stackTrace)); | 1680 this[_addPendingEvent](new _DelayedError(error, stackTrace)); |
| 1681 return; | 1681 return; |
| 1682 } | 1682 } |
| 1683 if (!dart.notNull(this[_mayAddEvent])) | 1683 if (!dart.notNull(this[_mayAddEvent])) |
| 1684 throw this[_addEventError](); | 1684 dart.throw(this[_addEventError]()); |
| 1685 this[_sendError](error, stackTrace); | 1685 this[_sendError](error, stackTrace); |
| 1686 while (dart.notNull(this[_hasPending])) { | 1686 while (dart.notNull(this[_hasPending])) { |
| 1687 this[_pending].handleNext(this); | 1687 this[_pending].handleNext(this); |
| 1688 } | 1688 } |
| 1689 } | 1689 } |
| 1690 close() { | 1690 close() { |
| 1691 if (!dart.notNull(this.isClosed) && dart.notNull(this[_isFiring])) { | 1691 if (!dart.notNull(this.isClosed) && dart.notNull(this[_isFiring])) { |
| 1692 this[_addPendingEvent](dart.const(new _DelayedDone())); | 1692 this[_addPendingEvent](dart.const(new _DelayedDone())); |
| 1693 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStr
eamController._STATE_CLOSED); | 1693 this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStr
eamController._STATE_CLOSED); |
| 1694 return super.done; | 1694 return super.done; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 return __CastType2; | 1778 return __CastType2; |
| 1779 }); | 1779 }); |
| 1780 let __CastType2 = __CastType2$(); | 1780 let __CastType2 = __CastType2$(); |
| 1781 class DeferredLibrary extends core.Object { | 1781 class DeferredLibrary extends core.Object { |
| 1782 DeferredLibrary(libraryName, opts) { | 1782 DeferredLibrary(libraryName, opts) { |
| 1783 let uri = opts && 'uri' in opts ? opts.uri : null; | 1783 let uri = opts && 'uri' in opts ? opts.uri : null; |
| 1784 this.libraryName = libraryName; | 1784 this.libraryName = libraryName; |
| 1785 this.uri = uri; | 1785 this.uri = uri; |
| 1786 } | 1786 } |
| 1787 load() { | 1787 load() { |
| 1788 throw 'DeferredLibrary not supported. ' + 'please use the `import "lib.dar
t" deferred as lib` syntax.'; | 1788 dart.throw('DeferredLibrary not supported. ' + 'please use the `import "li
b.dart" deferred as lib` syntax.'); |
| 1789 } | 1789 } |
| 1790 } | 1790 } |
| 1791 dart.setSignature(DeferredLibrary, { | 1791 dart.setSignature(DeferredLibrary, { |
| 1792 constructors: () => ({DeferredLibrary: [DeferredLibrary, [core.String], {uri
: core.String}]}), | 1792 constructors: () => ({DeferredLibrary: [DeferredLibrary, [core.String], {uri
: core.String}]}), |
| 1793 methods: () => ({load: [Future$(core.Null), []]}) | 1793 methods: () => ({load: [Future$(core.Null), []]}) |
| 1794 }); | 1794 }); |
| 1795 DeferredLibrary[dart.metadata] = () => [dart.const(new core.Deprecated("Dart s
dk v. 1.8"))]; | 1795 DeferredLibrary[dart.metadata] = () => [dart.const(new core.Deprecated("Dart s
dk v. 1.8"))]; |
| 1796 let _s = Symbol('_s'); | 1796 let _s = Symbol('_s'); |
| 1797 class DeferredLoadException extends core.Object { | 1797 class DeferredLoadException extends core.Object { |
| 1798 DeferredLoadException(s) { | 1798 DeferredLoadException(s) { |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2049 let _Completer$ = dart.generic(function(T) { | 2049 let _Completer$ = dart.generic(function(T) { |
| 2050 class _Completer extends core.Object { | 2050 class _Completer extends core.Object { |
| 2051 _Completer() { | 2051 _Completer() { |
| 2052 this.future = new (_Future$(T))(); | 2052 this.future = new (_Future$(T))(); |
| 2053 } | 2053 } |
| 2054 completeError(error, stackTrace) { | 2054 completeError(error, stackTrace) { |
| 2055 if (stackTrace === void 0) | 2055 if (stackTrace === void 0) |
| 2056 stackTrace = null; | 2056 stackTrace = null; |
| 2057 error = _nonNullError(error); | 2057 error = _nonNullError(error); |
| 2058 if (!dart.notNull(this.future[_mayComplete])) | 2058 if (!dart.notNull(this.future[_mayComplete])) |
| 2059 throw new core.StateError("Future already completed"); | 2059 dart.throw(new core.StateError("Future already completed")); |
| 2060 let replacement = Zone.current.errorCallback(error, stackTrace); | 2060 let replacement = Zone.current.errorCallback(error, stackTrace); |
| 2061 if (replacement != null) { | 2061 if (replacement != null) { |
| 2062 error = _nonNullError(replacement.error); | 2062 error = _nonNullError(replacement.error); |
| 2063 stackTrace = replacement.stackTrace; | 2063 stackTrace = replacement.stackTrace; |
| 2064 } | 2064 } |
| 2065 this[_completeError](error, stackTrace); | 2065 this[_completeError](error, stackTrace); |
| 2066 } | 2066 } |
| 2067 get isCompleted() { | 2067 get isCompleted() { |
| 2068 return !dart.notNull(this.future[_mayComplete]); | 2068 return !dart.notNull(this.future[_mayComplete]); |
| 2069 } | 2069 } |
| 2070 } | 2070 } |
| 2071 _Completer[dart.implements] = () => [Completer$(T)]; | 2071 _Completer[dart.implements] = () => [Completer$(T)]; |
| 2072 dart.setSignature(_Completer, { | 2072 dart.setSignature(_Completer, { |
| 2073 methods: () => ({completeError: [dart.void, [core.Object], [core.StackTrac
e]]}) | 2073 methods: () => ({completeError: [dart.void, [core.Object], [core.StackTrac
e]]}) |
| 2074 }); | 2074 }); |
| 2075 return _Completer; | 2075 return _Completer; |
| 2076 }); | 2076 }); |
| 2077 let _Completer = _Completer$(); | 2077 let _Completer = _Completer$(); |
| 2078 let _asyncCompleteError = Symbol('_asyncCompleteError'); | 2078 let _asyncCompleteError = Symbol('_asyncCompleteError'); |
| 2079 let _AsyncCompleter$ = dart.generic(function(T) { | 2079 let _AsyncCompleter$ = dart.generic(function(T) { |
| 2080 class _AsyncCompleter extends _Completer$(T) { | 2080 class _AsyncCompleter extends _Completer$(T) { |
| 2081 _AsyncCompleter() { | 2081 _AsyncCompleter() { |
| 2082 super._Completer(); | 2082 super._Completer(); |
| 2083 } | 2083 } |
| 2084 complete(value) { | 2084 complete(value) { |
| 2085 if (value === void 0) | 2085 if (value === void 0) |
| 2086 value = null; | 2086 value = null; |
| 2087 if (!dart.notNull(this.future[_mayComplete])) | 2087 if (!dart.notNull(this.future[_mayComplete])) |
| 2088 throw new core.StateError("Future already completed"); | 2088 dart.throw(new core.StateError("Future already completed")); |
| 2089 this.future[_asyncComplete](value); | 2089 this.future[_asyncComplete](value); |
| 2090 } | 2090 } |
| 2091 [_completeError](error, stackTrace) { | 2091 [_completeError](error, stackTrace) { |
| 2092 this.future[_asyncCompleteError](error, stackTrace); | 2092 this.future[_asyncCompleteError](error, stackTrace); |
| 2093 } | 2093 } |
| 2094 } | 2094 } |
| 2095 dart.setSignature(_AsyncCompleter, { | 2095 dart.setSignature(_AsyncCompleter, { |
| 2096 methods: () => ({ | 2096 methods: () => ({ |
| 2097 complete: [dart.void, [], [dart.dynamic]], | 2097 complete: [dart.void, [], [dart.dynamic]], |
| 2098 [_completeError]: [dart.void, [core.Object, core.StackTrace]] | 2098 [_completeError]: [dart.void, [core.Object, core.StackTrace]] |
| 2099 }) | 2099 }) |
| 2100 }); | 2100 }); |
| 2101 return _AsyncCompleter; | 2101 return _AsyncCompleter; |
| 2102 }); | 2102 }); |
| 2103 let _AsyncCompleter = _AsyncCompleter$(); | 2103 let _AsyncCompleter = _AsyncCompleter$(); |
| 2104 let _SyncCompleter$ = dart.generic(function(T) { | 2104 let _SyncCompleter$ = dart.generic(function(T) { |
| 2105 class _SyncCompleter extends _Completer$(T) { | 2105 class _SyncCompleter extends _Completer$(T) { |
| 2106 _SyncCompleter() { | 2106 _SyncCompleter() { |
| 2107 super._Completer(); | 2107 super._Completer(); |
| 2108 } | 2108 } |
| 2109 complete(value) { | 2109 complete(value) { |
| 2110 if (value === void 0) | 2110 if (value === void 0) |
| 2111 value = null; | 2111 value = null; |
| 2112 if (!dart.notNull(this.future[_mayComplete])) | 2112 if (!dart.notNull(this.future[_mayComplete])) |
| 2113 throw new core.StateError("Future already completed"); | 2113 dart.throw(new core.StateError("Future already completed")); |
| 2114 this.future[_complete](value); | 2114 this.future[_complete](value); |
| 2115 } | 2115 } |
| 2116 [_completeError](error, stackTrace) { | 2116 [_completeError](error, stackTrace) { |
| 2117 this.future[_completeError](error, stackTrace); | 2117 this.future[_completeError](error, stackTrace); |
| 2118 } | 2118 } |
| 2119 } | 2119 } |
| 2120 dart.setSignature(_SyncCompleter, { | 2120 dart.setSignature(_SyncCompleter, { |
| 2121 methods: () => ({ | 2121 methods: () => ({ |
| 2122 complete: [dart.void, [], [dart.dynamic]], | 2122 complete: [dart.void, [], [dart.dynamic]], |
| 2123 [_completeError]: [dart.void, [core.Object, core.StackTrace]] | 2123 [_completeError]: [dart.void, [core.Object, core.StackTrace]] |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2301 action = result[_zone].registerCallback(action); | 2301 action = result[_zone].registerCallback(action); |
| 2302 } | 2302 } |
| 2303 this[_addListener](new _FutureListener.whenComplete(result, action)); | 2303 this[_addListener](new _FutureListener.whenComplete(result, action)); |
| 2304 return dart.as(result, Future$(T)); | 2304 return dart.as(result, Future$(T)); |
| 2305 } | 2305 } |
| 2306 asStream() { | 2306 asStream() { |
| 2307 return Stream$(T).fromFuture(this); | 2307 return Stream$(T).fromFuture(this); |
| 2308 } | 2308 } |
| 2309 [_markPendingCompletion]() { | 2309 [_markPendingCompletion]() { |
| 2310 if (!dart.notNull(this[_mayComplete])) | 2310 if (!dart.notNull(this[_mayComplete])) |
| 2311 throw new core.StateError("Future already completed"); | 2311 dart.throw(new core.StateError("Future already completed")); |
| 2312 this[_state] = _Future$()._PENDING_COMPLETE; | 2312 this[_state] = _Future$()._PENDING_COMPLETE; |
| 2313 } | 2313 } |
| 2314 get [_value]() { | 2314 get [_value]() { |
| 2315 dart.assert(dart.notNull(this[_isComplete]) && dart.notNull(this[_hasVal
ue])); | 2315 dart.assert(dart.notNull(this[_isComplete]) && dart.notNull(this[_hasVal
ue])); |
| 2316 return dart.as(this[_resultOrListeners], T); | 2316 return dart.as(this[_resultOrListeners], T); |
| 2317 } | 2317 } |
| 2318 get [_error]() { | 2318 get [_error]() { |
| 2319 dart.assert(dart.notNull(this[_isComplete]) && dart.notNull(this[_hasErr
or])); | 2319 dart.assert(dart.notNull(this[_isComplete]) && dart.notNull(this[_hasErr
or])); |
| 2320 return dart.as(this[_resultOrListeners], AsyncError); | 2320 return dart.as(this[_resultOrListeners], AsyncError); |
| 2321 } | 2321 } |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3086 if (dart.notNull(this.isClosed)) { | 3086 if (dart.notNull(this.isClosed)) { |
| 3087 return new core.StateError("Cannot add event after closing"); | 3087 return new core.StateError("Cannot add event after closing"); |
| 3088 } | 3088 } |
| 3089 dart.assert(this[_isAddingStream]); | 3089 dart.assert(this[_isAddingStream]); |
| 3090 return new core.StateError("Cannot add event while adding a stream"); | 3090 return new core.StateError("Cannot add event while adding a stream"); |
| 3091 } | 3091 } |
| 3092 addStream(source, opts) { | 3092 addStream(source, opts) { |
| 3093 dart.as(source, Stream$(T)); | 3093 dart.as(source, Stream$(T)); |
| 3094 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: true; | 3094 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: true; |
| 3095 if (!dart.notNull(this[_mayAddEvent])) | 3095 if (!dart.notNull(this[_mayAddEvent])) |
| 3096 throw this[_badEventState](); | 3096 dart.throw(this[_badEventState]()); |
| 3097 if (dart.notNull(this[_isCanceled])) | 3097 if (dart.notNull(this[_isCanceled])) |
| 3098 return new _Future.immediate(null); | 3098 return new _Future.immediate(null); |
| 3099 let addState = new _StreamControllerAddStreamState(this, this[_varData],
source, cancelOnError); | 3099 let addState = new _StreamControllerAddStreamState(this, this[_varData],
source, cancelOnError); |
| 3100 this[_varData] = addState; | 3100 this[_varData] = addState; |
| 3101 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_ADDSTREAM); | 3101 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_ADDSTREAM); |
| 3102 return addState.addStreamFuture; | 3102 return addState.addStreamFuture; |
| 3103 } | 3103 } |
| 3104 get done() { | 3104 get done() { |
| 3105 return this[_ensureDoneFuture](); | 3105 return this[_ensureDoneFuture](); |
| 3106 } | 3106 } |
| 3107 [_ensureDoneFuture]() { | 3107 [_ensureDoneFuture]() { |
| 3108 if (this[_doneFuture] == null) { | 3108 if (this[_doneFuture] == null) { |
| 3109 this[_doneFuture] = dart.notNull(this[_isCanceled]) ? Future._nullFutu
re : new _Future(); | 3109 this[_doneFuture] = dart.notNull(this[_isCanceled]) ? Future._nullFutu
re : new _Future(); |
| 3110 } | 3110 } |
| 3111 return this[_doneFuture]; | 3111 return this[_doneFuture]; |
| 3112 } | 3112 } |
| 3113 add(value) { | 3113 add(value) { |
| 3114 dart.as(value, T); | 3114 dart.as(value, T); |
| 3115 if (!dart.notNull(this[_mayAddEvent])) | 3115 if (!dart.notNull(this[_mayAddEvent])) |
| 3116 throw this[_badEventState](); | 3116 dart.throw(this[_badEventState]()); |
| 3117 this[_add](value); | 3117 this[_add](value); |
| 3118 } | 3118 } |
| 3119 addError(error, stackTrace) { | 3119 addError(error, stackTrace) { |
| 3120 if (stackTrace === void 0) | 3120 if (stackTrace === void 0) |
| 3121 stackTrace = null; | 3121 stackTrace = null; |
| 3122 error = _nonNullError(error); | 3122 error = _nonNullError(error); |
| 3123 if (!dart.notNull(this[_mayAddEvent])) | 3123 if (!dart.notNull(this[_mayAddEvent])) |
| 3124 throw this[_badEventState](); | 3124 dart.throw(this[_badEventState]()); |
| 3125 let replacement = Zone.current.errorCallback(error, stackTrace); | 3125 let replacement = Zone.current.errorCallback(error, stackTrace); |
| 3126 if (replacement != null) { | 3126 if (replacement != null) { |
| 3127 error = _nonNullError(replacement.error); | 3127 error = _nonNullError(replacement.error); |
| 3128 stackTrace = replacement.stackTrace; | 3128 stackTrace = replacement.stackTrace; |
| 3129 } | 3129 } |
| 3130 this[_addError](error, stackTrace); | 3130 this[_addError](error, stackTrace); |
| 3131 } | 3131 } |
| 3132 close() { | 3132 close() { |
| 3133 if (dart.notNull(this.isClosed)) { | 3133 if (dart.notNull(this.isClosed)) { |
| 3134 return this[_ensureDoneFuture](); | 3134 return this[_ensureDoneFuture](); |
| 3135 } | 3135 } |
| 3136 if (!dart.notNull(this[_mayAddEvent])) | 3136 if (!dart.notNull(this[_mayAddEvent])) |
| 3137 throw this[_badEventState](); | 3137 dart.throw(this[_badEventState]()); |
| 3138 this[_closeUnchecked](); | 3138 this[_closeUnchecked](); |
| 3139 return this[_ensureDoneFuture](); | 3139 return this[_ensureDoneFuture](); |
| 3140 } | 3140 } |
| 3141 [_closeUnchecked]() { | 3141 [_closeUnchecked]() { |
| 3142 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_CLOSED); | 3142 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_CLOSED); |
| 3143 if (dart.notNull(this.hasListener)) { | 3143 if (dart.notNull(this.hasListener)) { |
| 3144 this[_sendDone](); | 3144 this[_sendDone](); |
| 3145 } else if (dart.notNull(this[_isInitialState])) { | 3145 } else if (dart.notNull(this[_isInitialState])) { |
| 3146 this[_ensurePendingEvents]().add(dart.const(new _DelayedDone())); | 3146 this[_ensurePendingEvents]().add(dart.const(new _DelayedDone())); |
| 3147 } | 3147 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3165 dart.assert(this[_isAddingStream]); | 3165 dart.assert(this[_isAddingStream]); |
| 3166 let addState = dart.as(this[_varData], _StreamControllerAddStreamState); | 3166 let addState = dart.as(this[_varData], _StreamControllerAddStreamState); |
| 3167 this[_varData] = addState.varData; | 3167 this[_varData] = addState.varData; |
| 3168 this[_state] = dart.notNull(this[_state]) & ~dart.notNull(_StreamControl
ler$()._STATE_ADDSTREAM); | 3168 this[_state] = dart.notNull(this[_state]) & ~dart.notNull(_StreamControl
ler$()._STATE_ADDSTREAM); |
| 3169 addState.complete(); | 3169 addState.complete(); |
| 3170 } | 3170 } |
| 3171 [_subscribe](onData, onError, onDone, cancelOnError) { | 3171 [_subscribe](onData, onError, onDone, cancelOnError) { |
| 3172 dart.as(onData, dart.functionType(dart.void, [T])); | 3172 dart.as(onData, dart.functionType(dart.void, [T])); |
| 3173 dart.as(onDone, dart.functionType(dart.void, [])); | 3173 dart.as(onDone, dart.functionType(dart.void, [])); |
| 3174 if (!dart.notNull(this[_isInitialState])) { | 3174 if (!dart.notNull(this[_isInitialState])) { |
| 3175 throw new core.StateError("Stream has already been listened to."); | 3175 dart.throw(new core.StateError("Stream has already been listened to.")
); |
| 3176 } | 3176 } |
| 3177 let subscription = new _ControllerSubscription(this, onData, onError, on
Done, cancelOnError); | 3177 let subscription = new _ControllerSubscription(this, onData, onError, on
Done, cancelOnError); |
| 3178 let pendingEvents = this[_pendingEvents]; | 3178 let pendingEvents = this[_pendingEvents]; |
| 3179 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_SUBSCRIBED); | 3179 this[_state] = dart.notNull(this[_state]) | dart.notNull(_StreamControll
er$()._STATE_SUBSCRIBED); |
| 3180 if (dart.notNull(this[_isAddingStream])) { | 3180 if (dart.notNull(this[_isAddingStream])) { |
| 3181 let addState = dart.as(this[_varData], _StreamControllerAddStreamState
); | 3181 let addState = dart.as(this[_varData], _StreamControllerAddStreamState
); |
| 3182 addState.varData = subscription; | 3182 addState.varData = subscription; |
| 3183 addState.resume(); | 3183 addState.resume(); |
| 3184 } else { | 3184 } else { |
| 3185 this[_varData] = subscription; | 3185 this[_varData] = subscription; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3519 let _GeneratedStreamImpl$ = dart.generic(function(T) { | 3519 let _GeneratedStreamImpl$ = dart.generic(function(T) { |
| 3520 class _GeneratedStreamImpl extends _StreamImpl$(T) { | 3520 class _GeneratedStreamImpl extends _StreamImpl$(T) { |
| 3521 _GeneratedStreamImpl(pending) { | 3521 _GeneratedStreamImpl(pending) { |
| 3522 this[_pending] = pending; | 3522 this[_pending] = pending; |
| 3523 this[_isUsed] = false; | 3523 this[_isUsed] = false; |
| 3524 } | 3524 } |
| 3525 [_createSubscription](onData, onError, onDone, cancelOnError) { | 3525 [_createSubscription](onData, onError, onDone, cancelOnError) { |
| 3526 dart.as(onData, dart.functionType(dart.void, [T])); | 3526 dart.as(onData, dart.functionType(dart.void, [T])); |
| 3527 dart.as(onDone, dart.functionType(dart.void, [])); | 3527 dart.as(onDone, dart.functionType(dart.void, [])); |
| 3528 if (dart.notNull(this[_isUsed])) | 3528 if (dart.notNull(this[_isUsed])) |
| 3529 throw new core.StateError("Stream has already been listened to."); | 3529 dart.throw(new core.StateError("Stream has already been listened to.")
); |
| 3530 this[_isUsed] = true; | 3530 this[_isUsed] = true; |
| 3531 return dart.as((() => { | 3531 return dart.as((() => { |
| 3532 let _ = new _BufferingStreamSubscription(onData, onError, onDone, canc
elOnError); | 3532 let _ = new _BufferingStreamSubscription(onData, onError, onDone, canc
elOnError); |
| 3533 _[_setPendingEvents](this[_pending]()); | 3533 _[_setPendingEvents](this[_pending]()); |
| 3534 return _; | 3534 return _; |
| 3535 })(), StreamSubscription$(T)); | 3535 })(), StreamSubscription$(T)); |
| 3536 } | 3536 } |
| 3537 } | 3537 } |
| 3538 dart.setSignature(_GeneratedStreamImpl, { | 3538 dart.setSignature(_GeneratedStreamImpl, { |
| 3539 constructors: () => ({_GeneratedStreamImpl: [_GeneratedStreamImpl$(T), [_E
ventGenerator]]}), | 3539 constructors: () => ({_GeneratedStreamImpl: [_GeneratedStreamImpl$(T), [_E
ventGenerator]]}), |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3587 class _IterablePendingEvents extends _PendingEvents { | 3587 class _IterablePendingEvents extends _PendingEvents { |
| 3588 _IterablePendingEvents(data) { | 3588 _IterablePendingEvents(data) { |
| 3589 this[_iterator] = data[dartx.iterator]; | 3589 this[_iterator] = data[dartx.iterator]; |
| 3590 super._PendingEvents(); | 3590 super._PendingEvents(); |
| 3591 } | 3591 } |
| 3592 get isEmpty() { | 3592 get isEmpty() { |
| 3593 return this[_iterator] == null; | 3593 return this[_iterator] == null; |
| 3594 } | 3594 } |
| 3595 handleNext(dispatch) { | 3595 handleNext(dispatch) { |
| 3596 if (this[_iterator] == null) { | 3596 if (this[_iterator] == null) { |
| 3597 throw new core.StateError("No events pending."); | 3597 dart.throw(new core.StateError("No events pending.")); |
| 3598 } | 3598 } |
| 3599 let isDone = null; | 3599 let isDone = null; |
| 3600 try { | 3600 try { |
| 3601 isDone = !dart.notNull(this[_iterator].moveNext()); | 3601 isDone = !dart.notNull(this[_iterator].moveNext()); |
| 3602 } catch (e) { | 3602 } catch (e) { |
| 3603 let s = dart.stackTrace(e); | 3603 let s = dart.stackTrace(e); |
| 3604 this[_iterator] = null; | 3604 this[_iterator] = null; |
| 3605 dispatch[_sendError](e, s); | 3605 dispatch[_sendError](e, s); |
| 3606 return; | 3606 return; |
| 3607 } | 3607 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 class _DelayedDone extends core.Object { | 3691 class _DelayedDone extends core.Object { |
| 3692 _DelayedDone() { | 3692 _DelayedDone() { |
| 3693 } | 3693 } |
| 3694 perform(dispatch) { | 3694 perform(dispatch) { |
| 3695 dispatch[_sendDone](); | 3695 dispatch[_sendDone](); |
| 3696 } | 3696 } |
| 3697 get next() { | 3697 get next() { |
| 3698 return null; | 3698 return null; |
| 3699 } | 3699 } |
| 3700 set next(_) { | 3700 set next(_) { |
| 3701 throw new core.StateError("No events after a done."); | 3701 dart.throw(new core.StateError("No events after a done.")); |
| 3702 } | 3702 } |
| 3703 } | 3703 } |
| 3704 _DelayedDone[dart.implements] = () => [_DelayedEvent]; | 3704 _DelayedDone[dart.implements] = () => [_DelayedEvent]; |
| 3705 dart.setSignature(_DelayedDone, { | 3705 dart.setSignature(_DelayedDone, { |
| 3706 constructors: () => ({_DelayedDone: [_DelayedDone, []]}), | 3706 constructors: () => ({_DelayedDone: [_DelayedDone, []]}), |
| 3707 methods: () => ({perform: [dart.void, [_EventDispatch]]}) | 3707 methods: () => ({perform: [dart.void, [_EventDispatch]]}) |
| 3708 }); | 3708 }); |
| 3709 _PendingEvents._STATE_UNSCHEDULED = 0; | 3709 _PendingEvents._STATE_UNSCHEDULED = 0; |
| 3710 _PendingEvents._STATE_SCHEDULED = 1; | 3710 _PendingEvents._STATE_SCHEDULED = 1; |
| 3711 _PendingEvents._STATE_CANCELED = 3; | 3711 _PendingEvents._STATE_CANCELED = 3; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3957 return _AsBroadcastStream; | 3957 return _AsBroadcastStream; |
| 3958 }); | 3958 }); |
| 3959 let _AsBroadcastStream = _AsBroadcastStream$(); | 3959 let _AsBroadcastStream = _AsBroadcastStream$(); |
| 3960 let _BroadcastSubscriptionWrapper$ = dart.generic(function(T) { | 3960 let _BroadcastSubscriptionWrapper$ = dart.generic(function(T) { |
| 3961 class _BroadcastSubscriptionWrapper extends core.Object { | 3961 class _BroadcastSubscriptionWrapper extends core.Object { |
| 3962 _BroadcastSubscriptionWrapper(stream) { | 3962 _BroadcastSubscriptionWrapper(stream) { |
| 3963 this[_stream] = stream; | 3963 this[_stream] = stream; |
| 3964 } | 3964 } |
| 3965 onData(handleData) { | 3965 onData(handleData) { |
| 3966 dart.as(handleData, dart.functionType(dart.void, [T])); | 3966 dart.as(handleData, dart.functionType(dart.void, [T])); |
| 3967 throw new core.UnsupportedError("Cannot change handlers of asBroadcastSt
ream source subscription."); | 3967 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); |
| 3968 } | 3968 } |
| 3969 onError(handleError) { | 3969 onError(handleError) { |
| 3970 throw new core.UnsupportedError("Cannot change handlers of asBroadcastSt
ream source subscription."); | 3970 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); |
| 3971 } | 3971 } |
| 3972 onDone(handleDone) { | 3972 onDone(handleDone) { |
| 3973 dart.as(handleDone, dart.functionType(dart.void, [])); | 3973 dart.as(handleDone, dart.functionType(dart.void, [])); |
| 3974 throw new core.UnsupportedError("Cannot change handlers of asBroadcastSt
ream source subscription."); | 3974 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); |
| 3975 } | 3975 } |
| 3976 pause(resumeSignal) { | 3976 pause(resumeSignal) { |
| 3977 if (resumeSignal === void 0) | 3977 if (resumeSignal === void 0) |
| 3978 resumeSignal = null; | 3978 resumeSignal = null; |
| 3979 this[_stream][_pauseSubscription](resumeSignal); | 3979 this[_stream][_pauseSubscription](resumeSignal); |
| 3980 } | 3980 } |
| 3981 resume() { | 3981 resume() { |
| 3982 this[_stream][_resumeSubscription](); | 3982 this[_stream][_resumeSubscription](); |
| 3983 } | 3983 } |
| 3984 cancel() { | 3984 cancel() { |
| 3985 this[_stream][_cancelSubscription](); | 3985 this[_stream][_cancelSubscription](); |
| 3986 return null; | 3986 return null; |
| 3987 } | 3987 } |
| 3988 get isPaused() { | 3988 get isPaused() { |
| 3989 return this[_stream][_isSubscriptionPaused]; | 3989 return this[_stream][_isSubscriptionPaused]; |
| 3990 } | 3990 } |
| 3991 asFuture(futureValue) { | 3991 asFuture(futureValue) { |
| 3992 if (futureValue === void 0) | 3992 if (futureValue === void 0) |
| 3993 futureValue = null; | 3993 futureValue = null; |
| 3994 throw new core.UnsupportedError("Cannot change handlers of asBroadcastSt
ream source subscription."); | 3994 dart.throw(new core.UnsupportedError("Cannot change handlers of asBroadc
astStream source subscription.")); |
| 3995 } | 3995 } |
| 3996 } | 3996 } |
| 3997 _BroadcastSubscriptionWrapper[dart.implements] = () => [StreamSubscription$(
T)]; | 3997 _BroadcastSubscriptionWrapper[dart.implements] = () => [StreamSubscription$(
T)]; |
| 3998 dart.setSignature(_BroadcastSubscriptionWrapper, { | 3998 dart.setSignature(_BroadcastSubscriptionWrapper, { |
| 3999 constructors: () => ({_BroadcastSubscriptionWrapper: [_BroadcastSubscripti
onWrapper$(T), [_AsBroadcastStream]]}), | 3999 constructors: () => ({_BroadcastSubscriptionWrapper: [_BroadcastSubscripti
onWrapper$(T), [_AsBroadcastStream]]}), |
| 4000 methods: () => ({ | 4000 methods: () => ({ |
| 4001 onData: [dart.void, [dart.functionType(dart.void, [T])]], | 4001 onData: [dart.void, [dart.functionType(dart.void, [T])]], |
| 4002 onError: [dart.void, [core.Function]], | 4002 onError: [dart.void, [core.Function]], |
| 4003 onDone: [dart.void, [dart.functionType(dart.void, [])]], | 4003 onDone: [dart.void, [dart.functionType(dart.void, [])]], |
| 4004 pause: [dart.void, [], [Future]], | 4004 pause: [dart.void, [], [Future]], |
| (...skipping 18 matching lines...) Expand all Loading... |
| 4023 this[_subscription] = stream.listen(dart.bind(this, _onData), {onError:
dart.bind(this, _onError), onDone: dart.bind(this, _onDone), cancelOnError: true
}); | 4023 this[_subscription] = stream.listen(dart.bind(this, _onData), {onError:
dart.bind(this, _onError), onDone: dart.bind(this, _onDone), cancelOnError: true
}); |
| 4024 } | 4024 } |
| 4025 get current() { | 4025 get current() { |
| 4026 return this[_current]; | 4026 return this[_current]; |
| 4027 } | 4027 } |
| 4028 moveNext() { | 4028 moveNext() { |
| 4029 if (this[_state] == _StreamIteratorImpl$()._STATE_DONE) { | 4029 if (this[_state] == _StreamIteratorImpl$()._STATE_DONE) { |
| 4030 return new (_Future$(core.bool)).immediate(false); | 4030 return new (_Future$(core.bool)).immediate(false); |
| 4031 } | 4031 } |
| 4032 if (this[_state] == _StreamIteratorImpl$()._STATE_MOVING) { | 4032 if (this[_state] == _StreamIteratorImpl$()._STATE_MOVING) { |
| 4033 throw new core.StateError("Already waiting for next."); | 4033 dart.throw(new core.StateError("Already waiting for next.")); |
| 4034 } | 4034 } |
| 4035 if (this[_state] == _StreamIteratorImpl$()._STATE_FOUND) { | 4035 if (this[_state] == _StreamIteratorImpl$()._STATE_FOUND) { |
| 4036 this[_state] = _StreamIteratorImpl$()._STATE_MOVING; | 4036 this[_state] = _StreamIteratorImpl$()._STATE_MOVING; |
| 4037 this[_current] = null; | 4037 this[_current] = null; |
| 4038 this[_futureOrPrefetch] = new (_Future$(core.bool))(); | 4038 this[_futureOrPrefetch] = new (_Future$(core.bool))(); |
| 4039 return dart.as(this[_futureOrPrefetch], Future$(core.bool)); | 4039 return dart.as(this[_futureOrPrefetch], Future$(core.bool)); |
| 4040 } else { | 4040 } else { |
| 4041 dart.assert(dart.notNull(this[_state]) >= dart.notNull(_StreamIterator
Impl$()._STATE_EXTRA_DATA)); | 4041 dart.assert(dart.notNull(this[_state]) >= dart.notNull(_StreamIterator
Impl$()._STATE_EXTRA_DATA)); |
| 4042 switch (this[_state]) { | 4042 switch (this[_state]) { |
| 4043 case _StreamIteratorImpl$()._STATE_EXTRA_DATA: | 4043 case _StreamIteratorImpl$()._STATE_EXTRA_DATA: |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4463 return _HandleErrorStream; | 4463 return _HandleErrorStream; |
| 4464 }); | 4464 }); |
| 4465 let _HandleErrorStream = _HandleErrorStream$(); | 4465 let _HandleErrorStream = _HandleErrorStream$(); |
| 4466 let _remaining = Symbol('_remaining'); | 4466 let _remaining = Symbol('_remaining'); |
| 4467 let _TakeStream$ = dart.generic(function(T) { | 4467 let _TakeStream$ = dart.generic(function(T) { |
| 4468 class _TakeStream extends _ForwardingStream$(T, T) { | 4468 class _TakeStream extends _ForwardingStream$(T, T) { |
| 4469 _TakeStream(source, count) { | 4469 _TakeStream(source, count) { |
| 4470 this[_remaining] = count; | 4470 this[_remaining] = count; |
| 4471 super._ForwardingStream(source); | 4471 super._ForwardingStream(source); |
| 4472 if (!(typeof count == 'number')) | 4472 if (!(typeof count == 'number')) |
| 4473 throw new core.ArgumentError(count); | 4473 dart.throw(new core.ArgumentError(count)); |
| 4474 } | 4474 } |
| 4475 [_handleData](inputEvent, sink) { | 4475 [_handleData](inputEvent, sink) { |
| 4476 dart.as(inputEvent, T); | 4476 dart.as(inputEvent, T); |
| 4477 dart.as(sink, _EventSink$(T)); | 4477 dart.as(sink, _EventSink$(T)); |
| 4478 if (dart.notNull(this[_remaining]) > 0) { | 4478 if (dart.notNull(this[_remaining]) > 0) { |
| 4479 sink[_add](inputEvent); | 4479 sink[_add](inputEvent); |
| 4480 this[_remaining] = dart.notNull(this[_remaining]) - 1; | 4480 this[_remaining] = dart.notNull(this[_remaining]) - 1; |
| 4481 if (this[_remaining] == 0) { | 4481 if (this[_remaining] == 0) { |
| 4482 sink[_close](); | 4482 sink[_close](); |
| 4483 } | 4483 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4523 }); | 4523 }); |
| 4524 return _TakeWhileStream; | 4524 return _TakeWhileStream; |
| 4525 }); | 4525 }); |
| 4526 let _TakeWhileStream = _TakeWhileStream$(); | 4526 let _TakeWhileStream = _TakeWhileStream$(); |
| 4527 let _SkipStream$ = dart.generic(function(T) { | 4527 let _SkipStream$ = dart.generic(function(T) { |
| 4528 class _SkipStream extends _ForwardingStream$(T, T) { | 4528 class _SkipStream extends _ForwardingStream$(T, T) { |
| 4529 _SkipStream(source, count) { | 4529 _SkipStream(source, count) { |
| 4530 this[_remaining] = count; | 4530 this[_remaining] = count; |
| 4531 super._ForwardingStream(source); | 4531 super._ForwardingStream(source); |
| 4532 if (!(typeof count == 'number') || dart.notNull(count) < 0) | 4532 if (!(typeof count == 'number') || dart.notNull(count) < 0) |
| 4533 throw new core.ArgumentError(count); | 4533 dart.throw(new core.ArgumentError(count)); |
| 4534 } | 4534 } |
| 4535 [_handleData](inputEvent, sink) { | 4535 [_handleData](inputEvent, sink) { |
| 4536 dart.as(inputEvent, T); | 4536 dart.as(inputEvent, T); |
| 4537 dart.as(sink, _EventSink$(T)); | 4537 dart.as(sink, _EventSink$(T)); |
| 4538 if (dart.notNull(this[_remaining]) > 0) { | 4538 if (dart.notNull(this[_remaining]) > 0) { |
| 4539 this[_remaining] = dart.notNull(this[_remaining]) - 1; | 4539 this[_remaining] = dart.notNull(this[_remaining]) - 1; |
| 4540 return; | 4540 return; |
| 4541 } | 4541 } |
| 4542 sink[_add](inputEvent); | 4542 sink[_add](inputEvent); |
| 4543 } | 4543 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4681 let eventSink = new (_EventSinkWrapper$(T))(this); | 4681 let eventSink = new (_EventSinkWrapper$(T))(this); |
| 4682 this[_transformerSink] = mapper(eventSink); | 4682 this[_transformerSink] = mapper(eventSink); |
| 4683 this[_subscription] = source.listen(dart.bind(this, _handleData), {onErr
or: dart.bind(this, _handleError), onDone: dart.bind(this, _handleDone)}); | 4683 this[_subscription] = source.listen(dart.bind(this, _handleData), {onErr
or: dart.bind(this, _handleError), onDone: dart.bind(this, _handleDone)}); |
| 4684 } | 4684 } |
| 4685 get [_isSubscribed]() { | 4685 get [_isSubscribed]() { |
| 4686 return this[_subscription] != null; | 4686 return this[_subscription] != null; |
| 4687 } | 4687 } |
| 4688 [_add](data) { | 4688 [_add](data) { |
| 4689 dart.as(data, T); | 4689 dart.as(data, T); |
| 4690 if (dart.notNull(this[_isClosed])) { | 4690 if (dart.notNull(this[_isClosed])) { |
| 4691 throw new core.StateError("Stream is already closed"); | 4691 dart.throw(new core.StateError("Stream is already closed")); |
| 4692 } | 4692 } |
| 4693 super[_add](data); | 4693 super[_add](data); |
| 4694 } | 4694 } |
| 4695 [_addError](error, stackTrace) { | 4695 [_addError](error, stackTrace) { |
| 4696 if (dart.notNull(this[_isClosed])) { | 4696 if (dart.notNull(this[_isClosed])) { |
| 4697 throw new core.StateError("Stream is already closed"); | 4697 dart.throw(new core.StateError("Stream is already closed")); |
| 4698 } | 4698 } |
| 4699 super[_addError](error, stackTrace); | 4699 super[_addError](error, stackTrace); |
| 4700 } | 4700 } |
| 4701 [_close]() { | 4701 [_close]() { |
| 4702 if (dart.notNull(this[_isClosed])) { | 4702 if (dart.notNull(this[_isClosed])) { |
| 4703 throw new core.StateError("Stream is already closed"); | 4703 dart.throw(new core.StateError("Stream is already closed")); |
| 4704 } | 4704 } |
| 4705 super[_close](); | 4705 super[_close](); |
| 4706 } | 4706 } |
| 4707 [_onPause]() { | 4707 [_onPause]() { |
| 4708 if (dart.notNull(this[_isSubscribed])) | 4708 if (dart.notNull(this[_isSubscribed])) |
| 4709 this[_subscription].pause(); | 4709 this[_subscription].pause(); |
| 4710 } | 4710 } |
| 4711 [_onResume]() { | 4711 [_onResume]() { |
| 4712 if (dart.notNull(this[_isSubscribed])) | 4712 if (dart.notNull(this[_isSubscribed])) |
| 4713 this[_subscription].resume(); | 4713 this[_subscription].resume(); |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5666 registerBinaryCallback: [ZoneBinaryCallback, [dart.functionType(dart.dynam
ic, [dart.dynamic, dart.dynamic])]], | 5666 registerBinaryCallback: [ZoneBinaryCallback, [dart.functionType(dart.dynam
ic, [dart.dynamic, dart.dynamic])]], |
| 5667 errorCallback: [AsyncError, [core.Object, core.StackTrace]], | 5667 errorCallback: [AsyncError, [core.Object, core.StackTrace]], |
| 5668 scheduleMicrotask: [dart.void, [dart.functionType(dart.void, [])]], | 5668 scheduleMicrotask: [dart.void, [dart.functionType(dart.void, [])]], |
| 5669 createTimer: [Timer, [core.Duration, dart.functionType(dart.void, [])]], | 5669 createTimer: [Timer, [core.Duration, dart.functionType(dart.void, [])]], |
| 5670 createPeriodicTimer: [Timer, [core.Duration, dart.functionType(dart.void,
[Timer])]], | 5670 createPeriodicTimer: [Timer, [core.Duration, dart.functionType(dart.void,
[Timer])]], |
| 5671 print: [dart.void, [core.String]] | 5671 print: [dart.void, [core.String]] |
| 5672 }) | 5672 }) |
| 5673 }); | 5673 }); |
| 5674 function _rootHandleUncaughtError(self, parent, zone, error, stackTrace) { | 5674 function _rootHandleUncaughtError(self, parent, zone, error, stackTrace) { |
| 5675 _schedulePriorityAsyncCallback(dart.fn(() => { | 5675 _schedulePriorityAsyncCallback(dart.fn(() => { |
| 5676 throw new _UncaughtAsyncError(error, stackTrace); | 5676 dart.throw(new _UncaughtAsyncError(error, stackTrace)); |
| 5677 })); | 5677 })); |
| 5678 } | 5678 } |
| 5679 dart.fn(_rootHandleUncaughtError, dart.void, [Zone, ZoneDelegate, Zone, dart.d
ynamic, core.StackTrace]); | 5679 dart.fn(_rootHandleUncaughtError, dart.void, [Zone, ZoneDelegate, Zone, dart.d
ynamic, core.StackTrace]); |
| 5680 function _rootRun(self, parent, zone, f) { | 5680 function _rootRun(self, parent, zone, f) { |
| 5681 if (dart.equals(Zone._current, zone)) | 5681 if (dart.equals(Zone._current, zone)) |
| 5682 return f(); | 5682 return f(); |
| 5683 let old = Zone._enter(zone); | 5683 let old = Zone._enter(zone); |
| 5684 try { | 5684 try { |
| 5685 return f(); | 5685 return f(); |
| 5686 } finally { | 5686 } finally { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5754 dart.fn(_rootPrint, dart.void, [Zone, ZoneDelegate, Zone, core.String]); | 5754 dart.fn(_rootPrint, dart.void, [Zone, ZoneDelegate, Zone, core.String]); |
| 5755 function _printToZone(line) { | 5755 function _printToZone(line) { |
| 5756 Zone.current.print(line); | 5756 Zone.current.print(line); |
| 5757 } | 5757 } |
| 5758 dart.fn(_printToZone, dart.void, [core.String]); | 5758 dart.fn(_printToZone, dart.void, [core.String]); |
| 5759 function _rootFork(self, parent, zone, specification, zoneValues) { | 5759 function _rootFork(self, parent, zone, specification, zoneValues) { |
| 5760 _internal.printToZone = _printToZone; | 5760 _internal.printToZone = _printToZone; |
| 5761 if (specification == null) { | 5761 if (specification == null) { |
| 5762 specification = dart.const(ZoneSpecification.new()); | 5762 specification = dart.const(ZoneSpecification.new()); |
| 5763 } else if (!dart.is(specification, _ZoneSpecification)) { | 5763 } else if (!dart.is(specification, _ZoneSpecification)) { |
| 5764 throw new core.ArgumentError("ZoneSpecifications must be instantiated" + "
with the provided constructor."); | 5764 dart.throw(new core.ArgumentError("ZoneSpecifications must be instantiated
" + " with the provided constructor.")); |
| 5765 } | 5765 } |
| 5766 let valueMap = null; | 5766 let valueMap = null; |
| 5767 if (zoneValues == null) { | 5767 if (zoneValues == null) { |
| 5768 if (dart.is(zone, _Zone)) { | 5768 if (dart.is(zone, _Zone)) { |
| 5769 valueMap = zone[_map]; | 5769 valueMap = zone[_map]; |
| 5770 } else { | 5770 } else { |
| 5771 valueMap = collection.HashMap.new(); | 5771 valueMap = collection.HashMap.new(); |
| 5772 } | 5772 } |
| 5773 } else { | 5773 } else { |
| 5774 valueMap = collection.HashMap.from(zoneValues); | 5774 valueMap = collection.HashMap.from(zoneValues); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5911 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; | 5911 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; |
| 5912 exports.CreateTimerHandler = CreateTimerHandler; | 5912 exports.CreateTimerHandler = CreateTimerHandler; |
| 5913 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; | 5913 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; |
| 5914 exports.PrintHandler = PrintHandler; | 5914 exports.PrintHandler = PrintHandler; |
| 5915 exports.ForkHandler = ForkHandler; | 5915 exports.ForkHandler = ForkHandler; |
| 5916 exports.ZoneSpecification = ZoneSpecification; | 5916 exports.ZoneSpecification = ZoneSpecification; |
| 5917 exports.ZoneDelegate = ZoneDelegate; | 5917 exports.ZoneDelegate = ZoneDelegate; |
| 5918 exports.Zone = Zone; | 5918 exports.Zone = Zone; |
| 5919 exports.runZoned = runZoned; | 5919 exports.runZoned = runZoned; |
| 5920 }); | 5920 }); |
| OLD | NEW |