OLD | NEW |
1 // Generated by dart2js, the Dart to JavaScript compiler version: 1.12.0-edge.61
ea0618ce6e29cf101bc9c062222f04b97f211a. | 1 // Generated by dart2js, the Dart to JavaScript compiler version: 1.14.0-edge.f8
87b03b5b21735a292ef599d132568b661ce29b. |
2 // The code supports the following hooks: | 2 // The code supports the following hooks: |
3 // dartPrint(message): | 3 // dartPrint(message): |
4 // if this function is defined it is called instead of the Dart [print] | 4 // if this function is defined it is called instead of the Dart [print] |
5 // method. | 5 // method. |
6 // | 6 // |
7 // dartMainRunner(main, args): | 7 // dartMainRunner(main, args): |
8 // if this function is defined, the Dart [main] method will not be invoked | 8 // if this function is defined, the Dart [main] method will not be invoked |
9 // directly. Instead, a closure that will invoke [main], and its arguments | 9 // directly. Instead, a closure that will invoke [main], and its arguments |
10 // [args] is passed to [dartMainRunner]. | 10 // [args] is passed to [dartMainRunner]. |
11 // | 11 // |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 if (true === proto) | 555 if (true === proto) |
556 return object; | 556 return object; |
557 objectProto = Object.getPrototypeOf(object); | 557 objectProto = Object.getPrototypeOf(object); |
558 if (proto === objectProto) | 558 if (proto === objectProto) |
559 return record.i; | 559 return record.i; |
560 if (record.e === objectProto) | 560 if (record.e === objectProto) |
561 throw H.wrapException(new P.UnimplementedError("Return interceptor for
" + H.S(proto(object, record)))); | 561 throw H.wrapException(new P.UnimplementedError("Return interceptor for
" + H.S(proto(object, record)))); |
562 } | 562 } |
563 interceptor = H.lookupAndCacheInterceptor(object); | 563 interceptor = H.lookupAndCacheInterceptor(object); |
564 if (interceptor == null) { | 564 if (interceptor == null) { |
| 565 if (typeof object == "function") |
| 566 return C.JavaScriptFunction_methods; |
565 proto = Object.getPrototypeOf(object); | 567 proto = Object.getPrototypeOf(object); |
566 if (proto == null || proto === Object.prototype) | 568 if (proto == null || proto === Object.prototype) |
567 return C.PlainJavaScriptObject_methods; | 569 return C.PlainJavaScriptObject_methods; |
568 else | 570 else |
569 return C.UnknownJavaScriptObject_methods; | 571 return C.UnknownJavaScriptObject_methods; |
570 } | 572 } |
571 return interceptor; | 573 return interceptor; |
572 }, | 574 }, |
573 Interceptor: { | 575 Interceptor: { |
574 "^": "Object;", | 576 "^": "Object;", |
575 $eq: function(receiver, other) { | 577 $eq: function(receiver, other) { |
576 return receiver === other; | 578 return receiver === other; |
577 }, | 579 }, |
578 get$hashCode: function(receiver) { | 580 get$hashCode: function(receiver) { |
579 return H.Primitives_objectHashCode(receiver); | 581 return H.Primitives_objectHashCode(receiver); |
580 }, | 582 }, |
581 toString$0: ["super$Interceptor$toString", function(receiver) { | 583 toString$0: ["super$Interceptor$toString", function(receiver) { |
582 return H.Primitives_objectToHumanReadableString(receiver); | 584 return H.Primitives_objectToHumanReadableString(receiver); |
583 }], | 585 }], |
584 noSuchMethod$1: ["super$Interceptor$noSuchMethod", function(receiver, invo
cation) { | 586 noSuchMethod$1: ["super$Interceptor$noSuchMethod", function(receiver, invo
cation) { |
585 throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memb
erName(), invocation.get$positionalArguments(), invocation.get$namedArguments(),
null)); | 587 throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memb
erName(), invocation.get$positionalArguments(), invocation.get$namedArguments(),
null)); |
586 }, null, "get$noSuchMethod", 2, 0, null, 16], | 588 }, null, "get$noSuchMethod", 2, 0, null, 24], |
587 "%": "MediaError|MediaKeyError|SVGAnimatedLength|SVGAnimatedLengthList|SVG
AnimatedNumber|SVGAnimatedNumberList|SVGAnimatedString" | 589 "%": "MediaError|MediaKeyError|SVGAnimatedLength|SVGAnimatedLengthList|SVG
AnimatedNumber|SVGAnimatedNumberList|SVGAnimatedString|SVGAnimatedTransformList" |
588 }, | 590 }, |
589 JSBool: { | 591 JSBool: { |
590 "^": "Interceptor;", | 592 "^": "Interceptor;", |
591 toString$0: function(receiver) { | 593 toString$0: function(receiver) { |
592 return String(receiver); | 594 return String(receiver); |
593 }, | 595 }, |
594 get$hashCode: function(receiver) { | 596 get$hashCode: function(receiver) { |
595 return receiver ? 519018 : 218159; | 597 return receiver ? 519018 : 218159; |
596 }, | 598 }, |
597 $isbool: 1 | 599 $isbool: 1 |
598 }, | 600 }, |
599 JSNull: { | 601 JSNull: { |
600 "^": "Interceptor;", | 602 "^": "Interceptor;", |
601 $eq: function(receiver, other) { | 603 $eq: function(receiver, other) { |
602 return null == other; | 604 return null == other; |
603 }, | 605 }, |
604 toString$0: function(receiver) { | 606 toString$0: function(receiver) { |
605 return "null"; | 607 return "null"; |
606 }, | 608 }, |
607 get$hashCode: function(receiver) { | 609 get$hashCode: function(receiver) { |
608 return 0; | 610 return 0; |
609 }, | 611 }, |
610 noSuchMethod$1: [function(receiver, invocation) { | 612 noSuchMethod$1: [function(receiver, invocation) { |
611 return this.super$Interceptor$noSuchMethod(receiver, invocation); | 613 return this.super$Interceptor$noSuchMethod(receiver, invocation); |
612 }, null, "get$noSuchMethod", 2, 0, null, 16] | 614 }, null, "get$noSuchMethod", 2, 0, null, 24] |
613 }, | 615 }, |
614 JavaScriptObject: { | 616 JavaScriptObject: { |
615 "^": "Interceptor;", | 617 "^": "Interceptor;", |
616 get$hashCode: function(_) { | 618 get$hashCode: function(receiver) { |
617 return 0; | 619 return 0; |
618 }, | 620 }, |
| 621 toString$0: ["super$JavaScriptObject$toString", function(receiver) { |
| 622 return String(receiver); |
| 623 }], |
619 $isJSObject: 1 | 624 $isJSObject: 1 |
620 }, | 625 }, |
621 PlainJavaScriptObject: { | 626 PlainJavaScriptObject: { |
622 "^": "JavaScriptObject;" | 627 "^": "JavaScriptObject;" |
623 }, | 628 }, |
624 UnknownJavaScriptObject: { | 629 UnknownJavaScriptObject: { |
| 630 "^": "JavaScriptObject;" |
| 631 }, |
| 632 JavaScriptFunction: { |
625 "^": "JavaScriptObject;", | 633 "^": "JavaScriptObject;", |
626 toString$0: function(receiver) { | 634 toString$0: function(receiver) { |
627 return String(receiver); | 635 var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()]; |
628 } | 636 return dartClosure == null ? this.super$JavaScriptObject$toString(receiv
er) : J.toString$0$(dartClosure); |
| 637 }, |
| 638 $isFunction: 1 |
629 }, | 639 }, |
630 JSArray: { | 640 JSArray: { |
631 "^": "Interceptor;", | 641 "^": "Interceptor;", |
632 checkMutable$1: function(receiver, reason) { | 642 checkMutable$1: function(receiver, reason) { |
633 if (!!receiver.immutable$list) | 643 if (!!receiver.immutable$list) |
634 throw H.wrapException(new P.UnsupportedError(reason)); | 644 throw H.wrapException(new P.UnsupportedError(reason)); |
635 }, | 645 }, |
636 checkGrowable$1: function(receiver, reason) { | 646 checkGrowable$1: function(receiver, reason) { |
637 if (!!receiver.fixed$length) | 647 if (!!receiver.fixed$length) |
638 throw H.wrapException(new P.UnsupportedError(reason)); | 648 throw H.wrapException(new P.UnsupportedError(reason)); |
(...skipping 20 matching lines...) Expand all Loading... |
659 P.RangeError_checkValueInInterval(index, 0, receiver.length, "index", nu
ll); | 669 P.RangeError_checkValueInInterval(index, 0, receiver.length, "index", nu
ll); |
660 insertionLength = iterable.length; | 670 insertionLength = iterable.length; |
661 this.set$length(receiver, receiver.length + insertionLength); | 671 this.set$length(receiver, receiver.length + insertionLength); |
662 end = index + insertionLength; | 672 end = index + insertionLength; |
663 this.setRange$4(receiver, end, receiver.length, receiver, index); | 673 this.setRange$4(receiver, end, receiver.length, receiver, index); |
664 this.setRange$3(receiver, index, end, iterable); | 674 this.setRange$3(receiver, index, end, iterable); |
665 }, | 675 }, |
666 removeLast$0: function(receiver) { | 676 removeLast$0: function(receiver) { |
667 this.checkGrowable$1(receiver, "removeLast"); | 677 this.checkGrowable$1(receiver, "removeLast"); |
668 if (receiver.length === 0) | 678 if (receiver.length === 0) |
669 throw H.wrapException(P.RangeError$value(-1, null, null)); | 679 throw H.wrapException(H.diagnoseIndexError(receiver, -1)); |
670 return receiver.pop(); | 680 return receiver.pop(); |
671 }, | 681 }, |
672 addAll$1: function(receiver, collection) { | 682 addAll$1: function(receiver, collection) { |
673 var t1; | 683 var t1; |
674 this.checkGrowable$1(receiver, "addAll"); | 684 this.checkGrowable$1(receiver, "addAll"); |
675 for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) | 685 for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) |
676 receiver.push(t1.get$current()); | 686 receiver.push(t1.get$current()); |
677 }, | 687 }, |
| 688 clear$0: function(receiver) { |
| 689 this.set$length(receiver, 0); |
| 690 }, |
678 forEach$1: function(receiver, f) { | 691 forEach$1: function(receiver, f) { |
679 var end, i; | 692 var end, i; |
680 end = receiver.length; | 693 end = receiver.length; |
681 for (i = 0; i < end; ++i) { | 694 for (i = 0; i < end; ++i) { |
682 f.call$1(receiver[i]); | 695 f.call$1(receiver[i]); |
683 if (receiver.length !== end) | 696 if (receiver.length !== end) |
684 throw H.wrapException(new P.ConcurrentModificationError(receiver)); | 697 throw H.wrapException(new P.ConcurrentModificationError(receiver)); |
685 } | 698 } |
686 }, | 699 }, |
687 map$1: function(receiver, f) { | 700 map$1: function(receiver, f) { |
688 return H.setRuntimeTypeInfo(new H.MappedListIterable(receiver, f), [null
, null]); | 701 return H.setRuntimeTypeInfo(new H.MappedListIterable(receiver, f), [null
, null]); |
689 }, | 702 }, |
690 join$1: function(receiver, separator) { | 703 join$1: function(receiver, separator) { |
691 var t1, list, i, t2; | 704 var t1, list, i, t2; |
692 t1 = receiver.length; | 705 t1 = receiver.length; |
693 list = Array(t1); | 706 list = new Array(t1); |
694 list.fixed$length = Array; | 707 list.fixed$length = Array; |
695 for (i = 0; i < receiver.length; ++i) { | 708 for (i = 0; i < receiver.length; ++i) { |
696 t2 = H.S(receiver[i]); | 709 t2 = H.S(receiver[i]); |
697 if (i >= t1) | 710 if (i >= t1) |
698 return H.ioore(list, i); | 711 return H.ioore(list, i); |
699 list[i] = t2; | 712 list[i] = t2; |
700 } | 713 } |
701 return list.join(separator); | 714 return list.join(separator); |
702 }, | 715 }, |
703 join$0: function($receiver) { | 716 join$0: function($receiver) { |
704 return this.join$1($receiver, ""); | 717 return this.join$1($receiver, ""); |
705 }, | 718 }, |
706 skip$1: function(receiver, n) { | |
707 return H.SubListIterable$(receiver, n, null, H.getTypeArgumentByIndex(re
ceiver, 0)); | |
708 }, | |
709 fold$2: function(receiver, initialValue, combine) { | 719 fold$2: function(receiver, initialValue, combine) { |
710 var $length, value, i; | 720 var $length, value, i; |
711 $length = receiver.length; | 721 $length = receiver.length; |
712 for (value = initialValue, i = 0; i < $length; ++i) { | 722 for (value = initialValue, i = 0; i < $length; ++i) { |
713 value = combine.call$2(value, receiver[i]); | 723 value = combine.call$2(value, receiver[i]); |
714 if (receiver.length !== $length) | 724 if (receiver.length !== $length) |
715 throw H.wrapException(new P.ConcurrentModificationError(receiver)); | 725 throw H.wrapException(new P.ConcurrentModificationError(receiver)); |
716 } | 726 } |
717 return value; | 727 return value; |
718 }, | 728 }, |
719 elementAt$1: function(receiver, index) { | 729 elementAt$1: function(receiver, index) { |
720 if (index >>> 0 !== index || index >= receiver.length) | 730 if (index >>> 0 !== index || index >= receiver.length) |
721 return H.ioore(receiver, index); | 731 return H.ioore(receiver, index); |
722 return receiver[index]; | 732 return receiver[index]; |
723 }, | 733 }, |
724 sublist$2: function(receiver, start, end) { | 734 sublist$2: function(receiver, start, end) { |
725 if (start < 0 || start > receiver.length) | 735 if (start < 0 || start > receiver.length) |
726 throw H.wrapException(P.RangeError$range(start, 0, receiver.length, nu
ll, null)); | 736 throw H.wrapException(P.RangeError$range(start, 0, receiver.length, "s
tart", null)); |
727 if (end == null) | 737 if (end == null) |
728 end = receiver.length; | 738 end = receiver.length; |
729 else { | 739 else { |
730 if (typeof end !== "number" || Math.floor(end) !== end) | 740 if (typeof end !== "number" || Math.floor(end) !== end) |
731 throw H.wrapException(H.argumentErrorValue(end)); | 741 throw H.wrapException(H.argumentErrorValue(end)); |
732 if (end < start || end > receiver.length) | 742 if (end < start || end > receiver.length) |
733 throw H.wrapException(P.RangeError$range(end, start, receiver.length
, null, null)); | 743 throw H.wrapException(P.RangeError$range(end, start, receiver.length
, "end", null)); |
734 } | 744 } |
735 if (start === end) | 745 if (start === end) |
736 return H.setRuntimeTypeInfo([], [H.getTypeArgumentByIndex(receiver, 0)
]); | 746 return H.setRuntimeTypeInfo([], [H.getTypeArgumentByIndex(receiver, 0)
]); |
737 return H.setRuntimeTypeInfo(receiver.slice(start, end), [H.getTypeArgume
ntByIndex(receiver, 0)]); | 747 return H.setRuntimeTypeInfo(receiver.slice(start, end), [H.getTypeArgume
ntByIndex(receiver, 0)]); |
738 }, | 748 }, |
739 get$first: function(receiver) { | 749 get$first: function(receiver) { |
740 if (receiver.length > 0) | 750 if (receiver.length > 0) |
741 return receiver[0]; | 751 return receiver[0]; |
742 throw H.wrapException(H.IterableElementError_noElement()); | 752 throw H.wrapException(H.IterableElementError_noElement()); |
743 }, | 753 }, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 get$isEmpty: function(receiver) { | 838 get$isEmpty: function(receiver) { |
829 return receiver.length === 0; | 839 return receiver.length === 0; |
830 }, | 840 }, |
831 get$isNotEmpty: function(receiver) { | 841 get$isNotEmpty: function(receiver) { |
832 return receiver.length !== 0; | 842 return receiver.length !== 0; |
833 }, | 843 }, |
834 toString$0: function(receiver) { | 844 toString$0: function(receiver) { |
835 return P.IterableBase_iterableToFullString(receiver, "[", "]"); | 845 return P.IterableBase_iterableToFullString(receiver, "[", "]"); |
836 }, | 846 }, |
837 toList$1$growable: function(receiver, growable) { | 847 toList$1$growable: function(receiver, growable) { |
838 var t1; | 848 return H.setRuntimeTypeInfo(receiver.slice(), [H.getTypeArgumentByIndex(
receiver, 0)]); |
839 if (growable) | |
840 t1 = H.setRuntimeTypeInfo(receiver.slice(), [H.getTypeArgumentByIndex(
receiver, 0)]); | |
841 else { | |
842 t1 = H.setRuntimeTypeInfo(receiver.slice(), [H.getTypeArgumentByIndex(
receiver, 0)]); | |
843 t1.fixed$length = Array; | |
844 t1 = t1; | |
845 } | |
846 return t1; | |
847 }, | 849 }, |
848 toList$0: function($receiver) { | 850 toList$0: function($receiver) { |
849 return this.toList$1$growable($receiver, true); | 851 return this.toList$1$growable($receiver, true); |
850 }, | 852 }, |
851 get$iterator: function(receiver) { | 853 get$iterator: function(receiver) { |
852 return new J.ArrayIterator(receiver, receiver.length, 0, null); | 854 return new J.ArrayIterator(receiver, receiver.length, 0, null); |
853 }, | 855 }, |
854 get$hashCode: function(receiver) { | 856 get$hashCode: function(receiver) { |
855 return H.Primitives_objectHashCode(receiver); | 857 return H.Primitives_objectHashCode(receiver); |
856 }, | 858 }, |
857 get$length: function(receiver) { | 859 get$length: function(receiver) { |
858 return receiver.length; | 860 return receiver.length; |
859 }, | 861 }, |
860 set$length: function(receiver, newLength) { | 862 set$length: function(receiver, newLength) { |
861 this.checkGrowable$1(receiver, "set length"); | 863 this.checkGrowable$1(receiver, "set length"); |
| 864 if (typeof newLength !== "number" || Math.floor(newLength) !== newLength
) |
| 865 throw H.wrapException(P.ArgumentError$value(newLength, "newLength", nu
ll)); |
862 if (newLength < 0) | 866 if (newLength < 0) |
863 throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLengt
h", null)); | 867 throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLengt
h", null)); |
864 receiver.length = newLength; | 868 receiver.length = newLength; |
865 }, | 869 }, |
866 $index: function(receiver, index) { | 870 $index: function(receiver, index) { |
867 if (typeof index !== "number" || Math.floor(index) !== index) | 871 if (typeof index !== "number" || Math.floor(index) !== index) |
868 throw H.wrapException(H.diagnoseIndexError(receiver, index)); | 872 throw H.wrapException(H.diagnoseIndexError(receiver, index)); |
869 if (index >= receiver.length || index < 0) | 873 if (index >= receiver.length || index < 0) |
870 throw H.wrapException(H.diagnoseIndexError(receiver, index)); | 874 throw H.wrapException(H.diagnoseIndexError(receiver, index)); |
871 return receiver[index]; | 875 return receiver[index]; |
872 }, | 876 }, |
873 $indexSet: function(receiver, index, value) { | 877 $indexSet: function(receiver, index, value) { |
874 if (!!receiver.immutable$list) | 878 if (!!receiver.immutable$list) |
875 H.throwExpression(new P.UnsupportedError("indexed set")); | 879 H.throwExpression(new P.UnsupportedError("indexed set")); |
876 if (typeof index !== "number" || Math.floor(index) !== index) | 880 if (typeof index !== "number" || Math.floor(index) !== index) |
877 throw H.wrapException(H.diagnoseIndexError(receiver, index)); | 881 throw H.wrapException(H.diagnoseIndexError(receiver, index)); |
878 if (index >= receiver.length || index < 0) | 882 if (index >= receiver.length || index < 0) |
879 throw H.wrapException(H.diagnoseIndexError(receiver, index)); | 883 throw H.wrapException(H.diagnoseIndexError(receiver, index)); |
880 receiver[index] = value; | 884 receiver[index] = value; |
881 }, | 885 }, |
882 $isJSIndexable: 1, | 886 $isJSIndexable: 1, |
883 $isList: 1, | 887 $isList: 1, |
884 $asList: null, | 888 $asList: null, |
885 $isEfficientLength: 1, | 889 $isEfficientLength: 1, |
886 static: {JSArray_JSArray$fixed: function($length, $E) { | 890 static: {JSArray_JSArray$fixed: function($length, $E) { |
887 var t1; | 891 var t1; |
888 if (typeof $length !== "number" || Math.floor($length) !== $length ||
$length < 0) | 892 if (typeof $length !== "number" || Math.floor($length) !== $length) |
889 throw H.wrapException(P.ArgumentError$("Length must be a non-negativ
e integer: " + H.S($length))); | 893 throw H.wrapException(P.ArgumentError$value($length, "length", "is n
ot an integer")); |
| 894 if ($length < 0 || $length > 4294967295) |
| 895 throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "le
ngth", null)); |
890 t1 = H.setRuntimeTypeInfo(new Array($length), [$E]); | 896 t1 = H.setRuntimeTypeInfo(new Array($length), [$E]); |
891 t1.fixed$length = Array; | 897 t1.fixed$length = Array; |
892 return t1; | 898 return t1; |
| 899 }, JSArray_markUnmodifiableList: function(list) { |
| 900 list.fixed$length = Array; |
| 901 list.immutable$list = Array; |
| 902 return list; |
893 }} | 903 }} |
894 }, | 904 }, |
895 JSUnmodifiableArray: { | 905 JSUnmodifiableArray: { |
896 "^": "JSArray;" | 906 "^": "JSArray;" |
897 }, | 907 }, |
898 ArrayIterator: { | 908 ArrayIterator: { |
899 "^": "Object;__interceptors$_iterable,__interceptors$_length,__interceptor
s$_index,__interceptors$_current", | 909 "^": "Object;_iterable,__interceptors$_length,_index,__interceptors$_curre
nt", |
900 get$current: function() { | 910 get$current: function() { |
901 return this.__interceptors$_current; | 911 return this.__interceptors$_current; |
902 }, | 912 }, |
903 moveNext$0: function() { | 913 moveNext$0: function() { |
904 var t1, $length, t2; | 914 var t1, $length, t2; |
905 t1 = this.__interceptors$_iterable; | 915 t1 = this._iterable; |
906 $length = t1.length; | 916 $length = t1.length; |
907 if (this.__interceptors$_length !== $length) | 917 if (this.__interceptors$_length !== $length) |
908 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 918 throw H.wrapException(H.throwConcurrentModificationError(t1)); |
909 t2 = this.__interceptors$_index; | 919 t2 = this._index; |
910 if (t2 >= $length) { | 920 if (t2 >= $length) { |
911 this.__interceptors$_current = null; | 921 this.__interceptors$_current = null; |
912 return false; | 922 return false; |
913 } | 923 } |
914 this.__interceptors$_current = t1[t2]; | 924 this.__interceptors$_current = t1[t2]; |
915 this.__interceptors$_index = t2 + 1; | 925 this._index = t2 + 1; |
916 return true; | 926 return true; |
917 } | 927 } |
918 }, | 928 }, |
919 JSNumber: { | 929 JSNumber: { |
920 "^": "Interceptor;", | 930 "^": "Interceptor;", |
921 get$isNegative: function(receiver) { | 931 get$isNegative: function(receiver) { |
922 return receiver === 0 ? 1 / receiver < 0 : receiver < 0; | 932 return receiver === 0 ? 1 / receiver < 0 : receiver < 0; |
923 }, | 933 }, |
924 get$isNaN: function(receiver) { | |
925 return isNaN(receiver); | |
926 }, | |
927 get$isFinite: function(receiver) { | |
928 return isFinite(receiver); | |
929 }, | |
930 remainder$1: function(receiver, b) { | 934 remainder$1: function(receiver, b) { |
931 return receiver % b; | 935 return receiver % b; |
932 }, | 936 }, |
933 toInt$0: function(receiver) { | 937 toInt$0: function(receiver) { |
934 var t1; | 938 var t1; |
935 if (receiver >= -2147483648 && receiver <= 2147483647) | 939 if (receiver >= -2147483648 && receiver <= 2147483647) |
936 return receiver | 0; | 940 return receiver | 0; |
937 if (isFinite(receiver)) { | 941 if (isFinite(receiver)) { |
938 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | 942 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); |
939 return t1 + 0; | 943 return t1 + 0; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 $lt: function(receiver, other) { | 1054 $lt: function(receiver, other) { |
1051 if (typeof other !== "number") | 1055 if (typeof other !== "number") |
1052 throw H.wrapException(H.argumentErrorValue(other)); | 1056 throw H.wrapException(H.argumentErrorValue(other)); |
1053 return receiver < other; | 1057 return receiver < other; |
1054 }, | 1058 }, |
1055 $gt: function(receiver, other) { | 1059 $gt: function(receiver, other) { |
1056 if (typeof other !== "number") | 1060 if (typeof other !== "number") |
1057 throw H.wrapException(H.argumentErrorValue(other)); | 1061 throw H.wrapException(H.argumentErrorValue(other)); |
1058 return receiver > other; | 1062 return receiver > other; |
1059 }, | 1063 }, |
| 1064 $le: function(receiver, other) { |
| 1065 if (typeof other !== "number") |
| 1066 throw H.wrapException(H.argumentErrorValue(other)); |
| 1067 return receiver <= other; |
| 1068 }, |
1060 $ge: function(receiver, other) { | 1069 $ge: function(receiver, other) { |
1061 if (typeof other !== "number") | 1070 if (typeof other !== "number") |
1062 throw H.wrapException(H.argumentErrorValue(other)); | 1071 throw H.wrapException(H.argumentErrorValue(other)); |
1063 return receiver >= other; | 1072 return receiver >= other; |
1064 }, | 1073 }, |
1065 $isnum: 1 | 1074 $isnum: 1 |
1066 }, | 1075 }, |
1067 JSInt: { | 1076 JSInt: { |
1068 "^": "JSNumber;", | 1077 "^": "JSNumber;", |
1069 $is$double: 1, | 1078 $is$double: 1, |
(...skipping 19 matching lines...) Expand all Loading... |
1089 allMatches$2: function(receiver, string, start) { | 1098 allMatches$2: function(receiver, string, start) { |
1090 var t1; | 1099 var t1; |
1091 H.checkString(string); | 1100 H.checkString(string); |
1092 H.checkInt(start); | 1101 H.checkInt(start); |
1093 t1 = J.get$length$asx(string); | 1102 t1 = J.get$length$asx(string); |
1094 if (typeof t1 !== "number") | 1103 if (typeof t1 !== "number") |
1095 return H.iae(t1); | 1104 return H.iae(t1); |
1096 t1 = start > t1; | 1105 t1 = start > t1; |
1097 if (t1) | 1106 if (t1) |
1098 throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(st
ring), null, null)); | 1107 throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(st
ring), null, null)); |
1099 return H.allMatchesInStringUnchecked(receiver, string, start); | 1108 return new H._StringAllMatchesIterable(string, receiver, start); |
1100 }, | 1109 }, |
1101 allMatches$1: function($receiver, string) { | 1110 allMatches$1: function($receiver, string) { |
1102 return this.allMatches$2($receiver, string, 0); | 1111 return this.allMatches$2($receiver, string, 0); |
1103 }, | 1112 }, |
1104 matchAsPrefix$2: function(receiver, string, start) { | 1113 matchAsPrefix$2: function(receiver, string, start) { |
1105 var t1, t2, i; | 1114 var t1, t2, i; |
1106 t1 = J.getInterceptor$n(start); | 1115 t1 = J.getInterceptor$n(start); |
1107 if (t1.$lt(start, 0) || t1.$gt(start, string.length)) | 1116 if (t1.$lt(start, 0) || t1.$gt(start, string.length)) |
1108 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); | 1117 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); |
1109 t2 = receiver.length; | 1118 t2 = receiver.length; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 for (s = receiver, result = ""; true;) { | 1231 for (s = receiver, result = ""; true;) { |
1223 if ((times & 1) === 1) | 1232 if ((times & 1) === 1) |
1224 result = s + result; | 1233 result = s + result; |
1225 times = times >>> 1; | 1234 times = times >>> 1; |
1226 if (times === 0) | 1235 if (times === 0) |
1227 break; | 1236 break; |
1228 s += s; | 1237 s += s; |
1229 } | 1238 } |
1230 return result; | 1239 return result; |
1231 }, | 1240 }, |
1232 get$codeUnits: function(receiver) { | |
1233 return new H.CodeUnits(receiver); | |
1234 }, | |
1235 indexOf$2: function(receiver, pattern, start) { | 1241 indexOf$2: function(receiver, pattern, start) { |
1236 if (typeof start !== "number" || Math.floor(start) !== start) | 1242 if (typeof start !== "number" || Math.floor(start) !== start) |
1237 throw H.wrapException(H.argumentErrorValue(start)); | 1243 throw H.wrapException(H.argumentErrorValue(start)); |
1238 if (start < 0 || start > receiver.length) | 1244 if (start < 0 || start > receiver.length) |
1239 throw H.wrapException(P.RangeError$range(start, 0, receiver.length, nu
ll, null)); | 1245 throw H.wrapException(P.RangeError$range(start, 0, receiver.length, nu
ll, null)); |
1240 return receiver.indexOf(pattern, start); | 1246 return receiver.indexOf(pattern, start); |
1241 }, | 1247 }, |
1242 indexOf$1: function($receiver, pattern) { | 1248 indexOf$1: function($receiver, pattern) { |
1243 return this.indexOf$2($receiver, pattern, 0); | 1249 return this.indexOf$2($receiver, pattern, 0); |
1244 }, | 1250 }, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 }} | 1367 }} |
1362 } | 1368 } |
1363 }], ["_isolate_helper", "dart:_isolate_helper",, H, { | 1369 }], ["_isolate_helper", "dart:_isolate_helper",, H, { |
1364 "^": "", | 1370 "^": "", |
1365 _callInIsolate: function(isolate, $function) { | 1371 _callInIsolate: function(isolate, $function) { |
1366 var result = isolate.eval$1($function); | 1372 var result = isolate.eval$1($function); |
1367 if (!init.globalState.currentContext._isExecutingEvent) | 1373 if (!init.globalState.currentContext._isExecutingEvent) |
1368 init.globalState.topEventLoop.run$0(); | 1374 init.globalState.topEventLoop.run$0(); |
1369 return result; | 1375 return result; |
1370 }, | 1376 }, |
1371 leaveJsAsync: function() { | |
1372 --init.globalState.topEventLoop._activeJsAsyncCount; | |
1373 }, | |
1374 startRootIsolate: function(entry, args) { | 1377 startRootIsolate: function(entry, args) { |
1375 var t1, t2, t3, t4, t5, rootContext; | 1378 var t1, t2, t3, t4, t5, rootContext; |
1376 t1 = {}; | 1379 t1 = {}; |
1377 t1._captured_args_0 = args; | 1380 t1.args = args; |
1378 args = args; | |
1379 t1._captured_args_0 = args; | |
1380 if (args == null) { | 1381 if (args == null) { |
1381 args = []; | 1382 args = []; |
1382 t1._captured_args_0 = args; | 1383 t1.args = args; |
1383 t2 = args; | 1384 t2 = args; |
1384 } else | 1385 } else |
1385 t2 = args; | 1386 t2 = args; |
1386 if (!J.getInterceptor(t2).$isList) | 1387 if (!J.getInterceptor(t2).$isList) |
1387 throw H.wrapException(P.ArgumentError$("Arguments to main must be a List
: " + H.S(t2))); | 1388 throw H.wrapException(P.ArgumentError$("Arguments to main must be a List
: " + H.S(t2))); |
1388 t2 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, nul
l, null, entry); | 1389 init.globalState = new H._Manager(0, 0, 1, null, null, null, null, null, n
ull, null, null, null, entry); |
1389 t2._nativeDetectEnvironment$0(); | 1390 t2 = init.globalState; |
| 1391 t3 = self.window == null; |
| 1392 t4 = self.Worker; |
| 1393 t5 = t3 && !!self.postMessage; |
| 1394 t2.isWorker = t5; |
| 1395 t5 = !t5; |
| 1396 if (t5) |
| 1397 t4 = t4 != null && $.$get$IsolateNatives_thisScript() != null; |
| 1398 else |
| 1399 t4 = true; |
| 1400 t2.supportsWorkers = t4; |
| 1401 t2.fromCommandLine = t3 && t5; |
1390 t2.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0)
; | 1402 t2.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0)
; |
1391 t2.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, H._I
solateContext); | 1403 t2.isolates = H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, nu
ll, null, null, 0), [P.$int, H._IsolateContext]); |
1392 t2.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, null
); | 1404 t2.managers = H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, nu
ll, null, null, 0), [P.$int, null]); |
1393 if (t2.isWorker === true) { | 1405 if (t2.isWorker === true) { |
1394 t2.mainManager = new H._MainManagerStub(); | 1406 t3 = new H._MainManagerStub(); |
1395 t2._nativeInitWorkerMessageHandler$0(); | 1407 t2.mainManager = t3; |
| 1408 self.onmessage = function(f, a) { |
| 1409 return function(e) { |
| 1410 f(a, e); |
| 1411 }; |
| 1412 }(H.IsolateNatives__processWorkerMessage, t3); |
| 1413 self.dartPrint = self.dartPrint || function(serialize) { |
| 1414 return function(object) { |
| 1415 if (self.console && self.console.log) |
| 1416 self.console.log(object); |
| 1417 else |
| 1418 self.postMessage(serialize(object)); |
| 1419 }; |
| 1420 }(H._Manager__serializePrintMessage); |
1396 } | 1421 } |
1397 init.globalState = t2; | |
1398 if (init.globalState.isWorker === true) | 1422 if (init.globalState.isWorker === true) |
1399 return; | 1423 return; |
1400 t2 = init.globalState.nextIsolateId++; | 1424 t2 = init.globalState.nextIsolateId++; |
1401 t3 = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, H.RawReceiveP
ortImpl); | 1425 t3 = H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, null,
null, 0), [P.$int, H.RawReceivePortImpl]); |
1402 t4 = P.LinkedHashSet_LinkedHashSet(null, null, null, P.$int); | 1426 t4 = P.LinkedHashSet_LinkedHashSet(null, null, null, P.$int); |
1403 t5 = new H.RawReceivePortImpl(0, null, false); | 1427 t5 = new H.RawReceivePortImpl(0, null, false); |
1404 rootContext = new H._IsolateContext(t2, t3, t4, init.createNewIsolate(), t
5, new H.CapabilityImpl(H.random64()), new H.CapabilityImpl(H.random64()), false
, false, [], P.LinkedHashSet_LinkedHashSet(null, null, null, null), null, null,
false, true, P.LinkedHashSet_LinkedHashSet(null, null, null, null)); | 1428 rootContext = new H._IsolateContext(t2, t3, t4, init.createNewIsolate(), t
5, new H.CapabilityImpl(H.random64()), new H.CapabilityImpl(H.random64()), false
, false, [], P.LinkedHashSet_LinkedHashSet(null, null, null, null), null, null,
false, true, P.LinkedHashSet_LinkedHashSet(null, null, null, null)); |
1405 t4.add$1(0, 0); | 1429 t4.add$1(0, 0); |
1406 rootContext._addRegistration$2(0, t5); | 1430 rootContext._addRegistration$2(0, t5); |
1407 init.globalState.rootContext = rootContext; | 1431 init.globalState.rootContext = rootContext; |
1408 init.globalState.currentContext = rootContext; | 1432 init.globalState.currentContext = rootContext; |
1409 t2 = H.getDynamicRuntimeType(); | 1433 t2 = H.getDynamicRuntimeType(); |
1410 t3 = H.buildFunctionType(t2, [t2])._isTest$1(entry); | 1434 t3 = H.buildFunctionType(t2, [t2])._isTest$1(entry); |
1411 if (t3) | 1435 if (t3) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 throw H.wrapException(new P.UnsupportedError("Cannot extract URI from \""
+ H.S(stack) + "\"")); | 1474 throw H.wrapException(new P.UnsupportedError("Cannot extract URI from \""
+ H.S(stack) + "\"")); |
1451 }, | 1475 }, |
1452 IsolateNatives__processWorkerMessage: [function(sender, e) { | 1476 IsolateNatives__processWorkerMessage: [function(sender, e) { |
1453 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, startPau
sed, replyTo, t2, t3, t4, context; | 1477 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, startPau
sed, replyTo, t2, t3, t4, context; |
1454 msg = new H._Deserializer(true, []).deserialize$1(e.data); | 1478 msg = new H._Deserializer(true, []).deserialize$1(e.data); |
1455 t1 = J.getInterceptor$asx(msg); | 1479 t1 = J.getInterceptor$asx(msg); |
1456 switch (t1.$index(msg, "command")) { | 1480 switch (t1.$index(msg, "command")) { |
1457 case "start": | 1481 case "start": |
1458 init.globalState.currentManagerId = t1.$index(msg, "id"); | 1482 init.globalState.currentManagerId = t1.$index(msg, "id"); |
1459 functionName = t1.$index(msg, "functionName"); | 1483 functionName = t1.$index(msg, "functionName"); |
1460 entryPoint = functionName == null ? init.globalState.entry : H.Isolate
Natives__getJSFunctionFromName(functionName); | 1484 entryPoint = functionName == null ? init.globalState.entry : init.glob
alFunctions[functionName](); |
1461 args = t1.$index(msg, "args"); | 1485 args = t1.$index(msg, "args"); |
1462 message = new H._Deserializer(true, []).deserialize$1(t1.$index(msg, "
msg")); | 1486 message = new H._Deserializer(true, []).deserialize$1(t1.$index(msg, "
msg")); |
1463 isSpawnUri = t1.$index(msg, "isSpawnUri"); | 1487 isSpawnUri = t1.$index(msg, "isSpawnUri"); |
1464 startPaused = t1.$index(msg, "startPaused"); | 1488 startPaused = t1.$index(msg, "startPaused"); |
1465 replyTo = new H._Deserializer(true, []).deserialize$1(t1.$index(msg, "
replyTo")); | 1489 replyTo = new H._Deserializer(true, []).deserialize$1(t1.$index(msg, "
replyTo")); |
1466 t1 = init.globalState.nextIsolateId++; | 1490 t1 = init.globalState.nextIsolateId++; |
1467 t2 = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, H.RawRece
ivePortImpl); | 1491 t2 = H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, n
ull, null, 0), [P.$int, H.RawReceivePortImpl]); |
1468 t3 = P.LinkedHashSet_LinkedHashSet(null, null, null, P.$int); | 1492 t3 = P.LinkedHashSet_LinkedHashSet(null, null, null, P.$int); |
1469 t4 = new H.RawReceivePortImpl(0, null, false); | 1493 t4 = new H.RawReceivePortImpl(0, null, false); |
1470 context = new H._IsolateContext(t1, t2, t3, init.createNewIsolate(), t
4, new H.CapabilityImpl(H.random64()), new H.CapabilityImpl(H.random64()), false
, false, [], P.LinkedHashSet_LinkedHashSet(null, null, null, null), null, null,
false, true, P.LinkedHashSet_LinkedHashSet(null, null, null, null)); | 1494 context = new H._IsolateContext(t1, t2, t3, init.createNewIsolate(), t
4, new H.CapabilityImpl(H.random64()), new H.CapabilityImpl(H.random64()), false
, false, [], P.LinkedHashSet_LinkedHashSet(null, null, null, null), null, null,
false, true, P.LinkedHashSet_LinkedHashSet(null, null, null, null)); |
1471 t3.add$1(0, 0); | 1495 t3.add$1(0, 0); |
1472 context._addRegistration$2(0, t4); | 1496 context._addRegistration$2(0, t4); |
1473 init.globalState.topEventLoop.events._add$1(new H._IsolateEvent(contex
t, new H.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message,
isSpawnUri, startPaused, replyTo), "worker-start")); | 1497 init.globalState.topEventLoop.events._add$1(new H._IsolateEvent(contex
t, new H.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message,
isSpawnUri, startPaused, replyTo), "worker-start")); |
1474 init.globalState.currentContext = context; | 1498 init.globalState.currentContext = context; |
1475 init.globalState.topEventLoop.run$0(); | 1499 init.globalState.topEventLoop.run$0(); |
1476 break; | 1500 break; |
1477 case "spawn-worker": | 1501 case "spawn-worker": |
1478 break; | 1502 break; |
1479 case "message": | 1503 case "message": |
1480 if (t1.$index(msg, "port") != null) | 1504 if (t1.$index(msg, "port") != null) |
1481 J.send$1$x(t1.$index(msg, "port"), t1.$index(msg, "msg")); | 1505 J.send$1$x(t1.$index(msg, "port"), t1.$index(msg, "msg")); |
1482 init.globalState.topEventLoop.run$0(); | 1506 init.globalState.topEventLoop.run$0(); |
1483 break; | 1507 break; |
1484 case "close": | 1508 case "close": |
1485 init.globalState.managers.remove$1(0, $.$get$IsolateNatives_workerIds(
).$index(0, sender)); | 1509 init.globalState.managers.remove$1(0, $.$get$IsolateNatives_workerIds(
).$index(0, sender)); |
1486 sender.terminate(); | 1510 sender.terminate(); |
1487 init.globalState.topEventLoop.run$0(); | 1511 init.globalState.topEventLoop.run$0(); |
1488 break; | 1512 break; |
1489 case "log": | 1513 case "log": |
1490 H.IsolateNatives__log(t1.$index(msg, "msg")); | 1514 H.IsolateNatives__log(t1.$index(msg, "msg")); |
1491 break; | 1515 break; |
1492 case "print": | 1516 case "print": |
1493 if (init.globalState.isWorker === true) { | 1517 if (init.globalState.isWorker === true) { |
1494 t1 = init.globalState.mainManager; | 1518 t1 = init.globalState.mainManager; |
1495 t2 = P.LinkedHashMap__makeLiteral(["command", "print", "msg", msg]); | 1519 t2 = P.LinkedHashMap__makeLiteral(["command", "print", "msg", msg]); |
1496 t2 = new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$identity(
null, P.$int)).serialize$1(t2); | 1520 t2 = new H._Serializer(true, P._LinkedIdentityHashMap__LinkedIdentit
yHashMap$es6(null, P.$int)).serialize$1(t2); |
1497 t1.toString; | 1521 t1.toString; |
1498 self.postMessage(t2); | 1522 self.postMessage(t2); |
1499 } else | 1523 } else |
1500 P.print(t1.$index(msg, "msg")); | 1524 P.print(t1.$index(msg, "msg")); |
1501 break; | 1525 break; |
1502 case "error": | 1526 case "error": |
1503 throw H.wrapException(t1.$index(msg, "msg")); | 1527 throw H.wrapException(t1.$index(msg, "msg")); |
1504 } | 1528 } |
1505 }, null, null, 4, 0, null, 29, 23], | 1529 }, null, null, 4, 0, null, 32, 33], |
1506 IsolateNatives__log: function(msg) { | 1530 IsolateNatives__log: function(msg) { |
1507 var trace, t1, t2, exception; | 1531 var trace, t1, t2, exception; |
1508 if (init.globalState.isWorker === true) { | 1532 if (init.globalState.isWorker === true) { |
1509 t1 = init.globalState.mainManager; | 1533 t1 = init.globalState.mainManager; |
1510 t2 = P.LinkedHashMap__makeLiteral(["command", "log", "msg", msg]); | 1534 t2 = P.LinkedHashMap__makeLiteral(["command", "log", "msg", msg]); |
1511 t2 = new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$identity(null
, P.$int)).serialize$1(t2); | 1535 t2 = new H._Serializer(true, P._LinkedIdentityHashMap__LinkedIdentityHas
hMap$es6(null, P.$int)).serialize$1(t2); |
1512 t1.toString; | 1536 t1.toString; |
1513 self.postMessage(t2); | 1537 self.postMessage(t2); |
1514 } else | 1538 } else |
1515 try { | 1539 try { |
1516 self.console.log(msg); | 1540 self.console.log(msg); |
1517 } catch (exception) { | 1541 } catch (exception) { |
1518 H.unwrapException(exception); | 1542 H.unwrapException(exception); |
1519 trace = H.getTraceFromException(exception); | 1543 trace = H.getTraceFromException(exception); |
1520 throw H.wrapException(P.Exception_Exception(trace)); | 1544 throw H.wrapException(P.Exception_Exception(trace)); |
1521 } | 1545 } |
1522 }, | 1546 }, |
1523 IsolateNatives__getJSFunctionFromName: function(functionName) { | |
1524 return init.globalFunctions[functionName](); | |
1525 }, | |
1526 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri,
startPaused, replyTo) { | 1547 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri,
startPaused, replyTo) { |
1527 var context, t1, t2, t3; | 1548 var context, t1, t2, t3; |
1528 context = init.globalState.currentContext; | 1549 context = init.globalState.currentContext; |
1529 t1 = context.id; | 1550 t1 = context.id; |
1530 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheNam
e + ("_" + t1); | 1551 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheNam
e + ("_" + t1); |
1531 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName +
("_" + t1); | 1552 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName +
("_" + t1); |
1532 t1 = context.controlPort; | 1553 t1 = context.controlPort; |
1533 t2 = init.globalState.currentContext.id; | 1554 t2 = init.globalState.currentContext.id; |
1534 t3 = context.pauseCapability; | 1555 t3 = context.pauseCapability; |
1535 J.send$1$x(replyTo, ["spawned", new H._NativeJsSendPort(t1, t2), t3, conte
xt.terminateCapability]); | 1556 J.send$1$x(replyTo, ["spawned", new H._NativeJsSendPort(t1, t2), t3, conte
xt.terminateCapability]); |
1536 t2 = new H.IsolateNatives__startIsolate_runStartFunction(topLevel, args, m
essage, isSpawnUri, context); | 1557 t2 = new H.IsolateNatives__startIsolate_runStartFunction(topLevel, args, m
essage, isSpawnUri, context); |
1537 if (startPaused === true) { | 1558 if (startPaused === true) { |
1538 context.addPause$2(t3, t3); | 1559 context.addPause$2(t3, t3); |
1539 init.globalState.topEventLoop.events._add$1(new H._IsolateEvent(context,
t2, "start isolate")); | 1560 init.globalState.topEventLoop.events._add$1(new H._IsolateEvent(context,
t2, "start isolate")); |
1540 } else | 1561 } else |
1541 t2.call$0(); | 1562 t2.call$0(); |
1542 }, | 1563 }, |
1543 _clone: function(message) { | 1564 _clone: function(message) { |
1544 return new H._Deserializer(true, []).deserialize$1(new H._Serializer(false
, P.LinkedHashMap_LinkedHashMap$identity(null, P.$int)).serialize$1(message)); | 1565 return new H._Deserializer(true, []).deserialize$1(new H._Serializer(false
, P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(null, P.$int)).serialize$1
(message)); |
1545 }, | 1566 }, |
1546 startRootIsolate_closure: { | 1567 startRootIsolate_closure: { |
1547 "^": "Closure:1;__isolate_helper$_box_0,_captured_entry_1", | 1568 "^": "Closure:1;_box_0,entry", |
1548 call$0: function() { | 1569 call$0: function() { |
1549 this._captured_entry_1.call$1(this.__isolate_helper$_box_0._captured_arg
s_0); | 1570 this.entry.call$1(this._box_0.args); |
1550 } | 1571 } |
1551 }, | 1572 }, |
1552 startRootIsolate_closure0: { | 1573 startRootIsolate_closure0: { |
1553 "^": "Closure:1;__isolate_helper$_box_0,_captured_entry_2", | 1574 "^": "Closure:1;_box_0,entry", |
1554 call$0: function() { | 1575 call$0: function() { |
1555 this._captured_entry_2.call$2(this.__isolate_helper$_box_0._captured_arg
s_0, null); | 1576 this.entry.call$2(this._box_0.args, null); |
1556 } | 1577 } |
1557 }, | 1578 }, |
1558 _Manager: { | 1579 _Manager: { |
1559 "^": "Object;nextIsolateId,currentManagerId,nextManagerId,currentContext,r
ootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,mainMa
nager,managers,entry", | 1580 "^": "Object;nextIsolateId,currentManagerId,nextManagerId,currentContext,r
ootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,mainMa
nager,managers,entry", |
1560 _nativeDetectEnvironment$0: function() { | |
1561 var t1, t2, t3; | |
1562 t1 = self.window == null; | |
1563 t2 = self.Worker; | |
1564 t3 = t1 && !!self.postMessage; | |
1565 this.isWorker = t3; | |
1566 if (!t3) | |
1567 t2 = t2 != null && $.$get$IsolateNatives_thisScript() != null; | |
1568 else | |
1569 t2 = true; | |
1570 this.supportsWorkers = t2; | |
1571 this.fromCommandLine = t1 && !t3; | |
1572 }, | |
1573 _nativeInitWorkerMessageHandler$0: function() { | |
1574 self.onmessage = function(f, a) { | |
1575 return function(e) { | |
1576 f(a, e); | |
1577 }; | |
1578 }(H.IsolateNatives__processWorkerMessage, this.mainManager); | |
1579 self.dartPrint = self.dartPrint || function(serialize) { | |
1580 return function(object) { | |
1581 if (self.console && self.console.log) | |
1582 self.console.log(object); | |
1583 else | |
1584 self.postMessage(serialize(object)); | |
1585 }; | |
1586 }(H._Manager__serializePrintMessage); | |
1587 }, | |
1588 static: {_Manager__serializePrintMessage: [function(object) { | 1581 static: {_Manager__serializePrintMessage: [function(object) { |
1589 var t1 = P.LinkedHashMap__makeLiteral(["command", "print", "msg", obje
ct]); | 1582 var t1 = P.LinkedHashMap__makeLiteral(["command", "print", "msg", obje
ct]); |
1590 return new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$identity(
null, P.$int)).serialize$1(t1); | 1583 return new H._Serializer(true, P._LinkedIdentityHashMap__LinkedIdentit
yHashMap$es6(null, P.$int)).serialize$1(t1); |
1591 }, null, null, 2, 0, null, 20]} | 1584 }, null, null, 2, 0, null, 19]} |
1592 }, | 1585 }, |
1593 _IsolateContext: { | 1586 _IsolateContext: { |
1594 "^": "Object;id,ports,weakPorts,isolateStatics<,controlPort<,pauseCapabili
ty,terminateCapability,initialized?,isPaused<,delayedEvents<,pauseTokens,doneHan
dlers,_scheduledControlEvents,_isExecutingEvent,errorsAreFatal,errorPorts", | 1587 "^": "Object;id,ports,weakPorts,isolateStatics<,controlPort<,pauseCapabili
ty,terminateCapability,initialized?,isPaused<,delayedEvents<,pauseTokens,doneHan
dlers,_scheduledControlEvents,_isExecutingEvent,errorsAreFatal,errorPorts", |
1595 addPause$2: function(authentification, resume) { | 1588 addPause$2: function(authentification, resume) { |
1596 if (!this.pauseCapability.$eq(0, authentification)) | 1589 if (!this.pauseCapability.$eq(0, authentification)) |
1597 return; | 1590 return; |
1598 if (this.pauseTokens.add$1(0, resume) && !this.isPaused) | 1591 if (this.pauseTokens.add$1(0, resume) && !this.isPaused) |
1599 this.isPaused = true; | 1592 this.isPaused = true; |
1600 this._updateGlobalState$0(); | 1593 this._updateGlobalState$0(); |
1601 }, | 1594 }, |
1602 removePause$1: function(resume) { | 1595 removePause$1: function(resume) { |
1603 var t1, t2, $event, t3, t4, t5; | 1596 var t1, t2, $event, t3, t4, t5; |
1604 if (!this.isPaused) | 1597 if (!this.isPaused) |
1605 return; | 1598 return; |
1606 t1 = this.pauseTokens; | 1599 t1 = this.pauseTokens; |
1607 t1.remove$1(0, resume); | 1600 t1.remove$1(0, resume); |
1608 if (t1._collection$_length === 0) { | 1601 if (t1._collection$_length === 0) { |
1609 for (t1 = this.delayedEvents; t2 = t1.length, t2 !== 0;) { | 1602 for (t1 = this.delayedEvents; t2 = t1.length, t2 !== 0;) { |
1610 if (0 >= t2) | 1603 if (0 >= t2) |
1611 return H.ioore(t1, 0); | 1604 return H.ioore(t1, -1); |
1612 $event = t1.pop(); | 1605 $event = t1.pop(); |
1613 t2 = init.globalState.topEventLoop.events; | 1606 t2 = init.globalState.topEventLoop.events; |
1614 t3 = t2._head; | 1607 t3 = t2._head; |
1615 t4 = t2._table; | 1608 t4 = t2._table; |
1616 t5 = t4.length; | 1609 t5 = t4.length; |
1617 t3 = (t3 - 1 & t5 - 1) >>> 0; | 1610 t3 = (t3 - 1 & t5 - 1) >>> 0; |
1618 t2._head = t3; | 1611 t2._head = t3; |
1619 if (t3 < 0 || t3 >= t5) | 1612 if (t3 < 0 || t3 >= t5) |
1620 return H.ioore(t4, t3); | 1613 return H.ioore(t4, t3); |
1621 t4[t3] = $event; | 1614 t4[t3] = $event; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 return; | 1702 return; |
1710 if (self.console && self.console.error) | 1703 if (self.console && self.console.error) |
1711 self.console.error(error, stackTrace); | 1704 self.console.error(error, stackTrace); |
1712 else { | 1705 else { |
1713 P.print(error); | 1706 P.print(error); |
1714 if (stackTrace != null) | 1707 if (stackTrace != null) |
1715 P.print(stackTrace); | 1708 P.print(stackTrace); |
1716 } | 1709 } |
1717 return; | 1710 return; |
1718 } | 1711 } |
1719 message = Array(2); | 1712 message = new Array(2); |
1720 message.fixed$length = Array; | 1713 message.fixed$length = Array; |
1721 message[0] = J.toString$0$(error); | 1714 message[0] = J.toString$0$(error); |
1722 message[1] = stackTrace == null ? null : J.toString$0$(stackTrace); | 1715 message[1] = stackTrace == null ? null : J.toString$0$(stackTrace); |
1723 for (t2 = new P.LinkedHashSetIterator(t1, t1._collection$_modifications,
null, null), t2._collection$_cell = t1._collection$_first; t2.moveNext$0();) | 1716 for (t2 = new P._LinkedHashSetIterator(t1, t1._collection$_modifications
, null, null), t2._collection$_cell = t1._collection$_first; t2.moveNext$0();) |
1724 J.send$1$x(t2._collection$_current, message); | 1717 J.send$1$x(t2._collection$_current, message); |
1725 }, "call$2", "get$handleUncaughtError", 4, 0, 18], | 1718 }, "call$2", "get$handleUncaughtError", 4, 0, 11], |
1726 eval$1: function(code) { | 1719 eval$1: function(code) { |
1727 var old, result, oldIsExecutingEvent, e, s, exception, t1; | 1720 var old, result, oldIsExecutingEvent, e, s, exception, t1; |
1728 old = init.globalState.currentContext; | 1721 old = init.globalState.currentContext; |
1729 init.globalState.currentContext = this; | 1722 init.globalState.currentContext = this; |
1730 $ = this.isolateStatics; | 1723 $ = this.isolateStatics; |
1731 result = null; | 1724 result = null; |
1732 oldIsExecutingEvent = this._isExecutingEvent; | 1725 oldIsExecutingEvent = this._isExecutingEvent; |
1733 this._isExecutingEvent = true; | 1726 this._isExecutingEvent = true; |
1734 try { | 1727 try { |
1735 result = code.call$0(); | 1728 result = code.call$0(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 t3 = i + 1; | 1812 t3 = i + 1; |
1820 if (t3 >= t2) | 1813 if (t3 >= t2) |
1821 return H.ioore(t1, t3); | 1814 return H.ioore(t1, t3); |
1822 J.send$1$x(responsePort, t1[t3]); | 1815 J.send$1$x(responsePort, t1[t3]); |
1823 } | 1816 } |
1824 this.doneHandlers = null; | 1817 this.doneHandlers = null; |
1825 } | 1818 } |
1826 }, "call$0", "get$kill", 0, 0, 2] | 1819 }, "call$0", "get$kill", 0, 0, 2] |
1827 }, | 1820 }, |
1828 _IsolateContext_handlePing_respond: { | 1821 _IsolateContext_handlePing_respond: { |
1829 "^": "Closure:2;_captured_responsePort_0,_captured_response_1", | 1822 "^": "Closure:2;responsePort,response", |
1830 call$0: [function() { | 1823 call$0: [function() { |
1831 J.send$1$x(this._captured_responsePort_0, this._captured_response_1); | 1824 J.send$1$x(this.responsePort, this.response); |
1832 }, null, null, 0, 0, null, "call"] | 1825 }, null, null, 0, 0, null, "call"] |
1833 }, | 1826 }, |
1834 _EventLoop: { | 1827 _EventLoop: { |
1835 "^": "Object;events,_activeJsAsyncCount", | 1828 "^": "Object;events,_activeJsAsyncCount", |
1836 dequeue$0: function() { | 1829 dequeue$0: function() { |
1837 var t1 = this.events; | 1830 var t1 = this.events; |
1838 if (t1._head === t1._tail) | 1831 if (t1._head === t1._tail) |
1839 return; | 1832 return; |
1840 return t1.removeFirst$0(); | 1833 return t1.removeFirst$0(); |
1841 }, | 1834 }, |
(...skipping 16 matching lines...) Expand all Loading... |
1858 H.throwExpression(P.Exception_Exception("Program exited with open Re
ceivePorts.")); | 1851 H.throwExpression(P.Exception_Exception("Program exited with open Re
ceivePorts.")); |
1859 t1 = init.globalState; | 1852 t1 = init.globalState; |
1860 if (t1.isWorker === true) { | 1853 if (t1.isWorker === true) { |
1861 t2 = t1.isolates; | 1854 t2 = t1.isolates; |
1862 t2 = t2.get$isEmpty(t2) && t1.topEventLoop._activeJsAsyncCount === 0
; | 1855 t2 = t2.get$isEmpty(t2) && t1.topEventLoop._activeJsAsyncCount === 0
; |
1863 } else | 1856 } else |
1864 t2 = false; | 1857 t2 = false; |
1865 if (t2) { | 1858 if (t2) { |
1866 t1 = t1.mainManager; | 1859 t1 = t1.mainManager; |
1867 t2 = P.LinkedHashMap__makeLiteral(["command", "close"]); | 1860 t2 = P.LinkedHashMap__makeLiteral(["command", "close"]); |
1868 t2 = new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$identity(
null, P.$int)).serialize$1(t2); | 1861 t2 = new H._Serializer(true, H.setRuntimeTypeInfo(new P._LinkedIdent
ityHashMap(0, null, null, null, null, null, 0), [null, P.$int])).serialize$1(t2)
; |
1869 t1.toString; | 1862 t1.toString; |
1870 self.postMessage(t2); | 1863 self.postMessage(t2); |
1871 } | 1864 } |
1872 return false; | 1865 return false; |
1873 } | 1866 } |
1874 $event.process$0(); | 1867 $event.process$0(); |
1875 return true; | 1868 return true; |
1876 }, | 1869 }, |
1877 _runHelper$0: function() { | 1870 _runHelper$0: function() { |
1878 if (self.window != null) | 1871 if (self.window != null) |
1879 new H._EventLoop__runHelper_next(this).call$0(); | 1872 new H._EventLoop__runHelper_next(this).call$0(); |
1880 else | 1873 else |
1881 for (; this.runIteration$0();) | 1874 for (; this.runIteration$0();) |
1882 ; | 1875 ; |
1883 }, | 1876 }, |
1884 run$0: [function() { | 1877 run$0: [function() { |
1885 var e, trace, exception, t1, t2; | 1878 var e, trace, exception, t1, t2; |
1886 if (init.globalState.isWorker !== true) | 1879 if (init.globalState.isWorker !== true) |
1887 this._runHelper$0(); | 1880 this._runHelper$0(); |
1888 else | 1881 else |
1889 try { | 1882 try { |
1890 this._runHelper$0(); | 1883 this._runHelper$0(); |
1891 } catch (exception) { | 1884 } catch (exception) { |
1892 t1 = H.unwrapException(exception); | 1885 t1 = H.unwrapException(exception); |
1893 e = t1; | 1886 e = t1; |
1894 trace = H.getTraceFromException(exception); | 1887 trace = H.getTraceFromException(exception); |
1895 t1 = init.globalState.mainManager; | 1888 t1 = init.globalState.mainManager; |
1896 t2 = P.LinkedHashMap__makeLiteral(["command", "error", "msg", H.S(e)
+ "\n" + H.S(trace)]); | 1889 t2 = P.LinkedHashMap__makeLiteral(["command", "error", "msg", H.S(e)
+ "\n" + H.S(trace)]); |
1897 t2 = new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$identity(
null, P.$int)).serialize$1(t2); | 1890 t2 = new H._Serializer(true, P._LinkedIdentityHashMap__LinkedIdentit
yHashMap$es6(null, P.$int)).serialize$1(t2); |
1898 t1.toString; | 1891 t1.toString; |
1899 self.postMessage(t2); | 1892 self.postMessage(t2); |
1900 } | 1893 } |
1901 }, "call$0", "get$run", 0, 0, 2] | 1894 }, "call$0", "get$run", 0, 0, 2] |
1902 }, | 1895 }, |
1903 _EventLoop__runHelper_next: { | 1896 _EventLoop__runHelper_next: { |
1904 "^": "Closure:2;_captured_this_0", | 1897 "^": "Closure:2;$this", |
1905 call$0: [function() { | 1898 call$0: [function() { |
1906 if (!this._captured_this_0.runIteration$0()) | 1899 if (!this.$this.runIteration$0()) |
1907 return; | 1900 return; |
1908 P.Timer_Timer(C.Duration_0, this); | 1901 P.Timer_Timer(C.Duration_0, this); |
1909 }, null, null, 0, 0, null, "call"] | 1902 }, null, null, 0, 0, null, "call"] |
1910 }, | 1903 }, |
1911 _IsolateEvent: { | 1904 _IsolateEvent: { |
1912 "^": "Object;isolate,fn,message>", | 1905 "^": "Object;isolate,fn,message>", |
1913 process$0: function() { | 1906 process$0: function() { |
1914 var t1 = this.isolate; | 1907 var t1 = this.isolate; |
1915 if (t1.get$isPaused()) { | 1908 if (t1.get$isPaused()) { |
1916 t1.get$delayedEvents().push(this); | 1909 t1.get$delayedEvents().push(this); |
1917 return; | 1910 return; |
1918 } | 1911 } |
1919 t1.eval$1(this.fn); | 1912 t1.eval$1(this.fn); |
1920 } | 1913 } |
1921 }, | 1914 }, |
1922 _MainManagerStub: { | 1915 _MainManagerStub: { |
1923 "^": "Object;" | 1916 "^": "Object;" |
1924 }, | 1917 }, |
1925 IsolateNatives__processWorkerMessage_closure: { | 1918 IsolateNatives__processWorkerMessage_closure: { |
1926 "^": "Closure:1;_captured_entryPoint_0,_captured_args_1,_captured_message_
2,_captured_isSpawnUri_3,_captured_startPaused_4,_captured_replyTo_5", | 1919 "^": "Closure:1;entryPoint,args,message,isSpawnUri,startPaused,replyTo", |
1927 call$0: function() { | 1920 call$0: function() { |
1928 H.IsolateNatives__startIsolate(this._captured_entryPoint_0, this._captur
ed_args_1, this._captured_message_2, this._captured_isSpawnUri_3, this._captured
_startPaused_4, this._captured_replyTo_5); | 1921 H.IsolateNatives__startIsolate(this.entryPoint, this.args, this.message,
this.isSpawnUri, this.startPaused, this.replyTo); |
1929 } | 1922 } |
1930 }, | 1923 }, |
1931 IsolateNatives__startIsolate_runStartFunction: { | 1924 IsolateNatives__startIsolate_runStartFunction: { |
1932 "^": "Closure:2;_captured_topLevel_0,_captured_args_1,_captured_message_2,
_captured_isSpawnUri_3,_captured_context_4", | 1925 "^": "Closure:2;topLevel,args,message,isSpawnUri,context", |
1933 call$0: function() { | 1926 call$0: function() { |
1934 var t1, t2, t3; | 1927 var t1, t2, t3, t4; |
1935 this._captured_context_4.set$initialized(true); | 1928 t1 = this.context; |
1936 if (this._captured_isSpawnUri_3 !== true) | 1929 t1.set$initialized(true); |
1937 this._captured_topLevel_0.call$1(this._captured_message_2); | 1930 if (this.isSpawnUri !== true) |
| 1931 this.topLevel.call$1(this.message); |
1938 else { | 1932 else { |
1939 t1 = this._captured_topLevel_0; | 1933 t2 = this.topLevel; |
1940 t2 = H.getDynamicRuntimeType(); | 1934 t3 = H.getDynamicRuntimeType(); |
1941 t3 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1); | 1935 t4 = H.buildFunctionType(t3, [t3, t3])._isTest$1(t2); |
1942 if (t3) | 1936 if (t4) |
1943 t1.call$2(this._captured_args_1, this._captured_message_2); | 1937 t2.call$2(this.args, this.message); |
1944 else { | 1938 else { |
1945 t2 = H.buildFunctionType(t2, [t2])._isTest$1(t1); | 1939 t3 = H.buildFunctionType(t3, [t3])._isTest$1(t2); |
1946 if (t2) | 1940 if (t3) |
1947 t1.call$1(this._captured_args_1); | 1941 t2.call$1(this.args); |
1948 else | 1942 else |
1949 t1.call$0(); | 1943 t2.call$0(); |
1950 } | 1944 } |
1951 } | 1945 } |
| 1946 t1._updateGlobalState$0(); |
1952 } | 1947 } |
1953 }, | 1948 }, |
1954 _BaseSendPort: { | 1949 _BaseSendPort: { |
1955 "^": "Object;" | 1950 "^": "Object;" |
1956 }, | 1951 }, |
1957 _NativeJsSendPort: { | 1952 _NativeJsSendPort: { |
1958 "^": "_BaseSendPort;_receivePort,_isolateId", | 1953 "^": "_BaseSendPort;_receivePort,_isolateId", |
1959 send$1: function(_, message) { | 1954 send$1: function(_, message) { |
1960 var isolate, t1, msg, t2; | 1955 var isolate, t1, msg, t2; |
1961 isolate = init.globalState.isolates.$index(0, this._isolateId); | 1956 isolate = init.globalState.isolates.$index(0, this._isolateId); |
(...skipping 14 matching lines...) Expand all Loading... |
1976 $eq: function(_, other) { | 1971 $eq: function(_, other) { |
1977 if (other == null) | 1972 if (other == null) |
1978 return false; | 1973 return false; |
1979 return other instanceof H._NativeJsSendPort && J.$eq$(this._receivePort,
other._receivePort); | 1974 return other instanceof H._NativeJsSendPort && J.$eq$(this._receivePort,
other._receivePort); |
1980 }, | 1975 }, |
1981 get$hashCode: function(_) { | 1976 get$hashCode: function(_) { |
1982 return this._receivePort.get$_id(); | 1977 return this._receivePort.get$_id(); |
1983 } | 1978 } |
1984 }, | 1979 }, |
1985 _NativeJsSendPort_send_closure: { | 1980 _NativeJsSendPort_send_closure: { |
1986 "^": "Closure:1;_captured_this_0,_captured_msg_1", | 1981 "^": "Closure:1;$this,msg", |
1987 call$0: function() { | 1982 call$0: function() { |
1988 var t1 = this._captured_this_0._receivePort; | 1983 var t1 = this.$this._receivePort; |
1989 if (!t1.get$_isClosed()) | 1984 if (!t1.get$_isClosed()) |
1990 t1.__isolate_helper$_add$1(this._captured_msg_1); | 1985 t1.__isolate_helper$_add$1(this.msg); |
1991 } | 1986 } |
1992 }, | 1987 }, |
1993 _WorkerSendPort: { | 1988 _WorkerSendPort: { |
1994 "^": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 1989 "^": "_BaseSendPort;_workerId,_receivePortId,_isolateId", |
1995 send$1: function(_, message) { | 1990 send$1: function(_, message) { |
1996 var t1, workerMessage, manager; | 1991 var t1, workerMessage, manager; |
1997 t1 = P.LinkedHashMap__makeLiteral(["command", "message", "port", this, "
msg", message]); | 1992 t1 = P.LinkedHashMap__makeLiteral(["command", "message", "port", this, "
msg", message]); |
1998 workerMessage = new H._Serializer(true, P.LinkedHashMap_LinkedHashMap$id
entity(null, P.$int)).serialize$1(t1); | 1993 workerMessage = new H._Serializer(true, P._LinkedIdentityHashMap__Linked
IdentityHashMap$es6(null, P.$int)).serialize$1(t1); |
1999 if (init.globalState.isWorker === true) { | 1994 if (init.globalState.isWorker === true) { |
2000 init.globalState.mainManager.toString; | 1995 init.globalState.mainManager.toString; |
2001 self.postMessage(workerMessage); | 1996 self.postMessage(workerMessage); |
2002 } else { | 1997 } else { |
2003 manager = init.globalState.managers.$index(0, this._workerId); | 1998 manager = init.globalState.managers.$index(0, this._workerId); |
2004 if (manager != null) | 1999 if (manager != null) |
2005 manager.postMessage(workerMessage); | 2000 manager.postMessage(workerMessage); |
2006 } | 2001 } |
2007 }, | 2002 }, |
2008 $eq: function(_, other) { | 2003 $eq: function(_, other) { |
(...skipping 10 matching lines...) Expand all Loading... |
2019 return H.iae(t3); | 2014 return H.iae(t3); |
2020 return (t1 ^ t2 ^ t3) >>> 0; | 2015 return (t1 ^ t2 ^ t3) >>> 0; |
2021 } | 2016 } |
2022 }, | 2017 }, |
2023 RawReceivePortImpl: { | 2018 RawReceivePortImpl: { |
2024 "^": "Object;_id<,_handler,_isClosed<", | 2019 "^": "Object;_id<,_handler,_isClosed<", |
2025 __isolate_helper$_close$0: function() { | 2020 __isolate_helper$_close$0: function() { |
2026 this._isClosed = true; | 2021 this._isClosed = true; |
2027 this._handler = null; | 2022 this._handler = null; |
2028 }, | 2023 }, |
2029 close$0: function(_) { | |
2030 var t1, t2; | |
2031 if (this._isClosed) | |
2032 return; | |
2033 this._isClosed = true; | |
2034 this._handler = null; | |
2035 t1 = init.globalState.currentContext; | |
2036 t2 = this._id; | |
2037 t1.ports.remove$1(0, t2); | |
2038 t1.weakPorts.remove$1(0, t2); | |
2039 t1._updateGlobalState$0(); | |
2040 }, | |
2041 __isolate_helper$_add$1: function(dataEvent) { | 2024 __isolate_helper$_add$1: function(dataEvent) { |
2042 if (this._isClosed) | 2025 if (this._isClosed) |
2043 return; | 2026 return; |
2044 this._handler$1(dataEvent); | 2027 this._handler$1(dataEvent); |
2045 }, | 2028 }, |
2046 _handler$1: function(arg0) { | 2029 _handler$1: function(arg0) { |
2047 return this._handler.call$1(arg0); | 2030 return this._handler.call$1(arg0); |
2048 }, | 2031 }, |
2049 $isRawReceivePort: 1 | 2032 $isRawReceivePort: 1 |
2050 }, | 2033 }, |
(...skipping 28 matching lines...) Expand all Loading... |
2079 var t1 = new H.TimerImpl(true, false, null); | 2062 var t1 = new H.TimerImpl(true, false, null); |
2080 t1.TimerImpl$2(milliseconds, callback); | 2063 t1.TimerImpl$2(milliseconds, callback); |
2081 return t1; | 2064 return t1; |
2082 }, TimerImpl$periodic: function(milliseconds, callback) { | 2065 }, TimerImpl$periodic: function(milliseconds, callback) { |
2083 var t1 = new H.TimerImpl(false, false, null); | 2066 var t1 = new H.TimerImpl(false, false, null); |
2084 t1.TimerImpl$periodic$2(milliseconds, callback); | 2067 t1.TimerImpl$periodic$2(milliseconds, callback); |
2085 return t1; | 2068 return t1; |
2086 }} | 2069 }} |
2087 }, | 2070 }, |
2088 TimerImpl_internalCallback: { | 2071 TimerImpl_internalCallback: { |
2089 "^": "Closure:2;_captured_this_0,_captured_callback_1", | 2072 "^": "Closure:2;$this,callback", |
2090 call$0: function() { | 2073 call$0: function() { |
2091 this._captured_this_0._handle = null; | 2074 this.$this._handle = null; |
2092 this._captured_callback_1.call$0(); | 2075 this.callback.call$0(); |
2093 } | 2076 } |
2094 }, | 2077 }, |
2095 TimerImpl_internalCallback0: { | 2078 TimerImpl_internalCallback0: { |
2096 "^": "Closure:2;_captured_this_2,_captured_callback_3", | 2079 "^": "Closure:2;$this,callback", |
2097 call$0: [function() { | 2080 call$0: [function() { |
2098 this._captured_this_2._handle = null; | 2081 this.$this._handle = null; |
2099 H.leaveJsAsync(); | 2082 --init.globalState.topEventLoop._activeJsAsyncCount; |
2100 this._captured_callback_3.call$0(); | 2083 this.callback.call$0(); |
2101 }, null, null, 0, 0, null, "call"] | 2084 }, null, null, 0, 0, null, "call"] |
2102 }, | 2085 }, |
2103 TimerImpl$periodic_closure: { | 2086 TimerImpl$periodic_closure: { |
2104 "^": "Closure:1;_captured_this_0,_captured_callback_1", | 2087 "^": "Closure:1;$this,callback", |
2105 call$0: [function() { | 2088 call$0: [function() { |
2106 this._captured_callback_1.call$1(this._captured_this_0); | 2089 this.callback.call$1(this.$this); |
2107 }, null, null, 0, 0, null, "call"] | 2090 }, null, null, 0, 0, null, "call"] |
2108 }, | 2091 }, |
2109 CapabilityImpl: { | 2092 CapabilityImpl: { |
2110 "^": "Object;_id<", | 2093 "^": "Object;_id<", |
2111 get$hashCode: function(_) { | 2094 get$hashCode: function(_) { |
2112 var hash, t1, t2; | 2095 var hash, t1, t2; |
2113 hash = this._id; | 2096 hash = this._id; |
2114 t1 = J.getInterceptor$n(hash); | 2097 t1 = J.getInterceptor$n(hash); |
2115 t2 = t1.$shr(hash, 0); | 2098 t2 = t1.$shr(hash, 0); |
2116 t1 = t1.$tdiv(hash, 4294967296); | 2099 t1 = t1.$tdiv(hash, 4294967296); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 return this.serializeJSObject$1(x); | 2150 return this.serializeJSObject$1(x); |
2168 if (!!t1.$isInterceptor) | 2151 if (!!t1.$isInterceptor) |
2169 this.unsupported$1(x); | 2152 this.unsupported$1(x); |
2170 if (!!t1.$isRawReceivePort) | 2153 if (!!t1.$isRawReceivePort) |
2171 this.unsupported$2(x, "RawReceivePorts can't be transmitted:"); | 2154 this.unsupported$2(x, "RawReceivePorts can't be transmitted:"); |
2172 if (!!t1.$is_NativeJsSendPort) | 2155 if (!!t1.$is_NativeJsSendPort) |
2173 return this.serializeJsSendPort$1(x); | 2156 return this.serializeJsSendPort$1(x); |
2174 if (!!t1.$is_WorkerSendPort) | 2157 if (!!t1.$is_WorkerSendPort) |
2175 return this.serializeWorkerSendPort$1(x); | 2158 return this.serializeWorkerSendPort$1(x); |
2176 if (!!t1.$isClosure) { | 2159 if (!!t1.$isClosure) { |
2177 $name = x.$name; | 2160 $name = x.$static_name; |
2178 if ($name == null) | 2161 if ($name == null) |
2179 this.unsupported$2(x, "Closures can't be transmitted:"); | 2162 this.unsupported$2(x, "Closures can't be transmitted:"); |
2180 return ["function", $name]; | 2163 return ["function", $name]; |
2181 } | 2164 } |
2182 if (!!t1.$isCapabilityImpl) | 2165 if (!!t1.$isCapabilityImpl) |
2183 return ["capability", x._id]; | 2166 return ["capability", x._id]; |
2184 if (!(x instanceof P.Object)) | 2167 if (!(x instanceof P.Object)) |
2185 this.unsupported$1(x); | 2168 this.unsupported$1(x); |
2186 return ["dart", init.classIdExtractor(x), this.serializeArrayInPlace$1(i
nit.classFieldsExtractor(x))]; | 2169 return ["dart", init.classIdExtractor(x), this.serializeArrayInPlace$1(i
nit.classFieldsExtractor(x))]; |
2187 }, "call$1", "get$serialize", 2, 0, 0, 17], | 2170 }, "call$1", "get$serialize", 2, 0, 0, 25], |
2188 unsupported$2: function(x, message) { | 2171 unsupported$2: function(x, message) { |
2189 throw H.wrapException(new P.UnsupportedError(H.S(message == null ? "Can'
t transmit:" : message) + " " + H.S(x))); | 2172 throw H.wrapException(new P.UnsupportedError(H.S(message == null ? "Can'
t transmit:" : message) + " " + H.S(x))); |
2190 }, | 2173 }, |
2191 unsupported$1: function(x) { | 2174 unsupported$1: function(x) { |
2192 return this.unsupported$2(x, null); | 2175 return this.unsupported$2(x, null); |
2193 }, | 2176 }, |
2194 serializeJSIndexable$1: function(indexable) { | 2177 serializeJSIndexable$1: function(indexable) { |
2195 var serialized = this.serializeArray$1(indexable); | 2178 var serialized = this.serializeArray$1(indexable); |
2196 if (!!indexable.fixed$length) | 2179 if (!!indexable.fixed$length) |
2197 return ["fixed", serialized]; | 2180 return ["fixed", serialized]; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 if (1 >= x.length) | 2257 if (1 >= x.length) |
2275 return H.ioore(x, 1); | 2258 return H.ioore(x, 1); |
2276 result = x[1]; | 2259 result = x[1]; |
2277 this.deserializedObjects.push(result); | 2260 this.deserializedObjects.push(result); |
2278 return result; | 2261 return result; |
2279 case "fixed": | 2262 case "fixed": |
2280 if (1 >= x.length) | 2263 if (1 >= x.length) |
2281 return H.ioore(x, 1); | 2264 return H.ioore(x, 1); |
2282 result = x[1]; | 2265 result = x[1]; |
2283 this.deserializedObjects.push(result); | 2266 this.deserializedObjects.push(result); |
2284 t1 = this.deserializeArrayInPlace$1(result); | 2267 t1 = H.setRuntimeTypeInfo(this.deserializeArrayInPlace$1(result), [n
ull]); |
2285 t1.$builtinTypeInfo = [null]; | |
2286 t1.fixed$length = Array; | 2268 t1.fixed$length = Array; |
2287 return t1; | 2269 return t1; |
2288 case "extendable": | 2270 case "extendable": |
2289 if (1 >= x.length) | 2271 if (1 >= x.length) |
2290 return H.ioore(x, 1); | 2272 return H.ioore(x, 1); |
2291 result = x[1]; | 2273 result = x[1]; |
2292 this.deserializedObjects.push(result); | 2274 this.deserializedObjects.push(result); |
2293 t1 = this.deserializeArrayInPlace$1(result); | 2275 return H.setRuntimeTypeInfo(this.deserializeArrayInPlace$1(result),
[null]); |
2294 t1.$builtinTypeInfo = [null]; | |
2295 return t1; | |
2296 case "mutable": | 2276 case "mutable": |
2297 if (1 >= x.length) | 2277 if (1 >= x.length) |
2298 return H.ioore(x, 1); | 2278 return H.ioore(x, 1); |
2299 result = x[1]; | 2279 result = x[1]; |
2300 this.deserializedObjects.push(result); | 2280 this.deserializedObjects.push(result); |
2301 return this.deserializeArrayInPlace$1(result); | 2281 return this.deserializeArrayInPlace$1(result); |
2302 case "const": | 2282 case "const": |
2303 if (1 >= x.length) | 2283 if (1 >= x.length) |
2304 return H.ioore(x, 1); | 2284 return H.ioore(x, 1); |
2305 result = x[1]; | 2285 result = x[1]; |
2306 this.deserializedObjects.push(result); | 2286 this.deserializedObjects.push(result); |
2307 t1 = this.deserializeArrayInPlace$1(result); | 2287 t1 = H.setRuntimeTypeInfo(this.deserializeArrayInPlace$1(result), [n
ull]); |
2308 t1.$builtinTypeInfo = [null]; | |
2309 t1.fixed$length = Array; | 2288 t1.fixed$length = Array; |
2310 return t1; | 2289 return t1; |
2311 case "map": | 2290 case "map": |
2312 return this.deserializeMap$1(x); | 2291 return this.deserializeMap$1(x); |
2313 case "sendport": | 2292 case "sendport": |
2314 return this.deserializeSendPort$1(x); | 2293 return this.deserializeSendPort$1(x); |
2315 case "raw sendport": | 2294 case "raw sendport": |
2316 if (1 >= x.length) | 2295 if (1 >= x.length) |
2317 return H.ioore(x, 1); | 2296 return H.ioore(x, 1); |
2318 result = x[1]; | 2297 result = x[1]; |
(...skipping 19 matching lines...) Expand all Loading... |
2338 if (2 >= t1) | 2317 if (2 >= t1) |
2339 return H.ioore(x, 2); | 2318 return H.ioore(x, 2); |
2340 fields = x[2]; | 2319 fields = x[2]; |
2341 emptyInstance = init.instanceFromClassId(classId); | 2320 emptyInstance = init.instanceFromClassId(classId); |
2342 this.deserializedObjects.push(emptyInstance); | 2321 this.deserializedObjects.push(emptyInstance); |
2343 this.deserializeArrayInPlace$1(fields); | 2322 this.deserializeArrayInPlace$1(fields); |
2344 return init.initializeEmptyInstance(classId, emptyInstance, fields); | 2323 return init.initializeEmptyInstance(classId, emptyInstance, fields); |
2345 default: | 2324 default: |
2346 throw H.wrapException("couldn't deserialize: " + H.S(x)); | 2325 throw H.wrapException("couldn't deserialize: " + H.S(x)); |
2347 } | 2326 } |
2348 }, "call$1", "get$deserialize", 2, 0, 0, 17], | 2327 }, "call$1", "get$deserialize", 2, 0, 0, 25], |
2349 deserializeArrayInPlace$1: function(x) { | 2328 deserializeArrayInPlace$1: function(x) { |
2350 var t1, i, t2; | 2329 var t1, i, t2; |
2351 t1 = J.getInterceptor$asx(x); | 2330 t1 = J.getInterceptor$asx(x); |
2352 i = 0; | 2331 i = 0; |
2353 while (true) { | 2332 while (true) { |
2354 t2 = t1.get$length(x); | 2333 t2 = t1.get$length(x); |
2355 if (typeof t2 !== "number") | 2334 if (typeof t2 !== "number") |
2356 return H.iae(t2); | 2335 return H.iae(t2); |
2357 if (!(i < t2)) | 2336 if (!(i < t2)) |
2358 break; | 2337 break; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 if (radix < 10 || decimalMatch == null) { | 2476 if (radix < 10 || decimalMatch == null) { |
2498 maxCharCode = radix <= 10 ? 47 + radix : 86 + radix; | 2477 maxCharCode = radix <= 10 ? 47 + radix : 86 + radix; |
2499 digitsPart = match[1]; | 2478 digitsPart = match[1]; |
2500 for (t1 = digitsPart.length, i = 0; i < t1; ++i) | 2479 for (t1 = digitsPart.length, i = 0; i < t1; ++i) |
2501 if ((C.JSString_methods.codeUnitAt$1(digitsPart, i) | 32) > maxCharCod
e) | 2480 if ((C.JSString_methods.codeUnitAt$1(digitsPart, i) | 32) > maxCharCod
e) |
2502 return H.Primitives__parseIntError(source, handleError); | 2481 return H.Primitives__parseIntError(source, handleError); |
2503 } | 2482 } |
2504 return parseInt(source, radix); | 2483 return parseInt(source, radix); |
2505 }, | 2484 }, |
2506 Primitives_objectTypeName: function(object) { | 2485 Primitives_objectTypeName: function(object) { |
2507 var $name, decompiled; | 2486 var interceptor, interceptorConstructor, interceptorConstructorName, $name
, dispatchName, objectConstructor, decompiledName; |
2508 $name = C.JS_CONST_8ZY(J.getInterceptor(object)); | 2487 interceptor = J.getInterceptor(object); |
2509 if ($name === "Object") { | 2488 interceptorConstructor = interceptor.constructor; |
2510 decompiled = String(object.constructor).match(/^\s*function\s*([\w$]*)\s
*\(/)[1]; | 2489 if (typeof interceptorConstructor == "function") { |
2511 if (typeof decompiled === "string") | 2490 interceptorConstructorName = interceptorConstructor.name; |
2512 $name = /^\w+$/.test(decompiled) ? decompiled : $name; | 2491 $name = typeof interceptorConstructorName === "string" ? interceptorCons
tructorName : null; |
| 2492 } else |
| 2493 $name = null; |
| 2494 if ($name == null || interceptor === C.Interceptor_methods || !!J.getInter
ceptor(object).$isUnknownJavaScriptObject) { |
| 2495 dispatchName = C.JS_CONST_8ZY(object); |
| 2496 if (dispatchName === "Object") { |
| 2497 objectConstructor = object.constructor; |
| 2498 if (typeof objectConstructor == "function") { |
| 2499 decompiledName = String(objectConstructor).match(/^\s*function\s*([\
w$]*)\s*\(/)[1]; |
| 2500 if (typeof decompiledName === "string" && /^\w+$/.test(decompiledNam
e)) |
| 2501 $name = decompiledName; |
| 2502 } |
| 2503 if ($name == null) |
| 2504 $name = dispatchName; |
| 2505 } else |
| 2506 $name = dispatchName; |
2513 } | 2507 } |
| 2508 $name = $name; |
2514 if ($name.length > 1 && C.JSString_methods.codeUnitAt$1($name, 0) === 36) | 2509 if ($name.length > 1 && C.JSString_methods.codeUnitAt$1($name, 0) === 36) |
2515 $name = C.JSString_methods.substring$1($name, 1); | 2510 $name = C.JSString_methods.substring$1($name, 1); |
2516 return ($name + H.joinArguments(H.getRuntimeTypeInfo(object), 0, null)).re
place(/[^<,> ]+/g, function(m) { | 2511 return function(str, names) { |
2517 return init.mangledGlobalNames[m] || m; | 2512 return str.replace(/[^<,> ]+/g, function(m) { |
2518 }); | 2513 return names[m] || m; |
| 2514 }); |
| 2515 }($name + H.joinArguments(H.getRuntimeTypeInfo(object), 0, null), init.man
gledGlobalNames); |
2519 }, | 2516 }, |
2520 Primitives_objectToHumanReadableString: function(object) { | 2517 Primitives_objectToHumanReadableString: function(object) { |
2521 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | 2518 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; |
2522 }, | 2519 }, |
2523 Primitives_currentUri: function() { | 2520 Primitives_currentUri: function() { |
2524 if (!!self.location) | 2521 if (!!self.location) |
2525 return self.location.href; | 2522 return self.location.href; |
2526 return; | 2523 return; |
2527 }, | 2524 }, |
2528 Primitives__fromCharCodeApply: function(array) { | 2525 Primitives__fromCharCodeApply: function(array) { |
2529 var end, result, i, i0, chunkEnd; | 2526 var end, result, i, i0, chunkEnd; |
2530 end = array.length; | 2527 end = array.length; |
2531 if (end <= 500) | 2528 if (end <= 500) |
2532 return String.fromCharCode.apply(null, array); | 2529 return String.fromCharCode.apply(null, array); |
2533 for (result = "", i = 0; i < end; i = i0) { | 2530 for (result = "", i = 0; i < end; i = i0) { |
2534 i0 = i + 500; | 2531 i0 = i + 500; |
2535 chunkEnd = i0 < end ? i0 : end; | 2532 chunkEnd = i0 < end ? i0 : end; |
2536 result += String.fromCharCode.apply(null, array.slice(i, chunkEnd)); | 2533 result += String.fromCharCode.apply(null, array.slice(i, chunkEnd)); |
2537 } | 2534 } |
2538 return result; | 2535 return result; |
2539 }, | 2536 }, |
2540 Primitives_stringFromCodePoints: function(codePoints) { | 2537 Primitives_stringFromCodePoints: function(codePoints) { |
2541 var a, t1, _i, i; | 2538 var a, t1, _i, i; |
2542 a = []; | 2539 a = H.setRuntimeTypeInfo([], [P.$int]); |
2543 a.$builtinTypeInfo = [P.$int]; | |
2544 for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.le
ngth === t1 || (0, H.throwConcurrentModificationError)(codePoints), ++_i) { | 2540 for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.le
ngth === t1 || (0, H.throwConcurrentModificationError)(codePoints), ++_i) { |
2545 i = codePoints[_i]; | 2541 i = codePoints[_i]; |
2546 if (typeof i !== "number" || Math.floor(i) !== i) | 2542 if (typeof i !== "number" || Math.floor(i) !== i) |
2547 throw H.wrapException(H.argumentErrorValue(i)); | 2543 throw H.wrapException(H.argumentErrorValue(i)); |
2548 if (i <= 65535) | 2544 if (i <= 65535) |
2549 a.push(i); | 2545 a.push(i); |
2550 else if (i <= 1114111) { | 2546 else if (i <= 1114111) { |
2551 a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1
023)); | 2547 a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1
023)); |
2552 a.push(56320 + (i & 1023)); | 2548 a.push(56320 + (i & 1023)); |
2553 } else | 2549 } else |
2554 throw H.wrapException(H.argumentErrorValue(i)); | 2550 throw H.wrapException(H.argumentErrorValue(i)); |
2555 } | 2551 } |
2556 return H.Primitives__fromCharCodeApply(a); | 2552 return H.Primitives__fromCharCodeApply(a); |
2557 }, | 2553 }, |
2558 Primitives_stringFromCharCodes: function(charCodes) { | 2554 Primitives_stringFromCharCodes: function(charCodes) { |
2559 var t1, _i, t2, i; | 2555 var t1, _i, t2, i; |
2560 for (t1 = charCodes.length, _i = 0; t2 = charCodes.length, _i < t2; t2 ===
t1 || (0, H.throwConcurrentModificationError)(charCodes), ++_i) { | 2556 for (t1 = charCodes.length, _i = 0; t2 = charCodes.length, _i < t2; t2 ===
t1 || (0, H.throwConcurrentModificationError)(charCodes), ++_i) { |
2561 i = charCodes[_i]; | 2557 i = charCodes[_i]; |
2562 if (typeof i !== "number" || Math.floor(i) !== i) | 2558 if (typeof i !== "number" || Math.floor(i) !== i) |
2563 throw H.wrapException(H.argumentErrorValue(i)); | 2559 throw H.wrapException(H.argumentErrorValue(i)); |
2564 if (i < 0) | 2560 if (i < 0) |
2565 throw H.wrapException(H.argumentErrorValue(i)); | 2561 throw H.wrapException(H.argumentErrorValue(i)); |
2566 if (i > 65535) | 2562 if (i > 65535) |
2567 return H.Primitives_stringFromCodePoints(charCodes); | 2563 return H.Primitives_stringFromCodePoints(charCodes); |
2568 } | 2564 } |
2569 return H.Primitives__fromCharCodeApply(charCodes); | 2565 return H.Primitives__fromCharCodeApply(charCodes); |
2570 }, | 2566 }, |
| 2567 Primitives_stringFromNativeUint8List: function(charCodes, start, end) { |
| 2568 var t1, i, result, i0, chunkEnd; |
| 2569 t1 = J.getInterceptor$n(end); |
| 2570 if (t1.$le(end, 500) && start === 0 && t1.$eq(end, charCodes.length)) |
| 2571 return String.fromCharCode.apply(null, charCodes); |
| 2572 if (typeof end !== "number") |
| 2573 return H.iae(end); |
| 2574 i = start; |
| 2575 result = ""; |
| 2576 for (; i < end; i = i0) { |
| 2577 i0 = i + 500; |
| 2578 if (i0 < end) |
| 2579 chunkEnd = i0; |
| 2580 else |
| 2581 chunkEnd = end; |
| 2582 result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd
)); |
| 2583 } |
| 2584 return result; |
| 2585 }, |
2571 Primitives_stringFromCharCode: function(charCode) { | 2586 Primitives_stringFromCharCode: function(charCode) { |
2572 var bits; | 2587 var bits; |
2573 if (typeof charCode !== "number") | 2588 if (typeof charCode !== "number") |
2574 return H.iae(charCode); | 2589 return H.iae(charCode); |
2575 if (0 <= charCode) { | 2590 if (0 <= charCode) { |
2576 if (charCode <= 65535) | 2591 if (charCode <= 65535) |
2577 return String.fromCharCode(charCode); | 2592 return String.fromCharCode(charCode); |
2578 if (charCode <= 1114111) { | 2593 if (charCode <= 1114111) { |
2579 bits = charCode - 65536; | 2594 bits = charCode - 65536; |
2580 return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$
1(bits, 10)) >>> 0, 56320 | bits & 1023); | 2595 return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$
1(bits, 10)) >>> 0, 56320 | bits & 1023); |
2581 } | 2596 } |
2582 } | 2597 } |
2583 throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null)
); | 2598 throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null)
); |
2584 }, | 2599 }, |
2585 Primitives_lazyAsJsDate: function(receiver) { | 2600 Primitives_lazyAsJsDate: function(receiver) { |
2586 if (receiver.date === void 0) | 2601 if (receiver.date === void 0) |
2587 receiver.date = new Date(receiver.millisecondsSinceEpoch); | 2602 receiver.date = new Date(receiver._core$_value); |
2588 return receiver.date; | 2603 return receiver.date; |
2589 }, | 2604 }, |
2590 Primitives_getProperty: function(object, key) { | 2605 Primitives_getProperty: function(object, key) { |
2591 if (object == null || typeof object === "boolean" || typeof object === "nu
mber" || typeof object === "string") | 2606 if (object == null || typeof object === "boolean" || typeof object === "nu
mber" || typeof object === "string") |
2592 throw H.wrapException(H.argumentErrorValue(object)); | 2607 throw H.wrapException(H.argumentErrorValue(object)); |
2593 return object[key]; | 2608 return object[key]; |
2594 }, | 2609 }, |
2595 Primitives_setProperty: function(object, key, value) { | 2610 Primitives_setProperty: function(object, key, value) { |
2596 if (object == null || typeof object === "boolean" || typeof object === "nu
mber" || typeof object === "string") | 2611 if (object == null || typeof object === "boolean" || typeof object === "nu
mber" || typeof object === "string") |
2597 throw H.wrapException(H.argumentErrorValue(object)); | 2612 throw H.wrapException(H.argumentErrorValue(object)); |
2598 object[key] = value; | 2613 object[key] = value; |
2599 }, | 2614 }, |
2600 Primitives_functionNoSuchMethod: function($function, positionalArguments, na
medArguments) { | 2615 Primitives_functionNoSuchMethod: function($function, positionalArguments, na
medArguments) { |
2601 var t1, $arguments, namedArgumentList; | 2616 var t1, $arguments, namedArgumentList; |
2602 t1 = {}; | 2617 t1 = {}; |
2603 t1._captured_argumentCount_0 = 0; | 2618 t1.argumentCount = 0; |
2604 $arguments = []; | 2619 $arguments = []; |
2605 namedArgumentList = []; | 2620 namedArgumentList = []; |
2606 t1._captured_argumentCount_0 = positionalArguments.length; | 2621 t1.argumentCount = positionalArguments.length; |
2607 C.JSArray_methods.addAll$1($arguments, positionalArguments); | 2622 C.JSArray_methods.addAll$1($arguments, positionalArguments); |
2608 t1._captured_names_1 = ""; | 2623 t1.names = ""; |
2609 if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments)) | 2624 if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments)) |
2610 namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closur
e(t1, $arguments, namedArgumentList)); | 2625 namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closur
e(t1, $arguments, namedArgumentList)); |
2611 return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call
, "call" + "$" + t1._captured_argumentCount_0 + t1._captured_names_1, 0, $argume
nts, namedArgumentList, null)); | 2626 return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call
, "call" + "$" + t1.argumentCount + t1.names, 0, $arguments, namedArgumentList,
null)); |
2612 }, | 2627 }, |
2613 Primitives_applyFunctionWithPositionalArguments: function($function, positio
nalArguments) { | 2628 Primitives_applyFunctionWithPositionalArguments: function($function, positio
nalArguments) { |
2614 var $arguments, t1; | 2629 var $arguments, t1; |
2615 $arguments = positionalArguments instanceof Array ? positionalArguments :
P.List_List$from(positionalArguments, true, null); | 2630 $arguments = positionalArguments instanceof Array ? positionalArguments :
P.List_List$from(positionalArguments, true, null); |
2616 t1 = $arguments.length; | 2631 t1 = $arguments.length; |
2617 if (t1 === 0) { | 2632 if (t1 === 0) { |
2618 if (!!$function.call$0) | 2633 if (!!$function.call$0) |
2619 return $function.call$0(); | 2634 return $function.call$0(); |
2620 } else if (t1 === 1) { | 2635 } else if (t1 === 1) { |
2621 if (!!$function.call$1) | 2636 if (!!$function.call$1) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 if (!(index < 0)) { | 2678 if (!(index < 0)) { |
2664 if (typeof $length !== "number") | 2679 if (typeof $length !== "number") |
2665 return H.iae($length); | 2680 return H.iae($length); |
2666 t1 = index >= $length; | 2681 t1 = index >= $length; |
2667 } else | 2682 } else |
2668 t1 = true; | 2683 t1 = true; |
2669 if (t1) | 2684 if (t1) |
2670 return P.IndexError$(index, indexable, "index", null, $length); | 2685 return P.IndexError$(index, indexable, "index", null, $length); |
2671 return P.RangeError$value(index, "index", null); | 2686 return P.RangeError$value(index, "index", null); |
2672 }, | 2687 }, |
| 2688 diagnoseRangeError: function(start, end, $length) { |
| 2689 if (start > $length) |
| 2690 return new P.RangeError(0, $length, true, start, "start", "Invalid value
"); |
| 2691 if (end != null) |
| 2692 if (end < start || end > $length) |
| 2693 return new P.RangeError(start, $length, true, end, "end", "Invalid val
ue"); |
| 2694 return new P.ArgumentError(true, end, "end", null); |
| 2695 }, |
2673 argumentErrorValue: function(object) { | 2696 argumentErrorValue: function(object) { |
2674 return new P.ArgumentError(true, object, null, null); | 2697 return new P.ArgumentError(true, object, null, null); |
2675 }, | 2698 }, |
2676 checkInt: function(value) { | 2699 checkInt: function(value) { |
2677 if (typeof value !== "number" || Math.floor(value) !== value) | 2700 if (typeof value !== "number" || Math.floor(value) !== value) |
2678 throw H.wrapException(H.argumentErrorValue(value)); | 2701 throw H.wrapException(H.argumentErrorValue(value)); |
2679 return value; | 2702 return value; |
2680 }, | 2703 }, |
2681 checkString: function(value) { | 2704 checkString: function(value) { |
2682 if (typeof value !== "string") | 2705 if (typeof value !== "string") |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2839 else if (t1.$eq(numberOfArguments, 1)) | 2862 else if (t1.$eq(numberOfArguments, 1)) |
2840 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, a
rg1)); | 2863 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, a
rg1)); |
2841 else if (t1.$eq(numberOfArguments, 2)) | 2864 else if (t1.$eq(numberOfArguments, 2)) |
2842 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, a
rg1, arg2)); | 2865 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, a
rg1, arg2)); |
2843 else if (t1.$eq(numberOfArguments, 3)) | 2866 else if (t1.$eq(numberOfArguments, 3)) |
2844 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, a
rg1, arg2, arg3)); | 2867 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, a
rg1, arg2, arg3)); |
2845 else if (t1.$eq(numberOfArguments, 4)) | 2868 else if (t1.$eq(numberOfArguments, 4)) |
2846 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, a
rg1, arg2, arg3, arg4)); | 2869 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, a
rg1, arg2, arg3, arg4)); |
2847 else | 2870 else |
2848 throw H.wrapException(P.Exception_Exception("Unsupported number of argum
ents for wrapped closure")); | 2871 throw H.wrapException(P.Exception_Exception("Unsupported number of argum
ents for wrapped closure")); |
2849 }, null, null, 14, 0, null, 26, 27, 43, 22, 18, 31, 28], | 2872 }, null, null, 14, 0, null, 43, 44, 27, 20, 21, 28, 29], |
2850 convertDartClosureToJS: function(closure, arity) { | 2873 convertDartClosureToJS: function(closure, arity) { |
2851 var $function; | 2874 var $function; |
2852 if (closure == null) | 2875 if (closure == null) |
2853 return; | 2876 return; |
2854 $function = closure.$identity; | 2877 $function = closure.$identity; |
2855 if (!!$function) | 2878 if (!!$function) |
2856 return $function; | 2879 return $function; |
2857 $function = function(closure, arity, context, invoke) { | 2880 $function = function(closure, arity, context, invoke) { |
2858 return function(a1, a2, a3, a4) { | 2881 return function(a1, a2, a3, a4) { |
2859 return invoke(closure, context, arity, a1, a2, a3, a4); | 2882 return invoke(closure, context, arity, a1, a2, a3, a4); |
(...skipping 24 matching lines...) Expand all Loading... |
2884 $constructor = t1; | 2907 $constructor = t1; |
2885 } | 2908 } |
2886 $prototype.constructor = $constructor; | 2909 $prototype.constructor = $constructor; |
2887 $constructor.prototype = $prototype; | 2910 $constructor.prototype = $prototype; |
2888 t1 = !isStatic; | 2911 t1 = !isStatic; |
2889 if (t1) { | 2912 if (t1) { |
2890 isIntercepted = jsArguments.length == 1 && true; | 2913 isIntercepted = jsArguments.length == 1 && true; |
2891 trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted)
; | 2914 trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted)
; |
2892 trampoline.$reflectionInfo = reflectionInfo; | 2915 trampoline.$reflectionInfo = reflectionInfo; |
2893 } else { | 2916 } else { |
2894 $prototype.$name = propertyName; | 2917 $prototype.$static_name = propertyName; |
2895 trampoline = $function; | 2918 trampoline = $function; |
2896 isIntercepted = false; | 2919 isIntercepted = false; |
2897 } | 2920 } |
2898 if (typeof functionType == "number") | 2921 if (typeof functionType == "number") |
2899 signatureFunction = function(t) { | 2922 signatureFunction = function(getType, t) { |
2900 return function() { | 2923 return function() { |
2901 return H.getType(t); | 2924 return getType(t); |
2902 }; | 2925 }; |
2903 }(functionType); | 2926 }(H.getType, functionType); |
2904 else if (t1 && typeof functionType == "function") { | 2927 else if (t1 && typeof functionType == "function") { |
2905 getReceiver = isIntercepted ? H.BoundClosure_receiverOf : H.BoundClosure
_selfOf; | 2928 getReceiver = isIntercepted ? H.BoundClosure_receiverOf : H.BoundClosure
_selfOf; |
2906 signatureFunction = function(f, r) { | 2929 signatureFunction = function(f, r) { |
2907 return function() { | 2930 return function() { |
2908 return f.apply({$receiver: r(this)}, arguments); | 2931 return f.apply({$receiver: r(this)}, arguments); |
2909 }; | 2932 }; |
2910 }(functionType, getReceiver); | 2933 }(functionType, getReceiver); |
2911 } else | 2934 } else |
2912 throw H.wrapException("Error in reflectionInfo."); | 2935 throw H.wrapException("Error in reflectionInfo."); |
2913 $prototype.$signature = signatureFunction; | 2936 $prototype.$signature = signatureFunction; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3094 t1 = reflectionInfo; | 3117 t1 = reflectionInfo; |
3095 } else | 3118 } else |
3096 t1 = reflectionInfo; | 3119 t1 = reflectionInfo; |
3097 return H.Closure_fromTearOff(receiver, functions, t1, !!isStatic, jsArgume
nts, $name); | 3120 return H.Closure_fromTearOff(receiver, functions, t1, !!isStatic, jsArgume
nts, $name); |
3098 }, | 3121 }, |
3099 intTypeCast: function(value) { | 3122 intTypeCast: function(value) { |
3100 if (typeof value === "number" && Math.floor(value) === value || value == n
ull) | 3123 if (typeof value === "number" && Math.floor(value) === value || value == n
ull) |
3101 return value; | 3124 return value; |
3102 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeNa
me(value), "int")); | 3125 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeNa
me(value), "int")); |
3103 }, | 3126 }, |
3104 propertyTypeCastError: function(value, property) { | |
3105 var t1 = J.getInterceptor$asx(property); | |
3106 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeNa
me(value), t1.substring$2(property, 3, t1.get$length(property)))); | |
3107 }, | |
3108 interceptedTypeCast: function(value, property) { | |
3109 var t1; | |
3110 if (value != null) | |
3111 t1 = typeof value === "object" && J.getInterceptor(value)[property]; | |
3112 else | |
3113 t1 = true; | |
3114 if (t1) | |
3115 return value; | |
3116 H.propertyTypeCastError(value, property); | |
3117 }, | |
3118 throwCyclicInit: function(staticName) { | 3127 throwCyclicInit: function(staticName) { |
3119 throw H.wrapException(new P.CyclicInitializationError("Cyclic initializati
on for static " + H.S(staticName))); | 3128 throw H.wrapException(new P.CyclicInitializationError("Cyclic initializati
on for static " + H.S(staticName))); |
3120 }, | 3129 }, |
3121 buildFunctionType: function(returnType, parameterTypes, optionalParameterTyp
es) { | 3130 buildFunctionType: function(returnType, parameterTypes, optionalParameterTyp
es) { |
3122 return new H.RuntimeFunctionType(returnType, parameterTypes, optionalParam
eterTypes, null); | 3131 return new H.RuntimeFunctionType(returnType, parameterTypes, optionalParam
eterTypes, null); |
3123 }, | 3132 }, |
3124 getDynamicRuntimeType: function() { | 3133 getDynamicRuntimeType: function() { |
3125 return C.C_DynamicRuntimeType; | 3134 return C.C_DynamicRuntimeType; |
3126 }, | 3135 }, |
3127 random64: function() { | 3136 random64: function() { |
3128 return (Math.random() * 0x100000000 >>> 0) + (Math.random() * 0x100000000
>>> 0) * 4294967296; | 3137 return (Math.random() * 0x100000000 >>> 0) + (Math.random() * 0x100000000
>>> 0) * 4294967296; |
3129 }, | 3138 }, |
3130 getIsolateAffinityTag: function($name) { | 3139 getIsolateAffinityTag: function($name) { |
3131 return init.getIsolateTag($name); | 3140 return init.getIsolateTag($name); |
3132 }, | 3141 }, |
3133 asyncHelper: function(object, bodyFunctionOrErrorCode, completer) { | |
3134 var future; | |
3135 if (bodyFunctionOrErrorCode === 0) { | |
3136 J.complete$1$x(completer, object); | |
3137 return; | |
3138 } else if (bodyFunctionOrErrorCode === 1) { | |
3139 completer.completeError$2(H.unwrapException(object), H.getTraceFromExcep
tion(object)); | |
3140 return; | |
3141 } | |
3142 if (!!J.getInterceptor(object).$isFuture) | |
3143 future = object; | |
3144 else { | |
3145 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
null]); | |
3146 future._asyncComplete$1(object); | |
3147 } | |
3148 future.then$2$onError(H._wrapJsFunctionForAsync(bodyFunctionOrErrorCode, 0
), new H.asyncHelper_closure(bodyFunctionOrErrorCode)); | |
3149 return completer.get$future(); | |
3150 }, | |
3151 _wrapJsFunctionForAsync: function($function, errorCode) { | |
3152 return new H._wrapJsFunctionForAsync_closure(errorCode, function(errorCode
, result) { | |
3153 while (true) | |
3154 try { | |
3155 $function(errorCode, result); | |
3156 break; | |
3157 } catch (error) { | |
3158 result = error; | |
3159 errorCode = 1; | |
3160 } | |
3161 }); | |
3162 }, | |
3163 setRuntimeTypeInfo: function(target, rti) { | 3142 setRuntimeTypeInfo: function(target, rti) { |
3164 if (target != null) | 3143 target.$builtinTypeInfo = rti; |
3165 target.$builtinTypeInfo = rti; | |
3166 return target; | 3144 return target; |
3167 }, | 3145 }, |
3168 getRuntimeTypeInfo: function(target) { | 3146 getRuntimeTypeInfo: function(target) { |
3169 if (target == null) | 3147 if (target == null) |
3170 return; | 3148 return; |
3171 return target.$builtinTypeInfo; | 3149 return target.$builtinTypeInfo; |
3172 }, | 3150 }, |
3173 getRuntimeTypeArguments: function(target, substitutionName) { | 3151 getRuntimeTypeArguments: function(target, substitutionName) { |
3174 return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTyp
eInfo(target)); | 3152 return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTyp
eInfo(target)); |
3175 }, | 3153 }, |
(...skipping 29 matching lines...) Expand all Loading... |
3205 buffer._contents = t1 + ", "; | 3183 buffer._contents = t1 + ", "; |
3206 argument = types[index]; | 3184 argument = types[index]; |
3207 if (argument != null) | 3185 if (argument != null) |
3208 allDynamic = false; | 3186 allDynamic = false; |
3209 t1 = buffer._contents += H.S(H.runtimeTypeToString(argument, onTypeVaria
ble)); | 3187 t1 = buffer._contents += H.S(H.runtimeTypeToString(argument, onTypeVaria
ble)); |
3210 } | 3188 } |
3211 return allDynamic ? "" : "<" + H.S(buffer) + ">"; | 3189 return allDynamic ? "" : "<" + H.S(buffer) + ">"; |
3212 }, | 3190 }, |
3213 substitute: function(substitution, $arguments) { | 3191 substitute: function(substitution, $arguments) { |
3214 if (typeof substitution == "function") { | 3192 if (typeof substitution == "function") { |
3215 substitution = H.invokeOn(substitution, null, $arguments); | 3193 substitution = substitution.apply(null, $arguments); |
3216 if (substitution == null || typeof substitution === "object" && substitu
tion !== null && substitution.constructor === Array) | 3194 if (substitution == null) |
3217 $arguments = substitution; | 3195 return substitution; |
3218 else if (typeof substitution == "function") | 3196 if (typeof substitution === "object" && substitution !== null && substit
ution.constructor === Array) |
3219 $arguments = H.invokeOn(substitution, null, $arguments); | 3197 return substitution; |
| 3198 if (typeof substitution == "function") |
| 3199 return substitution.apply(null, $arguments); |
3220 } | 3200 } |
3221 return $arguments; | 3201 return $arguments; |
3222 }, | 3202 }, |
3223 checkSubtype: function(object, isField, checks, asField) { | 3203 checkSubtype: function(object, isField, checks, asField) { |
3224 var $arguments, interceptor; | 3204 var $arguments, interceptor; |
3225 if (object == null) | 3205 if (object == null) |
3226 return false; | 3206 return false; |
3227 $arguments = H.getRuntimeTypeInfo(object); | 3207 $arguments = H.getRuntimeTypeInfo(object); |
3228 interceptor = J.getInterceptor(object); | 3208 interceptor = J.getInterceptor(object); |
3229 if (interceptor[isField] == null) | 3209 if (interceptor[isField] == null) |
3230 return false; | 3210 return false; |
3231 return H.areSubtypes(H.substitute(interceptor[asField], $arguments), check
s); | 3211 return H.areSubtypes(H.substitute(interceptor[asField], $arguments), check
s); |
3232 }, | 3212 }, |
3233 areSubtypes: function(s, t) { | 3213 areSubtypes: function(s, t) { |
3234 var len, i; | 3214 var len, i; |
3235 if (s == null || t == null) | 3215 if (s == null || t == null) |
3236 return true; | 3216 return true; |
3237 len = s.length; | 3217 len = s.length; |
3238 for (i = 0; i < len; ++i) | 3218 for (i = 0; i < len; ++i) |
3239 if (!H.isSubtype(s[i], t[i])) | 3219 if (!H.isSubtype(s[i], t[i])) |
3240 return false; | 3220 return false; |
3241 return true; | 3221 return true; |
3242 }, | 3222 }, |
3243 computeSignature: function(signature, context, contextName) { | 3223 computeSignature: function(signature, context, contextName) { |
3244 return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, c
ontextName)); | 3224 return signature.apply(context, H.getRuntimeTypeArguments(context, context
Name)); |
3245 }, | 3225 }, |
3246 isSubtype: function(s, t) { | 3226 isSubtype: function(s, t) { |
3247 var t1, typeOfS, t2, typeOfT, substitution; | 3227 var t1, typeOfS, t2, typeOfT, substitution; |
3248 if (s === t) | 3228 if (s === t) |
3249 return true; | 3229 return true; |
3250 if (s == null || t == null) | 3230 if (s == null || t == null) |
3251 return true; | 3231 return true; |
3252 if ('func' in t) | 3232 if ('func' in t) |
3253 return H.isFunctionSubtype(s, t); | 3233 return H.isFunctionSubtype(s, t); |
3254 if ('func' in s) | 3234 if ('func' in s) |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3310 sType = s[$name]; | 3290 sType = s[$name]; |
3311 if (!(H.isSubtype(tType, sType) || H.isSubtype(sType, tType))) | 3291 if (!(H.isSubtype(tType, sType) || H.isSubtype(sType, tType))) |
3312 return false; | 3292 return false; |
3313 } | 3293 } |
3314 return true; | 3294 return true; |
3315 }, | 3295 }, |
3316 isFunctionSubtype: function(s, t) { | 3296 isFunctionSubtype: function(s, t) { |
3317 var sReturnType, tReturnType, sParameterTypes, tParameterTypes, sOptionalP
arameterTypes, tOptionalParameterTypes, sParametersLen, tParametersLen, sOptiona
lParametersLen, tOptionalParametersLen, pos, t1, t2, tPos, sPos; | 3297 var sReturnType, tReturnType, sParameterTypes, tParameterTypes, sOptionalP
arameterTypes, tOptionalParameterTypes, sParametersLen, tParametersLen, sOptiona
lParametersLen, tOptionalParametersLen, pos, t1, t2, tPos, sPos; |
3318 if (!('func' in s)) | 3298 if (!('func' in s)) |
3319 return false; | 3299 return false; |
3320 if ("void" in s) { | 3300 if ("v" in s) { |
3321 if (!("void" in t) && "ret" in t) | 3301 if (!("v" in t) && "ret" in t) |
3322 return false; | 3302 return false; |
3323 } else if (!("void" in t)) { | 3303 } else if (!("v" in t)) { |
3324 sReturnType = s.ret; | 3304 sReturnType = s.ret; |
3325 tReturnType = t.ret; | 3305 tReturnType = t.ret; |
3326 if (!(H.isSubtype(sReturnType, tReturnType) || H.isSubtype(tReturnType,
sReturnType))) | 3306 if (!(H.isSubtype(sReturnType, tReturnType) || H.isSubtype(tReturnType,
sReturnType))) |
3327 return false; | 3307 return false; |
3328 } | 3308 } |
3329 sParameterTypes = s.args; | 3309 sParameterTypes = s.args; |
3330 tParameterTypes = t.args; | 3310 tParameterTypes = t.args; |
3331 sOptionalParameterTypes = s.opt; | 3311 sOptionalParameterTypes = s.opt; |
3332 tOptionalParameterTypes = t.opt; | 3312 tOptionalParameterTypes = t.opt; |
3333 sParametersLen = sParameterTypes != null ? sParameterTypes.length : 0; | 3313 sParametersLen = sParameterTypes != null ? sParameterTypes.length : 0; |
(...skipping 24 matching lines...) Expand all Loading... |
3358 } | 3338 } |
3359 for (tPos = 0; tPos < tOptionalParametersLen; ++sPos, ++tPos) { | 3339 for (tPos = 0; tPos < tOptionalParametersLen; ++sPos, ++tPos) { |
3360 t1 = sOptionalParameterTypes[sPos]; | 3340 t1 = sOptionalParameterTypes[sPos]; |
3361 t2 = tOptionalParameterTypes[tPos]; | 3341 t2 = tOptionalParameterTypes[tPos]; |
3362 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) | 3342 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) |
3363 return false; | 3343 return false; |
3364 } | 3344 } |
3365 } | 3345 } |
3366 return H.areAssignableMaps(s.named, t.named); | 3346 return H.areAssignableMaps(s.named, t.named); |
3367 }, | 3347 }, |
3368 invokeOn: function($function, receiver, $arguments) { | |
3369 return $function.apply(receiver, $arguments); | |
3370 }, | |
3371 toStringForNativeObject: function(obj) { | 3348 toStringForNativeObject: function(obj) { |
3372 var t1 = $.getTagFunction; | 3349 var t1 = $.getTagFunction; |
3373 return "Instance of " + (t1 == null ? "<Unknown>" : t1.call$1(obj)); | 3350 return "Instance of " + (t1 == null ? "<Unknown>" : t1.call$1(obj)); |
3374 }, | 3351 }, |
3375 hashCodeForNativeObject: function(object) { | 3352 hashCodeForNativeObject: function(object) { |
3376 return H.Primitives_objectHashCode(object); | 3353 return H.Primitives_objectHashCode(object); |
3377 }, | 3354 }, |
3378 defineProperty: function(obj, property, value) { | 3355 defineProperty: function(obj, property, value) { |
3379 Object.defineProperty(obj, property, {value: value, enumerable: false, wri
table: true, configurable: true}); | 3356 Object.defineProperty(obj, property, {value: value, enumerable: false, wri
table: true, configurable: true}); |
3380 }, | 3357 }, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3508 getTag = hooks.getTag; | 3485 getTag = hooks.getTag; |
3509 getUnknownTag = hooks.getUnknownTag; | 3486 getUnknownTag = hooks.getUnknownTag; |
3510 prototypeForTag = hooks.prototypeForTag; | 3487 prototypeForTag = hooks.prototypeForTag; |
3511 $.getTagFunction = new H.initHooks_closure(getTag); | 3488 $.getTagFunction = new H.initHooks_closure(getTag); |
3512 $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag); | 3489 $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag); |
3513 $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag); | 3490 $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag); |
3514 }, | 3491 }, |
3515 applyHooksTransformer: function(transformer, hooks) { | 3492 applyHooksTransformer: function(transformer, hooks) { |
3516 return transformer(hooks) || hooks; | 3493 return transformer(hooks) || hooks; |
3517 }, | 3494 }, |
3518 allMatchesInStringUnchecked: function(pattern, string, startIndex) { | |
3519 var result, $length, patternLength, position, endIndex; | |
3520 result = H.setRuntimeTypeInfo([], [P.Match]); | |
3521 $length = J.get$length$asx(string); | |
3522 patternLength = pattern.length; | |
3523 for (; true;) { | |
3524 position = string.indexOf(pattern, startIndex); | |
3525 if (position === -1) | |
3526 break; | |
3527 result.push(new H.StringMatch(position, string, pattern)); | |
3528 endIndex = position + patternLength; | |
3529 if (endIndex === $length) | |
3530 break; | |
3531 else | |
3532 startIndex = position === endIndex ? startIndex + 1 : endIndex; | |
3533 } | |
3534 return result; | |
3535 }, | |
3536 stringContainsUnchecked: function(receiver, other, startIndex) { | 3495 stringContainsUnchecked: function(receiver, other, startIndex) { |
3537 var t1; | 3496 var t1; |
3538 if (typeof other === "string") | 3497 if (typeof other === "string") |
3539 return receiver.indexOf(other, startIndex) >= 0; | 3498 return receiver.indexOf(other, startIndex) >= 0; |
3540 else { | 3499 else { |
3541 t1 = J.getInterceptor(other); | 3500 t1 = J.getInterceptor(other); |
3542 if (!!t1.$isJSSyntaxRegExp) { | 3501 if (!!t1.$isJSSyntaxRegExp) { |
3543 t1 = C.JSString_methods.substring$1(receiver, startIndex); | 3502 t1 = C.JSString_methods.substring$1(receiver, startIndex); |
3544 return other._nativeRegExp.test(H.checkString(t1)); | 3503 return other._nativeRegExp.test(H.checkString(t1)); |
3545 } else | 3504 } else { |
3546 return J.get$isNotEmpty$asx(t1.allMatches$1(other, C.JSString_methods.
substring$1(receiver, startIndex))); | 3505 t1 = t1.allMatches$1(other, C.JSString_methods.substring$1(receiver, s
tartIndex)); |
| 3506 return !t1.get$isEmpty(t1); |
| 3507 } |
3547 } | 3508 } |
3548 }, | 3509 }, |
3549 stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) { | 3510 stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) { |
3550 var match, t1, start, t2; | 3511 var match, t1, start, t2; |
3551 match = regexp._execGlobal$2(receiver, startIndex); | 3512 match = regexp._execGlobal$2(receiver, startIndex); |
3552 if (match == null) | 3513 if (match == null) |
3553 return receiver; | 3514 return receiver; |
3554 t1 = match._match; | 3515 t1 = match._match; |
3555 start = t1.index; | 3516 start = t1.index; |
3556 t2 = t1.index; | 3517 t2 = t1.index; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3592 index = receiver.indexOf(pattern, startIndex); | 3553 index = receiver.indexOf(pattern, startIndex); |
3593 if (index < 0) | 3554 if (index < 0) |
3594 return receiver; | 3555 return receiver; |
3595 return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.le
ngth, replacement); | 3556 return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.le
ngth, replacement); |
3596 } | 3557 } |
3597 t1 = J.getInterceptor(pattern); | 3558 t1 = J.getInterceptor(pattern); |
3598 if (!!t1.$isJSSyntaxRegExp) | 3559 if (!!t1.$isJSSyntaxRegExp) |
3599 return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, replac
ement.replace(/\$/g, "$$$$")) : H.stringReplaceFirstRE(receiver, pattern, replac
ement, startIndex); | 3560 return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, replac
ement.replace(/\$/g, "$$$$")) : H.stringReplaceFirstRE(receiver, pattern, replac
ement, startIndex); |
3600 if (pattern == null) | 3561 if (pattern == null) |
3601 H.throwExpression(H.argumentErrorValue(pattern)); | 3562 H.throwExpression(H.argumentErrorValue(pattern)); |
3602 matches = J.get$iterator$ax(t1.allMatches$2(pattern, receiver, startIndex)
); | 3563 t1 = t1.allMatches$2(pattern, receiver, startIndex); |
| 3564 matches = t1.get$iterator(t1); |
3603 if (!matches.moveNext$0()) | 3565 if (!matches.moveNext$0()) |
3604 return receiver; | 3566 return receiver; |
3605 match = matches.get$current(); | 3567 match = matches.get$current(); |
3606 return C.JSString_methods.replaceRange$3(receiver, J.get$start$x(match), m
atch.get$end(), replacement); | 3568 return C.JSString_methods.replaceRange$3(receiver, match.get$start(match),
match.get$end(), replacement); |
3607 }, | 3569 }, |
3608 stringReplaceRangeUnchecked: function(receiver, start, end, replacement) { | 3570 stringReplaceRangeUnchecked: function(receiver, start, end, replacement) { |
3609 var prefix, suffix; | 3571 var prefix, suffix; |
3610 prefix = receiver.substring(0, start); | 3572 prefix = receiver.substring(0, start); |
3611 suffix = receiver.substring(end); | 3573 suffix = receiver.substring(end); |
3612 return prefix + replacement + suffix; | 3574 return prefix + replacement + suffix; |
3613 }, | 3575 }, |
3614 ConstantMapView: { | 3576 ConstantMapView: { |
3615 "^": "UnmodifiableMapView;_collection$_map", | 3577 "^": "UnmodifiableMapView;_map", |
3616 $asUnmodifiableMapView: Isolate.functionThatReturnsNull, | 3578 $asUnmodifiableMapView: Isolate.functionThatReturnsNull, |
3617 $asMap: Isolate.functionThatReturnsNull, | 3579 $asMap: Isolate.functionThatReturnsNull, |
3618 $isMap: 1 | 3580 $isMap: 1 |
3619 }, | 3581 }, |
3620 ConstantMap: { | 3582 ConstantMap: { |
3621 "^": "Object;", | 3583 "^": "Object;", |
3622 get$isEmpty: function(_) { | 3584 get$isEmpty: function(_) { |
3623 return J.$eq$(this.get$length(this), 0); | 3585 return J.$eq$(this.get$length(this), 0); |
3624 }, | 3586 }, |
3625 get$isNotEmpty: function(_) { | 3587 get$isNotEmpty: function(_) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3671 t1 = this._arguments; | 3633 t1 = this._arguments; |
3672 argumentCount = t1.length - this._namedArgumentNames.length; | 3634 argumentCount = t1.length - this._namedArgumentNames.length; |
3673 if (argumentCount === 0) | 3635 if (argumentCount === 0) |
3674 return C.List_empty0; | 3636 return C.List_empty0; |
3675 list = []; | 3637 list = []; |
3676 for (index = 0; index < argumentCount; ++index) { | 3638 for (index = 0; index < argumentCount; ++index) { |
3677 if (index >= t1.length) | 3639 if (index >= t1.length) |
3678 return H.ioore(t1, index); | 3640 return H.ioore(t1, index); |
3679 list.push(t1[index]); | 3641 list.push(t1[index]); |
3680 } | 3642 } |
3681 list.fixed$length = Array; | 3643 return J.JSArray_markUnmodifiableList(list); |
3682 list.immutable$list = Array; | |
3683 return list; | |
3684 }, | 3644 }, |
3685 get$namedArguments: function() { | 3645 get$namedArguments: function() { |
3686 var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, t3, t4
; | 3646 var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, t3, t4
; |
3687 if (this._kind !== 0) | 3647 if (this._kind !== 0) |
3688 return C.Map_empty; | 3648 return C.Map_empty; |
3689 t1 = this._namedArgumentNames; | 3649 t1 = this._namedArgumentNames; |
3690 namedArgumentCount = t1.length; | 3650 namedArgumentCount = t1.length; |
3691 t2 = this._arguments; | 3651 t2 = this._arguments; |
3692 namedArgumentsStartIndex = t2.length - namedArgumentCount; | 3652 namedArgumentsStartIndex = t2.length - namedArgumentCount; |
3693 if (namedArgumentCount === 0) | 3653 if (namedArgumentCount === 0) |
3694 return C.Map_empty; | 3654 return C.Map_empty; |
3695 map = P.LinkedHashMap_LinkedHashMap(null, null, null, P.Symbol, null); | 3655 map = H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, nu
ll, null, 0), [P.Symbol, null]); |
3696 for (i = 0; i < namedArgumentCount; ++i) { | 3656 for (i = 0; i < namedArgumentCount; ++i) { |
3697 if (i >= t1.length) | 3657 if (i >= t1.length) |
3698 return H.ioore(t1, i); | 3658 return H.ioore(t1, i); |
3699 t3 = t1[i]; | 3659 t3 = t1[i]; |
3700 t4 = namedArgumentsStartIndex + i; | 3660 t4 = namedArgumentsStartIndex + i; |
3701 if (t4 < 0 || t4 >= t2.length) | 3661 if (t4 < 0 || t4 >= t2.length) |
3702 return H.ioore(t2, t4); | 3662 return H.ioore(t2, t4); |
3703 map.$indexSet(0, new H.Symbol0(t3), t2[t4]); | 3663 map.$indexSet(0, new H.Symbol0(t3), t2[t4]); |
3704 } | 3664 } |
3705 return H.setRuntimeTypeInfo(new H.ConstantMapView(map), [P.Symbol, null]
); | 3665 return H.setRuntimeTypeInfo(new H.ConstantMapView(map), [P.Symbol, null]
); |
(...skipping 15 matching lines...) Expand all Loading... |
3721 if (data == null) | 3681 if (data == null) |
3722 return; | 3682 return; |
3723 data.fixed$length = Array; | 3683 data.fixed$length = Array; |
3724 data = data; | 3684 data = data; |
3725 requiredParametersInfo = data[0]; | 3685 requiredParametersInfo = data[0]; |
3726 optionalParametersInfo = data[1]; | 3686 optionalParametersInfo = data[1]; |
3727 return new H.ReflectionInfo(jsFunction, data, (requiredParametersInfo
& 1) === 1, requiredParametersInfo >> 1, optionalParametersInfo >> 1, (optionalP
arametersInfo & 1) === 1, data[2], null); | 3687 return new H.ReflectionInfo(jsFunction, data, (requiredParametersInfo
& 1) === 1, requiredParametersInfo >> 1, optionalParametersInfo >> 1, (optionalP
arametersInfo & 1) === 1, data[2], null); |
3728 }} | 3688 }} |
3729 }, | 3689 }, |
3730 Primitives_functionNoSuchMethod_closure: { | 3690 Primitives_functionNoSuchMethod_closure: { |
3731 "^": "Closure:30;__js_helper$_box_0,_captured_arguments_1,_captured_namedA
rgumentList_2", | 3691 "^": "Closure:42;_box_0,$arguments,namedArgumentList", |
3732 call$2: function($name, argument) { | 3692 call$2: function($name, argument) { |
3733 var t1 = this.__js_helper$_box_0; | 3693 var t1 = this._box_0; |
3734 t1._captured_names_1 = t1._captured_names_1 + "$" + H.S($name); | 3694 t1.names = t1.names + "$" + H.S($name); |
3735 this._captured_namedArgumentList_2.push($name); | 3695 this.namedArgumentList.push($name); |
3736 this._captured_arguments_1.push(argument); | 3696 this.$arguments.push(argument); |
3737 ++t1._captured_argumentCount_0; | 3697 ++t1.argumentCount; |
3738 } | 3698 } |
3739 }, | 3699 }, |
3740 TypeErrorDecoder: { | 3700 TypeErrorDecoder: { |
3741 "^": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,_receiver", | 3701 "^": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,_receiver", |
3742 matchTypeError$1: function(message) { | 3702 matchTypeError$1: function(message) { |
3743 var match, result, t1; | 3703 var match, result, t1; |
3744 match = new RegExp(this._pattern).exec(message); | 3704 match = new RegExp(this._pattern).exec(message); |
3745 if (match == null) | 3705 if (match == null) |
3746 return; | 3706 return; |
3747 result = Object.create(null); | 3707 result = Object.create(null); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3818 var t1, t2; | 3778 var t1, t2; |
3819 t1 = match == null; | 3779 t1 = match == null; |
3820 t2 = t1 ? null : match.method; | 3780 t2 = t1 ? null : match.method; |
3821 return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.recei
ver); | 3781 return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.recei
ver); |
3822 }} | 3782 }} |
3823 }, | 3783 }, |
3824 UnknownJsTypeError: { | 3784 UnknownJsTypeError: { |
3825 "^": "Error;_message", | 3785 "^": "Error;_message", |
3826 toString$0: function(_) { | 3786 toString$0: function(_) { |
3827 var t1 = this._message; | 3787 var t1 = this._message; |
3828 return C.JSString_methods.get$isEmpty(t1) ? "Error" : "Error: " + t1; | 3788 return t1.length === 0 ? "Error" : "Error: " + t1; |
3829 } | 3789 } |
3830 }, | 3790 }, |
| 3791 ExceptionAndStackTrace: { |
| 3792 "^": "Object;dartException,stackTrace<" |
| 3793 }, |
3831 unwrapException_saveStackTrace: { | 3794 unwrapException_saveStackTrace: { |
3832 "^": "Closure:0;_captured_ex_0", | 3795 "^": "Closure:0;ex", |
3833 call$1: function(error) { | 3796 call$1: function(error) { |
3834 if (!!J.getInterceptor(error).$isError) | 3797 if (!!J.getInterceptor(error).$isError) |
3835 if (error.$thrownJsError == null) | 3798 if (error.$thrownJsError == null) |
3836 error.$thrownJsError = this._captured_ex_0; | 3799 error.$thrownJsError = this.ex; |
3837 return error; | 3800 return error; |
3838 } | 3801 } |
3839 }, | 3802 }, |
3840 _StackTrace: { | 3803 _StackTrace: { |
3841 "^": "Object;_exception,_trace", | 3804 "^": "Object;_exception,_trace", |
3842 toString$0: function(_) { | 3805 toString$0: function(_) { |
3843 var t1, trace; | 3806 var t1, trace; |
3844 t1 = this._trace; | 3807 t1 = this._trace; |
3845 if (t1 != null) | 3808 if (t1 != null) |
3846 return t1; | 3809 return t1; |
3847 t1 = this._exception; | 3810 t1 = this._exception; |
3848 trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; | 3811 trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; |
3849 t1 = trace == null ? "" : trace; | 3812 t1 = trace == null ? "" : trace; |
3850 this._trace = t1; | 3813 this._trace = t1; |
3851 return t1; | 3814 return t1; |
3852 } | 3815 } |
3853 }, | 3816 }, |
3854 invokeClosure_closure: { | 3817 invokeClosure_closure: { |
3855 "^": "Closure:1;_captured_closure_0", | 3818 "^": "Closure:1;closure", |
3856 call$0: function() { | 3819 call$0: function() { |
3857 return this._captured_closure_0.call$0(); | 3820 return this.closure.call$0(); |
3858 } | 3821 } |
3859 }, | 3822 }, |
3860 invokeClosure_closure0: { | 3823 invokeClosure_closure0: { |
3861 "^": "Closure:1;_captured_closure_1,_captured_arg1_2", | 3824 "^": "Closure:1;closure,arg1", |
3862 call$0: function() { | 3825 call$0: function() { |
3863 return this._captured_closure_1.call$1(this._captured_arg1_2); | 3826 return this.closure.call$1(this.arg1); |
3864 } | 3827 } |
3865 }, | 3828 }, |
3866 invokeClosure_closure1: { | 3829 invokeClosure_closure1: { |
3867 "^": "Closure:1;_captured_closure_3,_captured_arg1_4,_captured_arg2_5", | 3830 "^": "Closure:1;closure,arg1,arg2", |
3868 call$0: function() { | 3831 call$0: function() { |
3869 return this._captured_closure_3.call$2(this._captured_arg1_4, this._capt
ured_arg2_5); | 3832 return this.closure.call$2(this.arg1, this.arg2); |
3870 } | 3833 } |
3871 }, | 3834 }, |
3872 invokeClosure_closure2: { | 3835 invokeClosure_closure2: { |
3873 "^": "Closure:1;_captured_closure_6,_captured_arg1_7,_captured_arg2_8,_cap
tured_arg3_9", | 3836 "^": "Closure:1;closure,arg1,arg2,arg3", |
3874 call$0: function() { | 3837 call$0: function() { |
3875 return this._captured_closure_6.call$3(this._captured_arg1_7, this._capt
ured_arg2_8, this._captured_arg3_9); | 3838 return this.closure.call$3(this.arg1, this.arg2, this.arg3); |
3876 } | 3839 } |
3877 }, | 3840 }, |
3878 invokeClosure_closure3: { | 3841 invokeClosure_closure3: { |
3879 "^": "Closure:1;_captured_closure_10,_captured_arg1_11,_captured_arg2_12,_
captured_arg3_13,_captured_arg4_14", | 3842 "^": "Closure:1;closure,arg1,arg2,arg3,arg4", |
3880 call$0: function() { | 3843 call$0: function() { |
3881 return this._captured_closure_10.call$4(this._captured_arg1_11, this._ca
ptured_arg2_12, this._captured_arg3_13, this._captured_arg4_14); | 3844 return this.closure.call$4(this.arg1, this.arg2, this.arg3, this.arg4); |
3882 } | 3845 } |
3883 }, | 3846 }, |
3884 Closure: { | 3847 Closure: { |
3885 "^": "Object;", | 3848 "^": "Object;", |
3886 toString$0: function(_) { | 3849 toString$0: function(_) { |
3887 return "Closure '" + H.Primitives_objectTypeName(this) + "'"; | 3850 return "Closure '" + H.Primitives_objectTypeName(this) + "'"; |
3888 }, | 3851 }, |
3889 get$$call: function() { | 3852 get$$call: function() { |
3890 return this; | 3853 return this; |
3891 }, | 3854 }, |
3892 $isFunction: 1, | 3855 $isFunction: 1, |
3893 get$$call: function() { | 3856 get$$call: function() { |
3894 return this; | 3857 return this; |
3895 } | 3858 } |
3896 }, | 3859 }, |
3897 TearOffClosure: { | 3860 TearOffClosure: { |
3898 "^": "Closure;" | 3861 "^": "Closure;" |
3899 }, | 3862 }, |
3900 StaticClosure: { | 3863 StaticClosure: { |
3901 "^": "TearOffClosure;", | 3864 "^": "TearOffClosure;", |
3902 toString$0: function(_) { | 3865 toString$0: function(_) { |
3903 var $name = this.$name; | 3866 var $name = this.$static_name; |
3904 if ($name == null) | 3867 if ($name == null) |
3905 return "Closure of unknown static method"; | 3868 return "Closure of unknown static method"; |
3906 return "Closure '" + $name + "'"; | 3869 return "Closure '" + $name + "'"; |
3907 } | 3870 } |
3908 }, | 3871 }, |
3909 BoundClosure: { | 3872 BoundClosure: { |
3910 "^": "TearOffClosure;_self,__js_helper$_target,_receiver,_name", | 3873 "^": "TearOffClosure;_self,__js_helper$_target,_receiver,_name", |
3911 $eq: function(_, other) { | 3874 $eq: function(_, other) { |
3912 if (other == null) | 3875 if (other == null) |
3913 return false; | 3876 return false; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3983 _extractFunctionTypeObjectFrom$1: function(o) { | 3946 _extractFunctionTypeObjectFrom$1: function(o) { |
3984 var interceptor = J.getInterceptor(o); | 3947 var interceptor = J.getInterceptor(o); |
3985 return "$signature" in interceptor ? interceptor.$signature() : null; | 3948 return "$signature" in interceptor ? interceptor.$signature() : null; |
3986 }, | 3949 }, |
3987 toRti$0: function() { | 3950 toRti$0: function() { |
3988 var result, t1, t2, namedRti, keys, i, $name; | 3951 var result, t1, t2, namedRti, keys, i, $name; |
3989 result = {func: "dynafunc"}; | 3952 result = {func: "dynafunc"}; |
3990 t1 = this.returnType; | 3953 t1 = this.returnType; |
3991 t2 = J.getInterceptor(t1); | 3954 t2 = J.getInterceptor(t1); |
3992 if (!!t2.$isVoidRuntimeType) | 3955 if (!!t2.$isVoidRuntimeType) |
3993 result.void = true; | 3956 result.v = true; |
3994 else if (!t2.$isDynamicRuntimeType) | 3957 else if (!t2.$isDynamicRuntimeType) |
3995 result.ret = t1.toRti$0(); | 3958 result.ret = t1.toRti$0(); |
3996 t1 = this.parameterTypes; | 3959 t1 = this.parameterTypes; |
3997 if (t1 != null && t1.length !== 0) | 3960 if (t1 != null && t1.length !== 0) |
3998 result.args = H.RuntimeFunctionType_listToRti(t1); | 3961 result.args = H.RuntimeFunctionType_listToRti(t1); |
3999 t1 = this.optionalParameterTypes; | 3962 t1 = this.optionalParameterTypes; |
4000 if (t1 != null && t1.length !== 0) | 3963 if (t1 != null && t1.length !== 0) |
4001 result.opt = H.RuntimeFunctionType_listToRti(t1); | 3964 result.opt = H.RuntimeFunctionType_listToRti(t1); |
4002 t1 = this.namedParameters; | 3965 t1 = this.namedParameters; |
4003 if (t1 != null) { | 3966 if (t1 != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4062 }, | 4025 }, |
4063 DynamicRuntimeType: { | 4026 DynamicRuntimeType: { |
4064 "^": "RuntimeType;", | 4027 "^": "RuntimeType;", |
4065 toString$0: function(_) { | 4028 toString$0: function(_) { |
4066 return "dynamic"; | 4029 return "dynamic"; |
4067 }, | 4030 }, |
4068 toRti$0: function() { | 4031 toRti$0: function() { |
4069 return; | 4032 return; |
4070 } | 4033 } |
4071 }, | 4034 }, |
4072 ExceptionAndStackTrace: { | |
4073 "^": "Object;dartException,stackTrace<" | |
4074 }, | |
4075 asyncHelper_closure: { | |
4076 "^": "Closure:4;_captured_bodyFunctionOrErrorCode_0", | |
4077 call$2: [function(error, stackTrace) { | |
4078 H._wrapJsFunctionForAsync(this._captured_bodyFunctionOrErrorCode_0, 1).c
all$1(new H.ExceptionAndStackTrace(error, stackTrace)); | |
4079 }, null, null, 4, 0, null, 3, 4, "call"] | |
4080 }, | |
4081 _wrapJsFunctionForAsync_closure: { | |
4082 "^": "Closure:0;_captured_errorCode_0,_captured_protected_1", | |
4083 call$1: [function(result) { | |
4084 this._captured_protected_1(this._captured_errorCode_0, result); | |
4085 }, null, null, 2, 0, null, 37, "call"] | |
4086 }, | |
4087 JsLinkedHashMap: { | 4035 JsLinkedHashMap: { |
4088 "^": "Object;__js_helper$_length,_strings,_nums,_rest,_first,_last,_modifi
cations", | 4036 "^": "Object;__js_helper$_length,_strings,_nums,_rest,_first,_last,_modifi
cations", |
4089 get$length: function(_) { | 4037 get$length: function(_) { |
4090 return this.__js_helper$_length; | 4038 return this.__js_helper$_length; |
4091 }, | 4039 }, |
4092 get$isEmpty: function(_) { | 4040 get$isEmpty: function(_) { |
4093 return this.__js_helper$_length === 0; | 4041 return this.__js_helper$_length === 0; |
4094 }, | 4042 }, |
4095 get$isNotEmpty: function(_) { | 4043 get$isNotEmpty: function(_) { |
4096 return !this.get$isEmpty(this); | 4044 return !this.get$isEmpty(this); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4144 rest = this._rest; | 4092 rest = this._rest; |
4145 if (rest == null) | 4093 if (rest == null) |
4146 return; | 4094 return; |
4147 bucket = this._getTableEntry$2(rest, this.internalComputeHashCode$1(key)
); | 4095 bucket = this._getTableEntry$2(rest, this.internalComputeHashCode$1(key)
); |
4148 index = this.internalFindBucketIndex$2(bucket, key); | 4096 index = this.internalFindBucketIndex$2(bucket, key); |
4149 if (index < 0) | 4097 if (index < 0) |
4150 return; | 4098 return; |
4151 return bucket[index].get$hashMapCellValue(); | 4099 return bucket[index].get$hashMapCellValue(); |
4152 }, | 4100 }, |
4153 $indexSet: function(_, key, value) { | 4101 $indexSet: function(_, key, value) { |
4154 var strings, nums; | 4102 var strings, nums, rest, hash, bucket, index; |
4155 if (typeof key === "string") { | 4103 if (typeof key === "string") { |
4156 strings = this._strings; | 4104 strings = this._strings; |
4157 if (strings == null) { | 4105 if (strings == null) { |
4158 strings = this._newHashTable$0(); | 4106 strings = this._newHashTable$0(); |
4159 this._strings = strings; | 4107 this._strings = strings; |
4160 } | 4108 } |
4161 this._addHashTableEntry$3(strings, key, value); | 4109 this._addHashTableEntry$3(strings, key, value); |
4162 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | 4110 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
4163 nums = this._nums; | 4111 nums = this._nums; |
4164 if (nums == null) { | 4112 if (nums == null) { |
4165 nums = this._newHashTable$0(); | 4113 nums = this._newHashTable$0(); |
4166 this._nums = nums; | 4114 this._nums = nums; |
4167 } | 4115 } |
4168 this._addHashTableEntry$3(nums, key, value); | 4116 this._addHashTableEntry$3(nums, key, value); |
4169 } else | 4117 } else { |
4170 this.internalSet$2(key, value); | 4118 rest = this._rest; |
4171 }, | 4119 if (rest == null) { |
4172 internalSet$2: function(key, value) { | 4120 rest = this._newHashTable$0(); |
4173 var rest, hash, bucket, index; | 4121 this._rest = rest; |
4174 rest = this._rest; | 4122 } |
4175 if (rest == null) { | 4123 hash = this.internalComputeHashCode$1(key); |
4176 rest = this._newHashTable$0(); | 4124 bucket = this._getTableEntry$2(rest, hash); |
4177 this._rest = rest; | 4125 if (bucket == null) |
4178 } | 4126 this._setTableEntry$3(rest, hash, [this._newLinkedCell$2(key, value)
]); |
4179 hash = this.internalComputeHashCode$1(key); | 4127 else { |
4180 bucket = this._getTableEntry$2(rest, hash); | 4128 index = this.internalFindBucketIndex$2(bucket, key); |
4181 if (bucket == null) | 4129 if (index >= 0) |
4182 this._setTableEntry$3(rest, hash, [this._newLinkedCell$2(key, value)])
; | 4130 bucket[index].set$hashMapCellValue(value); |
4183 else { | 4131 else |
4184 index = this.internalFindBucketIndex$2(bucket, key); | 4132 bucket.push(this._newLinkedCell$2(key, value)); |
4185 if (index >= 0) | 4133 } |
4186 bucket[index].set$hashMapCellValue(value); | |
4187 else | |
4188 bucket.push(this._newLinkedCell$2(key, value)); | |
4189 } | 4134 } |
4190 }, | 4135 }, |
4191 remove$1: function(_, key) { | 4136 remove$1: function(_, key) { |
4192 if (typeof key === "string") | 4137 if (typeof key === "string") |
4193 return this._removeHashTableEntry$2(this._strings, key); | 4138 return this._removeHashTableEntry$2(this._strings, key); |
4194 else if (typeof key === "number" && (key & 0x3ffffff) === key) | 4139 else if (typeof key === "number" && (key & 0x3ffffff) === key) |
4195 return this._removeHashTableEntry$2(this._nums, key); | 4140 return this._removeHashTableEntry$2(this._nums, key); |
4196 else | 4141 else |
4197 return this.internalRemove$1(key); | 4142 return this.internalRemove$1(key); |
4198 }, | 4143 }, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4308 _containsTableEntry$2: function(table, key) { | 4253 _containsTableEntry$2: function(table, key) { |
4309 return this._getTableEntry$2(table, key) != null; | 4254 return this._getTableEntry$2(table, key) != null; |
4310 }, | 4255 }, |
4311 _newHashTable$0: function() { | 4256 _newHashTable$0: function() { |
4312 var table = Object.create(null); | 4257 var table = Object.create(null); |
4313 this._setTableEntry$3(table, "<non-identifier-key>", table); | 4258 this._setTableEntry$3(table, "<non-identifier-key>", table); |
4314 this._deleteTableEntry$2(table, "<non-identifier-key>"); | 4259 this._deleteTableEntry$2(table, "<non-identifier-key>"); |
4315 return table; | 4260 return table; |
4316 }, | 4261 }, |
4317 $isInternalMap: 1, | 4262 $isInternalMap: 1, |
4318 $isMap: 1 | 4263 $isMap: 1, |
| 4264 static: {JsLinkedHashMap_JsLinkedHashMap$es6: function($K, $V) { |
| 4265 return H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null,
null, null, 0), [$K, $V]); |
| 4266 }} |
4319 }, | 4267 }, |
4320 JsLinkedHashMap_values_closure: { | 4268 JsLinkedHashMap_values_closure: { |
4321 "^": "Closure:0;__js_helper$_captured_this_0", | 4269 "^": "Closure:0;$this", |
4322 call$1: [function(each) { | 4270 call$1: [function(each) { |
4323 return this.__js_helper$_captured_this_0.$index(0, each); | 4271 return this.$this.$index(0, each); |
4324 }, null, null, 2, 0, null, 32, "call"] | 4272 }, null, null, 2, 0, null, 22, "call"] |
4325 }, | 4273 }, |
4326 LinkedHashMapCell: { | 4274 LinkedHashMapCell: { |
4327 "^": "Object;hashMapCellKey<,hashMapCellValue@,_next<,_previous<" | 4275 "^": "Object;hashMapCellKey<,hashMapCellValue@,_next<,_previous<" |
4328 }, | 4276 }, |
4329 LinkedHashMapKeyIterable: { | 4277 LinkedHashMapKeyIterable: { |
4330 "^": "Iterable;__js_helper$_map", | 4278 "^": "Iterable;__js_helper$_map", |
4331 get$length: function(_) { | 4279 get$length: function(_) { |
4332 return this.__js_helper$_map.__js_helper$_length; | 4280 return this.__js_helper$_map.__js_helper$_length; |
4333 }, | 4281 }, |
4334 get$isEmpty: function(_) { | 4282 get$isEmpty: function(_) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4374 return false; | 4322 return false; |
4375 } else { | 4323 } else { |
4376 this.__js_helper$_current = t1.hashMapCellKey; | 4324 this.__js_helper$_current = t1.hashMapCellKey; |
4377 this._cell = t1._next; | 4325 this._cell = t1._next; |
4378 return true; | 4326 return true; |
4379 } | 4327 } |
4380 } | 4328 } |
4381 } | 4329 } |
4382 }, | 4330 }, |
4383 initHooks_closure: { | 4331 initHooks_closure: { |
4384 "^": "Closure:0;_captured_getTag_0", | 4332 "^": "Closure:0;getTag", |
4385 call$1: function(o) { | 4333 call$1: function(o) { |
4386 return this._captured_getTag_0(o); | 4334 return this.getTag(o); |
4387 } | 4335 } |
4388 }, | 4336 }, |
4389 initHooks_closure0: { | 4337 initHooks_closure0: { |
4390 "^": "Closure:39;_captured_getUnknownTag_1", | 4338 "^": "Closure:29;getUnknownTag", |
4391 call$2: function(o, tag) { | 4339 call$2: function(o, tag) { |
4392 return this._captured_getUnknownTag_1(o, tag); | 4340 return this.getUnknownTag(o, tag); |
4393 } | 4341 } |
4394 }, | 4342 }, |
4395 initHooks_closure1: { | 4343 initHooks_closure1: { |
4396 "^": "Closure:41;_captured_prototypeForTag_2", | 4344 "^": "Closure:37;prototypeForTag", |
4397 call$1: function(tag) { | 4345 call$1: function(tag) { |
4398 return this._captured_prototypeForTag_2(tag); | 4346 return this.prototypeForTag(tag); |
4399 } | 4347 } |
4400 }, | 4348 }, |
4401 JSSyntaxRegExp: { | 4349 JSSyntaxRegExp: { |
4402 "^": "Object;pattern,_nativeRegExp,_nativeGlobalRegExp,_nativeAnchoredRegE
xp", | 4350 "^": "Object;pattern,_nativeRegExp,_nativeGlobalRegExp,_nativeAnchoredRegE
xp", |
4403 toString$0: function(_) { | 4351 toString$0: function(_) { |
4404 return "RegExp/" + this.pattern + "/"; | 4352 return "RegExp/" + this.pattern + "/"; |
4405 }, | 4353 }, |
4406 get$_nativeGlobalVersion: function() { | 4354 get$_nativeGlobalVersion: function() { |
4407 var t1 = this._nativeGlobalRegExp; | 4355 var t1 = this._nativeGlobalRegExp; |
4408 if (t1 != null) | 4356 if (t1 != null) |
4409 return t1; | 4357 return t1; |
4410 t1 = this._nativeRegExp; | 4358 t1 = this._nativeRegExp; |
4411 t1 = H.JSSyntaxRegExp_makeNative(this.pattern, t1.multiline, !t1.ignoreC
ase, true); | 4359 t1 = H.JSSyntaxRegExp_makeNative(this.pattern, t1.multiline, !t1.ignoreC
ase, true); |
4412 this._nativeGlobalRegExp = t1; | 4360 this._nativeGlobalRegExp = t1; |
4413 return t1; | 4361 return t1; |
4414 }, | 4362 }, |
4415 get$_nativeAnchoredVersion: function() { | 4363 get$_nativeAnchoredVersion: function() { |
4416 var t1 = this._nativeAnchoredRegExp; | 4364 var t1 = this._nativeAnchoredRegExp; |
4417 if (t1 != null) | 4365 if (t1 != null) |
4418 return t1; | 4366 return t1; |
4419 t1 = this._nativeRegExp; | 4367 t1 = this._nativeRegExp; |
4420 t1 = H.JSSyntaxRegExp_makeNative(this.pattern + "|()", t1.multiline, !t1
.ignoreCase, true); | 4368 t1 = H.JSSyntaxRegExp_makeNative(this.pattern + "|()", t1.multiline, !t1
.ignoreCase, true); |
4421 this._nativeAnchoredRegExp = t1; | 4369 this._nativeAnchoredRegExp = t1; |
4422 return t1; | 4370 return t1; |
4423 }, | 4371 }, |
4424 firstMatch$1: function(string) { | 4372 firstMatch$1: function(string) { |
4425 var m = this._nativeRegExp.exec(H.checkString(string)); | 4373 var m = this._nativeRegExp.exec(H.checkString(string)); |
4426 if (m == null) | 4374 if (m == null) |
4427 return; | 4375 return; |
4428 return H._MatchImplementation$(this, m); | 4376 return new H._MatchImplementation(this, m); |
4429 }, | 4377 }, |
4430 allMatches$2: function(_, string, start) { | 4378 allMatches$2: function(_, string, start) { |
4431 H.checkString(string); | 4379 H.checkString(string); |
4432 H.checkInt(start); | 4380 H.checkInt(start); |
4433 if (start > string.length) | 4381 if (start > string.length) |
4434 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); | 4382 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); |
4435 return new H._AllMatchesIterable(this, string, start); | 4383 return new H._AllMatchesIterable(this, string, start); |
4436 }, | 4384 }, |
4437 allMatches$1: function($receiver, string) { | 4385 allMatches$1: function($receiver, string) { |
4438 return this.allMatches$2($receiver, string, 0); | 4386 return this.allMatches$2($receiver, string, 0); |
4439 }, | 4387 }, |
4440 _execGlobal$2: function(string, start) { | 4388 _execGlobal$2: function(string, start) { |
4441 var regexp, match; | 4389 var regexp, match; |
4442 regexp = this.get$_nativeGlobalVersion(); | 4390 regexp = this.get$_nativeGlobalVersion(); |
4443 regexp.lastIndex = start; | 4391 regexp.lastIndex = start; |
4444 match = regexp.exec(string); | 4392 match = regexp.exec(string); |
4445 if (match == null) | 4393 if (match == null) |
4446 return; | 4394 return; |
4447 return H._MatchImplementation$(this, match); | 4395 return new H._MatchImplementation(this, match); |
4448 }, | 4396 }, |
4449 _execAnchored$2: function(string, start) { | 4397 _execAnchored$2: function(string, start) { |
4450 var regexp, match, t1, t2; | 4398 var regexp, match, t1, t2; |
4451 regexp = this.get$_nativeAnchoredVersion(); | 4399 regexp = this.get$_nativeAnchoredVersion(); |
4452 regexp.lastIndex = start; | 4400 regexp.lastIndex = start; |
4453 match = regexp.exec(string); | 4401 match = regexp.exec(string); |
4454 if (match == null) | 4402 if (match == null) |
4455 return; | 4403 return; |
4456 t1 = match.length; | 4404 t1 = match.length; |
4457 t2 = t1 - 1; | 4405 t2 = t1 - 1; |
4458 if (t2 < 0) | 4406 if (t2 < 0) |
4459 return H.ioore(match, t2); | 4407 return H.ioore(match, t2); |
4460 if (match[t2] != null) | 4408 if (match[t2] != null) |
4461 return; | 4409 return; |
4462 C.JSArray_methods.set$length(match, t2); | 4410 C.JSArray_methods.set$length(match, t2); |
4463 return H._MatchImplementation$(this, match); | 4411 return new H._MatchImplementation(this, match); |
4464 }, | 4412 }, |
4465 matchAsPrefix$2: function(_, string, start) { | 4413 matchAsPrefix$2: function(_, string, start) { |
4466 var t1 = J.getInterceptor$n(start); | 4414 var t1 = J.getInterceptor$n(start); |
4467 if (t1.$lt(start, 0) || t1.$gt(start, string.length)) | 4415 if (t1.$lt(start, 0) || t1.$gt(start, string.length)) |
4468 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); | 4416 throw H.wrapException(P.RangeError$range(start, 0, string.length, null
, null)); |
4469 return this._execAnchored$2(string, start); | 4417 return this._execAnchored$2(string, start); |
4470 }, | 4418 }, |
4471 $isRegExp: 1, | 4419 $isRegExp: 1, |
4472 static: {JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensit
ive, global) { | 4420 static: {JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensit
ive, global) { |
4473 var m, i, g, regexp; | 4421 var m, i, g, regexp; |
4474 H.checkString(source); | 4422 H.checkString(source); |
4475 m = multiLine ? "m" : ""; | 4423 m = multiLine ? "m" : ""; |
4476 i = caseSensitive ? "" : "i"; | 4424 i = caseSensitive ? "" : "i"; |
4477 g = global ? "g" : ""; | 4425 g = global ? "g" : ""; |
4478 regexp = function() { | 4426 regexp = function(source, modifiers) { |
4479 try { | 4427 try { |
4480 return new RegExp(source, m + i + g); | 4428 return new RegExp(source, modifiers); |
4481 } catch (e) { | 4429 } catch (e) { |
4482 return e; | 4430 return e; |
4483 } | 4431 } |
4484 }(); | 4432 }(source, m + i + g); |
4485 if (regexp instanceof RegExp) | 4433 if (regexp instanceof RegExp) |
4486 return regexp; | 4434 return regexp; |
4487 throw H.wrapException(new P.FormatException("Illegal RegExp pattern ("
+ String(regexp) + ")", source, null)); | 4435 throw H.wrapException(new P.FormatException("Illegal RegExp pattern ("
+ String(regexp) + ")", source, null)); |
4488 }} | 4436 }} |
4489 }, | 4437 }, |
4490 _MatchImplementation: { | 4438 _MatchImplementation: { |
4491 "^": "Object;pattern,_match", | 4439 "^": "Object;pattern,_match", |
4492 get$start: function(_) { | 4440 get$start: function(_) { |
4493 return this._match.index; | 4441 return this._match.index; |
4494 }, | 4442 }, |
4495 get$end: function() { | 4443 get$end: function() { |
4496 var t1, t2; | 4444 var t1, t2; |
4497 t1 = this._match; | 4445 t1 = this._match; |
4498 t2 = t1.index; | 4446 t2 = t1.index; |
4499 if (0 >= t1.length) | 4447 if (0 >= t1.length) |
4500 return H.ioore(t1, 0); | 4448 return H.ioore(t1, 0); |
4501 t1 = J.get$length$asx(t1[0]); | 4449 t1 = J.get$length$asx(t1[0]); |
4502 if (typeof t1 !== "number") | 4450 if (typeof t1 !== "number") |
4503 return H.iae(t1); | 4451 return H.iae(t1); |
4504 return t2 + t1; | 4452 return t2 + t1; |
4505 }, | 4453 }, |
4506 $index: function(_, index) { | 4454 $index: function(_, index) { |
4507 var t1 = this._match; | 4455 var t1 = this._match; |
4508 if (index >>> 0 !== index || index >= t1.length) | 4456 if (index >>> 0 !== index || index >= t1.length) |
4509 return H.ioore(t1, index); | 4457 return H.ioore(t1, index); |
4510 return t1[index]; | 4458 return t1[index]; |
4511 }, | 4459 } |
4512 _MatchImplementation$2: function(pattern, _match) { | |
4513 }, | |
4514 static: {_MatchImplementation$: function(pattern, _match) { | |
4515 var t1 = new H._MatchImplementation(pattern, _match); | |
4516 t1._MatchImplementation$2(pattern, _match); | |
4517 return t1; | |
4518 }} | |
4519 }, | 4460 }, |
4520 _AllMatchesIterable: { | 4461 _AllMatchesIterable: { |
4521 "^": "IterableBase;_re,__js_helper$_string,_start", | 4462 "^": "IterableBase;_re,_string,_start", |
4522 get$iterator: function(_) { | 4463 get$iterator: function(_) { |
4523 return new H._AllMatchesIterator(this._re, this.__js_helper$_string, thi
s._start, null); | 4464 return new H._AllMatchesIterator(this._re, this._string, this._start, nu
ll); |
4524 }, | 4465 }, |
4525 $asIterableBase: function() { | 4466 $asIterableBase: function() { |
4526 return [P.Match]; | 4467 return [P.Match]; |
4527 }, | 4468 }, |
4528 $asIterable: function() { | 4469 $asIterable: function() { |
4529 return [P.Match]; | 4470 return [P.Match]; |
4530 } | 4471 } |
4531 }, | 4472 }, |
4532 _AllMatchesIterator: { | 4473 _AllMatchesIterator: { |
4533 "^": "Object;_regExp,__js_helper$_string,_nextIndex,__js_helper$_current", | 4474 "^": "Object;_regExp,_string,_nextIndex,__js_helper$_current", |
4534 get$current: function() { | 4475 get$current: function() { |
4535 return this.__js_helper$_current; | 4476 return this.__js_helper$_current; |
4536 }, | 4477 }, |
4537 moveNext$0: function() { | 4478 moveNext$0: function() { |
4538 var t1, t2, match, t3, nextIndex; | 4479 var t1, t2, match, t3, nextIndex; |
4539 t1 = this.__js_helper$_string; | 4480 t1 = this._string; |
4540 if (t1 == null) | 4481 if (t1 == null) |
4541 return false; | 4482 return false; |
4542 t2 = this._nextIndex; | 4483 t2 = this._nextIndex; |
4543 if (t2 <= t1.length) { | 4484 if (t2 <= t1.length) { |
4544 match = this._regExp._execGlobal$2(t1, t2); | 4485 match = this._regExp._execGlobal$2(t1, t2); |
4545 if (match != null) { | 4486 if (match != null) { |
4546 this.__js_helper$_current = match; | 4487 this.__js_helper$_current = match; |
4547 t1 = match._match; | 4488 t1 = match._match; |
4548 t2 = t1.index; | 4489 t2 = t1.index; |
4549 if (0 >= t1.length) | 4490 if (0 >= t1.length) |
4550 return H.ioore(t1, 0); | 4491 return H.ioore(t1, 0); |
4551 t3 = J.get$length$asx(t1[0]); | 4492 t3 = J.get$length$asx(t1[0]); |
4552 if (typeof t3 !== "number") | 4493 if (typeof t3 !== "number") |
4553 return H.iae(t3); | 4494 return H.iae(t3); |
4554 nextIndex = t2 + t3; | 4495 nextIndex = t2 + t3; |
4555 this._nextIndex = t1.index === nextIndex ? nextIndex + 1 : nextIndex
; | 4496 this._nextIndex = t1.index === nextIndex ? nextIndex + 1 : nextIndex
; |
4556 return true; | 4497 return true; |
4557 } | 4498 } |
4558 } | 4499 } |
4559 this.__js_helper$_current = null; | 4500 this.__js_helper$_current = null; |
4560 this.__js_helper$_string = null; | 4501 this._string = null; |
4561 return false; | 4502 return false; |
4562 } | 4503 } |
4563 }, | 4504 }, |
4564 StringMatch: { | 4505 StringMatch: { |
4565 "^": "Object;start>,input,pattern", | 4506 "^": "Object;start>,input,pattern", |
4566 get$end: function() { | 4507 get$end: function() { |
4567 return J.$add$ns(this.start, this.pattern.length); | 4508 return J.$add$ns(this.start, this.pattern.length); |
4568 }, | 4509 }, |
4569 $index: function(_, g) { | 4510 $index: function(_, g) { |
4570 if (g !== 0) | 4511 if (g !== 0) |
4571 H.throwExpression(P.RangeError$value(g, null, null)); | 4512 H.throwExpression(P.RangeError$value(g, null, null)); |
4572 return this.pattern; | 4513 return this.pattern; |
4573 } | 4514 } |
| 4515 }, |
| 4516 _StringAllMatchesIterable: { |
| 4517 "^": "Iterable;_input,_pattern,__js_helper$_index", |
| 4518 get$iterator: function(_) { |
| 4519 return new H._StringAllMatchesIterator(this._input, this._pattern, this.
__js_helper$_index, null); |
| 4520 }, |
| 4521 $asIterable: function() { |
| 4522 return [P.Match]; |
| 4523 } |
| 4524 }, |
| 4525 _StringAllMatchesIterator: { |
| 4526 "^": "Object;_input,_pattern,__js_helper$_index,__js_helper$_current", |
| 4527 moveNext$0: function() { |
| 4528 var t1, t2, t3, t4, index, end; |
| 4529 t1 = this._pattern; |
| 4530 t2 = t1.length; |
| 4531 t3 = this._input; |
| 4532 t4 = J.getInterceptor$asx(t3); |
| 4533 if (J.$gt$n(J.$add$ns(this.__js_helper$_index, t2), t4.get$length(t3)))
{ |
| 4534 this.__js_helper$_current = null; |
| 4535 return false; |
| 4536 } |
| 4537 index = t3.indexOf(t1, this.__js_helper$_index); |
| 4538 if (index < 0) { |
| 4539 this.__js_helper$_index = J.$add$ns(t4.get$length(t3), 1); |
| 4540 this.__js_helper$_current = null; |
| 4541 return false; |
| 4542 } |
| 4543 end = index + t2; |
| 4544 this.__js_helper$_current = new H.StringMatch(index, t3, t1); |
| 4545 this.__js_helper$_index = end === this.__js_helper$_index ? end + 1 : en
d; |
| 4546 return true; |
| 4547 }, |
| 4548 get$current: function() { |
| 4549 return this.__js_helper$_current; |
| 4550 } |
| 4551 } |
| 4552 }], ["async.null_stream_sink", "package:async/src/null_stream_sink.dart",, N,
{ |
| 4553 "^": "", |
| 4554 NullStreamSink: { |
| 4555 "^": "Object;done,_null_stream_sink$_closed,_addingStream", |
| 4556 add$1: function(_, data) { |
| 4557 this._checkEventAllowed$0(); |
| 4558 }, |
| 4559 addStream$1: function(stream) { |
| 4560 var future; |
| 4561 this._checkEventAllowed$0(); |
| 4562 this._addingStream = true; |
| 4563 future = stream.listen$1(null).cancel$0(); |
| 4564 if (future == null) { |
| 4565 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null),
[null]); |
| 4566 future._asyncComplete$1(null); |
| 4567 } |
| 4568 return future.whenComplete$1(new N.NullStreamSink_addStream_closure(this
)); |
| 4569 }, |
| 4570 _checkEventAllowed$0: function() { |
| 4571 if (this._null_stream_sink$_closed) |
| 4572 throw H.wrapException(new P.StateError("Cannot add to a closed sink.")
); |
| 4573 if (this._addingStream) |
| 4574 throw H.wrapException(new P.StateError("Cannot add to a sink while add
ing a stream.")); |
| 4575 }, |
| 4576 close$0: function(_) { |
| 4577 this._null_stream_sink$_closed = true; |
| 4578 return this.done; |
| 4579 } |
| 4580 }, |
| 4581 NullStreamSink_addStream_closure: { |
| 4582 "^": "Closure:1;$this", |
| 4583 call$0: [function() { |
| 4584 this.$this._addingStream = false; |
| 4585 }, null, null, 0, 0, null, "call"] |
4574 } | 4586 } |
4575 }], ["dart._internal", "dart:_internal",, H, { | 4587 }], ["dart._internal", "dart:_internal",, H, { |
4576 "^": "", | 4588 "^": "", |
4577 IterableElementError_noElement: function() { | 4589 IterableElementError_noElement: function() { |
4578 return new P.StateError("No element"); | 4590 return new P.StateError("No element"); |
4579 }, | 4591 }, |
| 4592 IterableElementError_tooMany: function() { |
| 4593 return new P.StateError("Too many elements"); |
| 4594 }, |
4580 IterableElementError_tooFew: function() { | 4595 IterableElementError_tooFew: function() { |
4581 return new P.StateError("Too few elements"); | 4596 return new P.StateError("Too few elements"); |
4582 }, | 4597 }, |
4583 CodeUnits: { | 4598 CodeUnits: { |
4584 "^": "UnmodifiableListBase;_string", | 4599 "^": "UnmodifiableListBase;__internal$_string", |
4585 get$length: function(_) { | 4600 get$length: function(_) { |
4586 return this._string.length; | 4601 return this.__internal$_string.length; |
4587 }, | 4602 }, |
4588 $index: function(_, i) { | 4603 $index: function(_, i) { |
4589 return C.JSString_methods.codeUnitAt$1(this._string, i); | 4604 return C.JSString_methods.codeUnitAt$1(this.__internal$_string, i); |
4590 }, | 4605 }, |
4591 $asUnmodifiableListBase: function() { | 4606 $asUnmodifiableListBase: function() { |
4592 return [P.$int]; | 4607 return [P.$int]; |
4593 }, | 4608 }, |
4594 $asListBase: function() { | 4609 $asListBase: function() { |
4595 return [P.$int]; | 4610 return [P.$int]; |
4596 }, | 4611 }, |
4597 $asList: function() { | 4612 $asList: function() { |
4598 return [P.$int]; | 4613 return [P.$int]; |
4599 } | 4614 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4670 var $length, value, i; | 4685 var $length, value, i; |
4671 $length = this.get$length(this); | 4686 $length = this.get$length(this); |
4672 for (value = initialValue, i = 0; i < $length; ++i) { | 4687 for (value = initialValue, i = 0; i < $length; ++i) { |
4673 value = combine.call$2(value, this.elementAt$1(0, i)); | 4688 value = combine.call$2(value, this.elementAt$1(0, i)); |
4674 if ($length !== this.get$length(this)) | 4689 if ($length !== this.get$length(this)) |
4675 throw H.wrapException(new P.ConcurrentModificationError(this)); | 4690 throw H.wrapException(new P.ConcurrentModificationError(this)); |
4676 } | 4691 } |
4677 return value; | 4692 return value; |
4678 }, | 4693 }, |
4679 toList$1$growable: function(_, growable) { | 4694 toList$1$growable: function(_, growable) { |
4680 var result, t1, i; | 4695 var result, i, t1; |
4681 if (growable) { | 4696 result = H.setRuntimeTypeInfo([], [H.getRuntimeTypeArgument(this, "ListI
terable", 0)]); |
4682 result = H.setRuntimeTypeInfo([], [H.getRuntimeTypeArgument(this, "Lis
tIterable", 0)]); | 4697 C.JSArray_methods.set$length(result, this.get$length(this)); |
4683 C.JSArray_methods.set$length(result, this.get$length(this)); | |
4684 } else { | |
4685 t1 = Array(this.get$length(this)); | |
4686 t1.fixed$length = Array; | |
4687 result = H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "Lis
tIterable", 0)]); | |
4688 } | |
4689 for (i = 0; i < this.get$length(this); ++i) { | 4698 for (i = 0; i < this.get$length(this); ++i) { |
4690 t1 = this.elementAt$1(0, i); | 4699 t1 = this.elementAt$1(0, i); |
4691 if (i >= result.length) | 4700 if (i >= result.length) |
4692 return H.ioore(result, i); | 4701 return H.ioore(result, i); |
4693 result[i] = t1; | 4702 result[i] = t1; |
4694 } | 4703 } |
4695 return result; | 4704 return result; |
4696 }, | 4705 }, |
4697 toList$0: function($receiver) { | 4706 toList$0: function($receiver) { |
4698 return this.toList$1$growable($receiver, true); | 4707 return this.toList$1$growable($receiver, true); |
4699 }, | 4708 }, |
4700 $isEfficientLength: 1 | 4709 $isEfficientLength: 1 |
4701 }, | 4710 }, |
4702 SubListIterable: { | 4711 SubListIterable: { |
4703 "^": "ListIterable;_iterable,__internal$_start,_endOrLength", | 4712 "^": "ListIterable;__internal$_iterable,__internal$_start,_endOrLength", |
4704 get$_endIndex: function() { | 4713 get$_endIndex: function() { |
4705 var $length, t1, t2; | 4714 var $length, t1, t2; |
4706 $length = J.get$length$asx(this._iterable); | 4715 $length = J.get$length$asx(this.__internal$_iterable); |
4707 t1 = this._endOrLength; | 4716 t1 = this._endOrLength; |
4708 if (t1 != null) { | 4717 if (t1 != null) { |
4709 if (typeof t1 !== "number") | 4718 if (typeof t1 !== "number") |
4710 return t1.$gt(); | 4719 return t1.$gt(); |
4711 t2 = t1 > $length; | 4720 t2 = t1 > $length; |
4712 } else | 4721 } else |
4713 t2 = true; | 4722 t2 = true; |
4714 if (t2) | 4723 if (t2) |
4715 return $length; | 4724 return $length; |
4716 return t1; | 4725 return t1; |
4717 }, | 4726 }, |
4718 get$_startIndex: function() { | 4727 get$_startIndex: function() { |
4719 var $length, t1; | 4728 var $length, t1; |
4720 $length = J.get$length$asx(this._iterable); | 4729 $length = J.get$length$asx(this.__internal$_iterable); |
4721 t1 = this.__internal$_start; | 4730 t1 = this.__internal$_start; |
4722 if (t1 > $length) | 4731 if (t1 > $length) |
4723 return $length; | 4732 return $length; |
4724 return t1; | 4733 return t1; |
4725 }, | 4734 }, |
4726 get$length: function(_) { | 4735 get$length: function(_) { |
4727 var $length, t1, t2, t3; | 4736 var $length, t1, t2, t3; |
4728 $length = J.get$length$asx(this._iterable); | 4737 $length = J.get$length$asx(this.__internal$_iterable); |
4729 t1 = this.__internal$_start; | 4738 t1 = this.__internal$_start; |
4730 if (t1 >= $length) | 4739 if (t1 >= $length) |
4731 return 0; | 4740 return 0; |
4732 t2 = this._endOrLength; | 4741 t2 = this._endOrLength; |
4733 if (t2 != null) { | 4742 if (t2 != null) { |
4734 if (typeof t2 !== "number") | 4743 if (typeof t2 !== "number") |
4735 return t2.$ge(); | 4744 return t2.$ge(); |
4736 t3 = t2 >= $length; | 4745 t3 = t2 >= $length; |
4737 } else | 4746 } else |
4738 t3 = true; | 4747 t3 = true; |
4739 if (t3) | 4748 if (t3) |
4740 return $length - t1; | 4749 return $length - t1; |
4741 if (typeof t2 !== "number") | 4750 if (typeof t2 !== "number") |
4742 return t2.$sub(); | 4751 return t2.$sub(); |
4743 return t2 - t1; | 4752 return t2 - t1; |
4744 }, | 4753 }, |
4745 elementAt$1: function(_, index) { | 4754 elementAt$1: function(_, index) { |
4746 var realIndex, t1; | 4755 var realIndex, t1; |
4747 realIndex = this.get$_startIndex() + index; | 4756 realIndex = this.get$_startIndex() + index; |
4748 if (index >= 0) { | 4757 if (index >= 0) { |
4749 t1 = this.get$_endIndex(); | 4758 t1 = this.get$_endIndex(); |
4750 if (typeof t1 !== "number") | 4759 if (typeof t1 !== "number") |
4751 return H.iae(t1); | 4760 return H.iae(t1); |
4752 t1 = realIndex >= t1; | 4761 t1 = realIndex >= t1; |
4753 } else | 4762 } else |
4754 t1 = true; | 4763 t1 = true; |
4755 if (t1) | 4764 if (t1) |
4756 throw H.wrapException(P.IndexError$(index, this, "index", null, null))
; | 4765 throw H.wrapException(P.IndexError$(index, this, "index", null, null))
; |
4757 return J.elementAt$1$ax(this._iterable, realIndex); | 4766 return J.elementAt$1$ax(this.__internal$_iterable, realIndex); |
4758 }, | 4767 }, |
4759 take$1: function(_, count) { | 4768 take$1: function(_, count) { |
4760 var t1, t2, newEnd; | 4769 var t1, t2, newEnd; |
4761 if (count < 0) | 4770 if (count < 0) |
4762 H.throwExpression(P.RangeError$range(count, 0, null, "count", null)); | 4771 H.throwExpression(P.RangeError$range(count, 0, null, "count", null)); |
4763 t1 = this._endOrLength; | 4772 t1 = this._endOrLength; |
4764 t2 = this.__internal$_start; | 4773 t2 = this.__internal$_start; |
4765 if (t1 == null) | 4774 if (t1 == null) |
4766 return H.SubListIterable$(this._iterable, t2, t2 + count, H.getTypeArg
umentByIndex(this, 0)); | 4775 return H.SubListIterable$(this.__internal$_iterable, t2, t2 + count, H
.getTypeArgumentByIndex(this, 0)); |
4767 else { | 4776 else { |
4768 newEnd = t2 + count; | 4777 newEnd = t2 + count; |
4769 if (typeof t1 !== "number") | 4778 if (typeof t1 !== "number") |
4770 return t1.$lt(); | 4779 return t1.$lt(); |
4771 if (t1 < newEnd) | 4780 if (t1 < newEnd) |
4772 return this; | 4781 return this; |
4773 return H.SubListIterable$(this._iterable, t2, newEnd, H.getTypeArgumen
tByIndex(this, 0)); | 4782 return H.SubListIterable$(this.__internal$_iterable, t2, newEnd, H.get
TypeArgumentByIndex(this, 0)); |
4774 } | 4783 } |
4775 }, | 4784 }, |
| 4785 toList$1$growable: function(_, growable) { |
| 4786 var start, t1, t2, end, end0, t3, $length, result, i; |
| 4787 start = this.__internal$_start; |
| 4788 t1 = this.__internal$_iterable; |
| 4789 t2 = J.getInterceptor$asx(t1); |
| 4790 end = t2.get$length(t1); |
| 4791 end0 = this._endOrLength; |
| 4792 if (end0 != null) { |
| 4793 if (typeof end0 !== "number") |
| 4794 return end0.$lt(); |
| 4795 t3 = end0 < end; |
| 4796 } else |
| 4797 t3 = false; |
| 4798 if (t3) |
| 4799 end = end0; |
| 4800 if (typeof end !== "number") |
| 4801 return end.$sub(); |
| 4802 $length = end - start; |
| 4803 if ($length < 0) |
| 4804 $length = 0; |
| 4805 result = H.setRuntimeTypeInfo(new Array($length), [H.getTypeArgumentByIn
dex(this, 0)]); |
| 4806 for (i = 0; i < $length; ++i) { |
| 4807 t3 = t2.elementAt$1(t1, start + i); |
| 4808 if (i >= result.length) |
| 4809 return H.ioore(result, i); |
| 4810 result[i] = t3; |
| 4811 if (t2.get$length(t1) < end) |
| 4812 throw H.wrapException(new P.ConcurrentModificationError(this)); |
| 4813 } |
| 4814 return result; |
| 4815 }, |
4776 SubListIterable$3: function(_iterable, _start, _endOrLength, $E) { | 4816 SubListIterable$3: function(_iterable, _start, _endOrLength, $E) { |
4777 var t1, t2; | 4817 var t1, t2; |
4778 t1 = this.__internal$_start; | 4818 t1 = this.__internal$_start; |
4779 if (t1 < 0) | 4819 if (t1 < 0) |
4780 H.throwExpression(P.RangeError$range(t1, 0, null, "start", null)); | 4820 H.throwExpression(P.RangeError$range(t1, 0, null, "start", null)); |
4781 t2 = this._endOrLength; | 4821 t2 = this._endOrLength; |
4782 if (t2 != null) { | 4822 if (t2 != null) { |
4783 if (typeof t2 !== "number") | 4823 if (typeof t2 !== "number") |
4784 return t2.$lt(); | 4824 return t2.$lt(); |
4785 if (t2 < 0) | 4825 if (t2 < 0) |
4786 H.throwExpression(P.RangeError$range(t2, 0, null, "end", null)); | 4826 H.throwExpression(P.RangeError$range(t2, 0, null, "end", null)); |
4787 if (t1 > t2) | 4827 if (t1 > t2) |
4788 throw H.wrapException(P.RangeError$range(t1, 0, t2, "start", null)); | 4828 throw H.wrapException(P.RangeError$range(t1, 0, t2, "start", null)); |
4789 } | 4829 } |
4790 }, | 4830 }, |
4791 static: {SubListIterable$: function(_iterable, _start, _endOrLength, $E) { | 4831 static: {SubListIterable$: function(_iterable, _start, _endOrLength, $E) { |
4792 var t1 = H.setRuntimeTypeInfo(new H.SubListIterable(_iterable, _start,
_endOrLength), [$E]); | 4832 var t1 = H.setRuntimeTypeInfo(new H.SubListIterable(_iterable, _start,
_endOrLength), [$E]); |
4793 t1.SubListIterable$3(_iterable, _start, _endOrLength, $E); | 4833 t1.SubListIterable$3(_iterable, _start, _endOrLength, $E); |
4794 return t1; | 4834 return t1; |
4795 }} | 4835 }} |
4796 }, | 4836 }, |
4797 ListIterator: { | 4837 ListIterator: { |
4798 "^": "Object;_iterable,__internal$_length,_index,__internal$_current", | 4838 "^": "Object;__internal$_iterable,__internal$_length,__internal$_index,_cu
rrent", |
4799 get$current: function() { | 4839 get$current: function() { |
4800 return this.__internal$_current; | 4840 return this._current; |
4801 }, | 4841 }, |
4802 moveNext$0: function() { | 4842 moveNext$0: function() { |
4803 var t1, t2, $length, t3; | 4843 var t1, t2, $length, t3; |
4804 t1 = this._iterable; | 4844 t1 = this.__internal$_iterable; |
4805 t2 = J.getInterceptor$asx(t1); | 4845 t2 = J.getInterceptor$asx(t1); |
4806 $length = t2.get$length(t1); | 4846 $length = t2.get$length(t1); |
4807 if (this.__internal$_length !== $length) | 4847 if (this.__internal$_length !== $length) |
4808 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 4848 throw H.wrapException(new P.ConcurrentModificationError(t1)); |
4809 t3 = this._index; | 4849 t3 = this.__internal$_index; |
4810 if (t3 >= $length) { | 4850 if (t3 >= $length) { |
4811 this.__internal$_current = null; | 4851 this._current = null; |
4812 return false; | 4852 return false; |
4813 } | 4853 } |
4814 this.__internal$_current = t2.elementAt$1(t1, t3); | 4854 this._current = t2.elementAt$1(t1, t3); |
4815 ++this._index; | 4855 ++this.__internal$_index; |
4816 return true; | 4856 return true; |
4817 } | 4857 } |
4818 }, | 4858 }, |
4819 MappedIterable: { | 4859 MappedIterable: { |
4820 "^": "Iterable;_iterable,_f", | 4860 "^": "Iterable;__internal$_iterable,_f", |
4821 get$iterator: function(_) { | 4861 get$iterator: function(_) { |
4822 var t1 = new H.MappedIterator(null, J.get$iterator$ax(this._iterable), t
his._f); | 4862 var t1 = new H.MappedIterator(null, J.get$iterator$ax(this.__internal$_i
terable), this._f); |
4823 t1.$builtinTypeInfo = this.$builtinTypeInfo; | 4863 t1.$builtinTypeInfo = this.$builtinTypeInfo; |
4824 return t1; | 4864 return t1; |
4825 }, | 4865 }, |
4826 get$length: function(_) { | 4866 get$length: function(_) { |
4827 return J.get$length$asx(this._iterable); | 4867 return J.get$length$asx(this.__internal$_iterable); |
4828 }, | 4868 }, |
4829 get$isEmpty: function(_) { | 4869 get$isEmpty: function(_) { |
4830 return J.get$isEmpty$asx(this._iterable); | 4870 return J.get$isEmpty$asx(this.__internal$_iterable); |
4831 }, | 4871 }, |
4832 get$last: function(_) { | 4872 get$last: function(_) { |
4833 return this._f$1(J.get$last$ax(this._iterable)); | 4873 return this._f$1(J.get$last$ax(this.__internal$_iterable)); |
4834 }, | 4874 }, |
4835 _f$1: function(arg0) { | 4875 _f$1: function(arg0) { |
4836 return this._f.call$1(arg0); | 4876 return this._f.call$1(arg0); |
4837 }, | 4877 }, |
4838 $asIterable: function($S, $T) { | 4878 $asIterable: function($S, $T) { |
4839 return [$T]; | 4879 return [$T]; |
4840 }, | 4880 }, |
4841 static: {MappedIterable_MappedIterable: function(iterable, $function, $S,
$T) { | 4881 static: {MappedIterable_MappedIterable: function(iterable, $function, $S,
$T) { |
4842 if (!!J.getInterceptor(iterable).$isEfficientLength) | 4882 if (!!J.getInterceptor(iterable).$isEfficientLength) |
4843 return H.setRuntimeTypeInfo(new H.EfficientLengthMappedIterable(iter
able, $function), [$S, $T]); | 4883 return H.setRuntimeTypeInfo(new H.EfficientLengthMappedIterable(iter
able, $function), [$S, $T]); |
4844 return H.setRuntimeTypeInfo(new H.MappedIterable(iterable, $function),
[$S, $T]); | 4884 return H.setRuntimeTypeInfo(new H.MappedIterable(iterable, $function),
[$S, $T]); |
4845 }} | 4885 }} |
4846 }, | 4886 }, |
4847 EfficientLengthMappedIterable: { | 4887 EfficientLengthMappedIterable: { |
4848 "^": "MappedIterable;_iterable,_f", | 4888 "^": "MappedIterable;__internal$_iterable,_f", |
4849 $isEfficientLength: 1 | 4889 $isEfficientLength: 1 |
4850 }, | 4890 }, |
4851 MappedIterator: { | 4891 MappedIterator: { |
4852 "^": "Iterator;__internal$_current,_iterator,_f", | 4892 "^": "Iterator;_current,_iterator,_f", |
4853 moveNext$0: function() { | 4893 moveNext$0: function() { |
4854 var t1 = this._iterator; | 4894 var t1 = this._iterator; |
4855 if (t1.moveNext$0()) { | 4895 if (t1.moveNext$0()) { |
4856 this.__internal$_current = this._f$1(t1.get$current()); | 4896 this._current = this._f$1(t1.get$current()); |
4857 return true; | 4897 return true; |
4858 } | 4898 } |
4859 this.__internal$_current = null; | 4899 this._current = null; |
4860 return false; | 4900 return false; |
4861 }, | 4901 }, |
4862 get$current: function() { | 4902 get$current: function() { |
4863 return this.__internal$_current; | 4903 return this._current; |
4864 }, | 4904 }, |
4865 _f$1: function(arg0) { | 4905 _f$1: function(arg0) { |
4866 return this._f.call$1(arg0); | 4906 return this._f.call$1(arg0); |
4867 } | 4907 } |
4868 }, | 4908 }, |
4869 MappedListIterable: { | 4909 MappedListIterable: { |
4870 "^": "ListIterable;_source,_f", | 4910 "^": "ListIterable;_source,_f", |
4871 get$length: function(_) { | 4911 get$length: function(_) { |
4872 return J.get$length$asx(this._source); | 4912 return J.get$length$asx(this._source); |
4873 }, | 4913 }, |
4874 elementAt$1: function(_, index) { | 4914 elementAt$1: function(_, index) { |
4875 return this._f$1(J.elementAt$1$ax(this._source, index)); | 4915 return this._f$1(J.elementAt$1$ax(this._source, index)); |
4876 }, | 4916 }, |
4877 _f$1: function(arg0) { | 4917 _f$1: function(arg0) { |
4878 return this._f.call$1(arg0); | 4918 return this._f.call$1(arg0); |
4879 }, | 4919 }, |
4880 $asListIterable: function($S, $T) { | 4920 $asListIterable: function($S, $T) { |
4881 return [$T]; | 4921 return [$T]; |
4882 }, | 4922 }, |
4883 $asIterable: function($S, $T) { | 4923 $asIterable: function($S, $T) { |
4884 return [$T]; | 4924 return [$T]; |
4885 }, | 4925 }, |
4886 $isEfficientLength: 1 | 4926 $isEfficientLength: 1 |
4887 }, | 4927 }, |
4888 WhereIterable: { | 4928 WhereIterable: { |
4889 "^": "Iterable;_iterable,_f", | 4929 "^": "Iterable;__internal$_iterable,_f", |
4890 get$iterator: function(_) { | 4930 get$iterator: function(_) { |
4891 var t1 = new H.WhereIterator(J.get$iterator$ax(this._iterable), this._f)
; | 4931 var t1 = new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable
), this._f); |
4892 t1.$builtinTypeInfo = this.$builtinTypeInfo; | 4932 t1.$builtinTypeInfo = this.$builtinTypeInfo; |
4893 return t1; | 4933 return t1; |
4894 } | 4934 } |
4895 }, | 4935 }, |
4896 WhereIterator: { | 4936 WhereIterator: { |
4897 "^": "Iterator;_iterator,_f", | 4937 "^": "Iterator;_iterator,_f", |
4898 moveNext$0: function() { | 4938 moveNext$0: function() { |
4899 for (var t1 = this._iterator; t1.moveNext$0();) | 4939 for (var t1 = this._iterator; t1.moveNext$0();) |
4900 if (this._f$1(t1.get$current()) === true) | 4940 if (this._f$1(t1.get$current()) === true) |
4901 return true; | 4941 return true; |
4902 return false; | 4942 return false; |
4903 }, | 4943 }, |
4904 get$current: function() { | 4944 get$current: function() { |
4905 return this._iterator.get$current(); | 4945 return this._iterator.get$current(); |
4906 }, | 4946 }, |
4907 _f$1: function(arg0) { | 4947 _f$1: function(arg0) { |
4908 return this._f.call$1(arg0); | 4948 return this._f.call$1(arg0); |
4909 } | 4949 } |
4910 }, | 4950 }, |
4911 SkipWhileIterable: { | 4951 SkipWhileIterable: { |
4912 "^": "Iterable;_iterable,_f", | 4952 "^": "Iterable;__internal$_iterable,_f", |
4913 get$iterator: function(_) { | 4953 get$iterator: function(_) { |
4914 var t1 = new H.SkipWhileIterator(J.get$iterator$ax(this._iterable), this
._f, false); | 4954 var t1 = new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iter
able), this._f, false); |
4915 t1.$builtinTypeInfo = this.$builtinTypeInfo; | 4955 t1.$builtinTypeInfo = this.$builtinTypeInfo; |
4916 return t1; | 4956 return t1; |
4917 } | 4957 } |
4918 }, | 4958 }, |
4919 SkipWhileIterator: { | 4959 SkipWhileIterator: { |
4920 "^": "Iterator;_iterator,_f,_hasSkipped", | 4960 "^": "Iterator;_iterator,_f,_hasSkipped", |
4921 moveNext$0: function() { | 4961 moveNext$0: function() { |
4922 if (!this._hasSkipped) { | 4962 if (!this._hasSkipped) { |
4923 this._hasSkipped = true; | 4963 this._hasSkipped = true; |
4924 for (var t1 = this._iterator; t1.moveNext$0();) | 4964 for (var t1 = this._iterator; t1.moveNext$0();) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5015 }], ["dart.async", "dart:async",, P, { | 5055 }], ["dart.async", "dart:async",, P, { |
5016 "^": "", | 5056 "^": "", |
5017 _AsyncRun__initializeScheduleImmediate: function() { | 5057 _AsyncRun__initializeScheduleImmediate: function() { |
5018 var t1, div, span; | 5058 var t1, div, span; |
5019 t1 = {}; | 5059 t1 = {}; |
5020 if (self.scheduleImmediate != null) | 5060 if (self.scheduleImmediate != null) |
5021 return P.async__AsyncRun__scheduleImmediateJsOverride$closure(); | 5061 return P.async__AsyncRun__scheduleImmediateJsOverride$closure(); |
5022 if (self.MutationObserver != null && self.document != null) { | 5062 if (self.MutationObserver != null && self.document != null) { |
5023 div = self.document.createElement("div"); | 5063 div = self.document.createElement("div"); |
5024 span = self.document.createElement("span"); | 5064 span = self.document.createElement("span"); |
5025 t1._captured_storedCallback_0 = null; | 5065 t1.storedCallback = null; |
5026 new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__init
ializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true}
); | 5066 new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__init
ializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true}
); |
5027 return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, spa
n); | 5067 return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, spa
n); |
5028 } else if (self.setImmediate != null) | 5068 } else if (self.setImmediate != null) |
5029 return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure(); | 5069 return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure(); |
5030 return P.async__AsyncRun__scheduleImmediateWithTimer$closure(); | 5070 return P.async__AsyncRun__scheduleImmediateWithTimer$closure(); |
5031 }, | 5071 }, |
5032 _AsyncRun__scheduleImmediateJsOverride: [function(callback) { | 5072 _AsyncRun__scheduleImmediateJsOverride: [function(callback) { |
5033 ++init.globalState.topEventLoop._activeJsAsyncCount; | 5073 ++init.globalState.topEventLoop._activeJsAsyncCount; |
5034 self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleI
mmediateJsOverride_internalCallback(callback), 0)); | 5074 self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleI
mmediateJsOverride_internalCallback(callback), 0)); |
5035 }, "call$1", "async__AsyncRun__scheduleImmediateJsOverride$closure", 2, 0, 5
], | 5075 }, "call$1", "async__AsyncRun__scheduleImmediateJsOverride$closure", 2, 0, 4
], |
5036 _AsyncRun__scheduleImmediateWithSetImmediate: [function(callback) { | 5076 _AsyncRun__scheduleImmediateWithSetImmediate: [function(callback) { |
5037 ++init.globalState.topEventLoop._activeJsAsyncCount; | 5077 ++init.globalState.topEventLoop._activeJsAsyncCount; |
5038 self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmedi
ateWithSetImmediate_internalCallback(callback), 0)); | 5078 self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmedi
ateWithSetImmediate_internalCallback(callback), 0)); |
5039 }, "call$1", "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", 2
, 0, 5], | 5079 }, "call$1", "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", 2
, 0, 4], |
5040 _AsyncRun__scheduleImmediateWithTimer: [function(callback) { | 5080 _AsyncRun__scheduleImmediateWithTimer: [function(callback) { |
5041 P.Timer__createTimer(C.Duration_0, callback); | 5081 P.Timer__createTimer(C.Duration_0, callback); |
5042 }, "call$1", "async__AsyncRun__scheduleImmediateWithTimer$closure", 2, 0, 5]
, | 5082 }, "call$1", "async__AsyncRun__scheduleImmediateWithTimer$closure", 2, 0, 4]
, |
| 5083 _asyncHelper: function(object, bodyFunctionOrErrorCode, completer) { |
| 5084 if (bodyFunctionOrErrorCode === 0) { |
| 5085 J.complete$1$x(completer, object); |
| 5086 return; |
| 5087 } else if (bodyFunctionOrErrorCode === 1) { |
| 5088 completer.completeError$2(H.unwrapException(object), H.getTraceFromExcep
tion(object)); |
| 5089 return; |
| 5090 } |
| 5091 P._awaitOnObject(object, bodyFunctionOrErrorCode); |
| 5092 return completer.get$future(); |
| 5093 }, |
| 5094 _awaitOnObject: function(object, bodyFunction) { |
| 5095 var thenCallback, errorCallback, t1, future; |
| 5096 thenCallback = new P._awaitOnObject_closure(bodyFunction); |
| 5097 errorCallback = new P._awaitOnObject_closure0(bodyFunction); |
| 5098 t1 = J.getInterceptor(object); |
| 5099 if (!!t1.$is_Future) |
| 5100 object._thenNoZoneRegistration$2(thenCallback, errorCallback); |
| 5101 else if (!!t1.$isFuture) |
| 5102 object.then$2$onError(thenCallback, errorCallback); |
| 5103 else { |
| 5104 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
null]); |
| 5105 future._state = 4; |
| 5106 future._resultOrListeners = object; |
| 5107 future._thenNoZoneRegistration$2(thenCallback, null); |
| 5108 } |
| 5109 }, |
| 5110 _wrapJsFunctionForAsync: function($function) { |
| 5111 var $protected = function(fn, ERROR) { |
| 5112 return function(errorCode, result) { |
| 5113 while (true) |
| 5114 try { |
| 5115 fn(errorCode, result); |
| 5116 break; |
| 5117 } catch (error) { |
| 5118 result = error; |
| 5119 errorCode = ERROR; |
| 5120 } |
| 5121 }; |
| 5122 }($function, 1); |
| 5123 return $.Zone__current.registerBinaryCallback$1(new P._wrapJsFunctionForAs
ync_closure($protected)); |
| 5124 }, |
5043 _registerErrorHandler: function(errorHandler, zone) { | 5125 _registerErrorHandler: function(errorHandler, zone) { |
5044 var t1 = H.getDynamicRuntimeType(); | 5126 var t1 = H.getDynamicRuntimeType(); |
5045 t1 = H.buildFunctionType(t1, [t1, t1])._isTest$1(errorHandler); | 5127 t1 = H.buildFunctionType(t1, [t1, t1])._isTest$1(errorHandler); |
5046 if (t1) | 5128 if (t1) |
5047 return zone.registerBinaryCallback$1(errorHandler); | 5129 return zone.registerBinaryCallback$1(errorHandler); |
5048 else | 5130 else |
5049 return zone.registerUnaryCallback$1(errorHandler); | 5131 return zone.registerUnaryCallback$1(errorHandler); |
5050 }, | 5132 }, |
5051 Future_Future$value: function(value, $T) { | 5133 Future_Future$value: function(value, $T) { |
5052 var t1 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [$T
]); | 5134 var t1 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [$T
]); |
5053 t1._asyncComplete$1(value); | 5135 t1._asyncComplete$1(value); |
5054 return t1; | 5136 return t1; |
5055 }, | 5137 }, |
5056 Completer_Completer: function($T) { | 5138 Completer_Completer$sync: function($T) { |
5057 return H.setRuntimeTypeInfo(new P._AsyncCompleter(H.setRuntimeTypeInfo(new
P._Future(0, $.Zone__current, null), [$T])), [$T]); | 5139 return H.setRuntimeTypeInfo(new P._SyncCompleter(H.setRuntimeTypeInfo(new
P._Future(0, $.Zone__current, null), [$T])), [$T]); |
5058 }, | 5140 }, |
5059 _completeWithErrorCallback: function(result, error, stackTrace) { | 5141 _completeWithErrorCallback: function(result, error, stackTrace) { |
5060 var replacement = $.Zone__current.errorCallback$2(error, stackTrace); | 5142 var replacement = $.Zone__current.errorCallback$2(error, stackTrace); |
5061 if (replacement != null) { | 5143 if (replacement != null) { |
5062 error = J.get$error$x(replacement); | 5144 error = J.get$error$x(replacement); |
5063 error = error != null ? error : new P.NullThrownError(); | 5145 error = error != null ? error : new P.NullThrownError(); |
5064 stackTrace = replacement.get$stackTrace(); | 5146 stackTrace = replacement.get$stackTrace(); |
5065 } | 5147 } |
5066 result._completeError$2(error, stackTrace); | 5148 result._completeError$2(error, stackTrace); |
5067 }, | 5149 }, |
5068 _microtaskLoop: function() { | 5150 _microtaskLoop: function() { |
5069 var t1, t2; | 5151 var t1, t2; |
5070 for (; t1 = $._nextCallback, t1 != null;) { | 5152 for (; t1 = $._nextCallback, t1 != null;) { |
5071 $._lastPriorityCallback = null; | 5153 $._lastPriorityCallback = null; |
5072 t2 = t1.get$next(); | 5154 t2 = t1.next; |
5073 $._nextCallback = t2; | 5155 $._nextCallback = t2; |
5074 if (t2 == null) | 5156 if (t2 == null) |
5075 $._lastCallback = null; | 5157 $._lastCallback = null; |
5076 $.Zone__current = t1.get$zone(); | 5158 t1.callback.call$0(); |
5077 t1.callback$0(); | |
5078 } | 5159 } |
5079 }, | 5160 }, |
5080 _microtaskLoopEntry: [function() { | 5161 _startMicrotaskLoop: [function() { |
5081 $._isInCallbackLoop = true; | 5162 $._isInCallbackLoop = true; |
5082 try { | 5163 try { |
5083 P._microtaskLoop(); | 5164 P._microtaskLoop(); |
5084 } finally { | 5165 } finally { |
5085 $.Zone__current = C.C__RootZone; | |
5086 $._lastPriorityCallback = null; | 5166 $._lastPriorityCallback = null; |
5087 $._isInCallbackLoop = false; | 5167 $._isInCallbackLoop = false; |
5088 if ($._nextCallback != null) | 5168 if ($._nextCallback != null) |
5089 $.$get$_AsyncRun_scheduleImmediateClosure().call$1(P.async___microtask
LoopEntry$closure()); | 5169 $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMic
rotaskLoop$closure()); |
5090 } | 5170 } |
5091 }, "call$0", "async___microtaskLoopEntry$closure", 0, 0, 2], | 5171 }, "call$0", "async___startMicrotaskLoop$closure", 0, 0, 2], |
5092 _scheduleAsyncCallback: function(newEntry) { | 5172 _scheduleAsyncCallback: function(callback) { |
| 5173 var newEntry = new P._AsyncCallbackEntry(callback, null); |
5093 if ($._nextCallback == null) { | 5174 if ($._nextCallback == null) { |
5094 $._lastCallback = newEntry; | 5175 $._lastCallback = newEntry; |
5095 $._nextCallback = newEntry; | 5176 $._nextCallback = newEntry; |
5096 if (!$._isInCallbackLoop) | 5177 if (!$._isInCallbackLoop) |
5097 $.$get$_AsyncRun_scheduleImmediateClosure().call$1(P.async___microtask
LoopEntry$closure()); | 5178 $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMic
rotaskLoop$closure()); |
5098 } else { | 5179 } else { |
5099 $._lastCallback.next = newEntry; | 5180 $._lastCallback.next = newEntry; |
5100 $._lastCallback = newEntry; | 5181 $._lastCallback = newEntry; |
5101 } | 5182 } |
5102 }, | 5183 }, |
| 5184 _schedulePriorityAsyncCallback: function(callback) { |
| 5185 var t1, entry, t2; |
| 5186 t1 = $._nextCallback; |
| 5187 if (t1 == null) { |
| 5188 P._scheduleAsyncCallback(callback); |
| 5189 $._lastPriorityCallback = $._lastCallback; |
| 5190 return; |
| 5191 } |
| 5192 entry = new P._AsyncCallbackEntry(callback, null); |
| 5193 t2 = $._lastPriorityCallback; |
| 5194 if (t2 == null) { |
| 5195 entry.next = t1; |
| 5196 $._lastPriorityCallback = entry; |
| 5197 $._nextCallback = entry; |
| 5198 } else { |
| 5199 entry.next = t2.next; |
| 5200 t2.next = entry; |
| 5201 $._lastPriorityCallback = entry; |
| 5202 if (entry.next == null) |
| 5203 $._lastCallback = entry; |
| 5204 } |
| 5205 }, |
5103 scheduleMicrotask: function(callback) { | 5206 scheduleMicrotask: function(callback) { |
5104 var currentZone, t1; | 5207 var currentZone, t1; |
5105 currentZone = $.Zone__current; | 5208 currentZone = $.Zone__current; |
5106 if (C.C__RootZone === currentZone) { | 5209 if (C.C__RootZone === currentZone) { |
5107 P._rootScheduleMicrotask(null, null, C.C__RootZone, callback); | 5210 P._rootScheduleMicrotask(null, null, C.C__RootZone, callback); |
5108 return; | 5211 return; |
5109 } | 5212 } |
5110 if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone) | 5213 if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone) |
5111 t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone(); | 5214 t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone(); |
5112 else | 5215 else |
5113 t1 = false; | 5216 t1 = false; |
5114 if (t1) { | 5217 if (t1) { |
5115 P._rootScheduleMicrotask(null, null, currentZone, currentZone.registerCa
llback$1(callback)); | 5218 P._rootScheduleMicrotask(null, null, currentZone, currentZone.registerCa
llback$1(callback)); |
5116 return; | 5219 return; |
5117 } | 5220 } |
5118 t1 = $.Zone__current; | 5221 t1 = $.Zone__current; |
5119 t1.scheduleMicrotask$1(t1.bindCallback$2$runGuarded(callback, true)); | 5222 t1.scheduleMicrotask$1(t1.bindCallback$2$runGuarded(callback, true)); |
5120 }, | 5223 }, |
5121 StreamIterator_StreamIterator: function(stream, $T) { | 5224 StreamIterator_StreamIterator: function(stream, $T) { |
5122 var t1, t2, t3; | 5225 var t1, t2, t3; |
5123 t1 = H.setRuntimeTypeInfo(new P._StreamIteratorImpl(null, null, null, 0),
[$T]); | 5226 t1 = H.setRuntimeTypeInfo(new P._StreamIteratorImpl(null, null, null, 0),
[$T]); |
5124 t2 = t1.get$_async$_onData(); | 5227 t2 = t1.get$_async$_onData(); |
5125 t3 = t1.get$_onError(); | 5228 t3 = t1.get$_onError(); |
5126 t1._subscription = stream.listen$4$cancelOnError$onDone$onError(t2, true,
t1.get$_onDone(), t3); | 5229 t1._subscription = stream.listen$4$cancelOnError$onDone$onError(t2, true,
t1.get$_onDone(), t3); |
5127 return t1; | 5230 return t1; |
5128 }, | 5231 }, |
5129 StreamController_StreamController: function(onCancel, onListen, onPause, onR
esume, sync, $T) { | 5232 StreamController_StreamController: function(onCancel, onListen, onPause, onR
esume, sync, $T) { |
5130 return sync ? H.setRuntimeTypeInfo(new P._SyncStreamController(null, 0, nu
ll, onListen, onPause, onResume, onCancel), [$T]) : H.setRuntimeTypeInfo(new P._
AsyncStreamController(null, 0, null, onListen, onPause, onResume, onCancel), [$T
]); | 5233 return H.setRuntimeTypeInfo(new P._SyncStreamController(null, 0, null, onL
isten, onPause, onResume, onCancel), [$T]); |
5131 }, | 5234 }, |
5132 _runGuarded: function(notificationHandler) { | 5235 _runGuarded: function(notificationHandler) { |
5133 var result, e, s, exception, t1; | 5236 var result, e, s, exception, t1; |
5134 if (notificationHandler == null) | 5237 if (notificationHandler == null) |
5135 return; | 5238 return; |
5136 try { | 5239 try { |
5137 result = notificationHandler.call$0(); | 5240 result = notificationHandler.call$0(); |
5138 if (!!J.getInterceptor(result).$isFuture) | 5241 if (!!J.getInterceptor(result).$isFuture) |
5139 return result; | 5242 return result; |
5140 return; | 5243 return; |
5141 } catch (exception) { | 5244 } catch (exception) { |
5142 t1 = H.unwrapException(exception); | 5245 t1 = H.unwrapException(exception); |
5143 e = t1; | 5246 e = t1; |
5144 s = H.getTraceFromException(exception); | 5247 s = H.getTraceFromException(exception); |
5145 $.Zone__current.handleUncaughtError$2(e, s); | 5248 $.Zone__current.handleUncaughtError$2(e, s); |
5146 } | 5249 } |
5147 }, | 5250 }, |
5148 _AddStreamState_makeErrorHandler: function(controller) { | 5251 _nullDataHandler: [function(value) { |
5149 return new P._AddStreamState_makeErrorHandler_closure(controller); | 5252 }, "call$1", "async___nullDataHandler$closure", 2, 0, 51, 6], |
5150 }, | |
5151 _nullErrorHandler: [function(error, stackTrace) { | 5253 _nullErrorHandler: [function(error, stackTrace) { |
5152 $.Zone__current.handleUncaughtError$2(error, stackTrace); | 5254 $.Zone__current.handleUncaughtError$2(error, stackTrace); |
5153 }, function(error) { | 5255 }, function(error) { |
5154 return P._nullErrorHandler(error, null); | 5256 return P._nullErrorHandler(error, null); |
5155 }, "call$2", "call$1", "async___nullErrorHandler$closure", 2, 2, 8, 5, 3, 4]
, | 5257 }, "call$2", "call$1", "async___nullErrorHandler$closure", 2, 2, 6, 5, 1, 2]
, |
5156 _nullDoneHandler: [function() { | 5258 _nullDoneHandler: [function() { |
5157 }, "call$0", "async___nullDoneHandler$closure", 0, 0, 2], | 5259 }, "call$0", "async___nullDoneHandler$closure", 0, 0, 2], |
5158 _runUserCode: function(userCode, onSuccess, onError) { | 5260 _runUserCode: function(userCode, onSuccess, onError) { |
5159 var e, s, replacement, error, stackTrace, exception, t1, error0; | 5261 var e, s, replacement, error, stackTrace, exception, t1, error0; |
5160 try { | 5262 try { |
5161 onSuccess.call$1(userCode.call$0()); | 5263 onSuccess.call$1(userCode.call$0()); |
5162 } catch (exception) { | 5264 } catch (exception) { |
5163 t1 = H.unwrapException(exception); | 5265 t1 = H.unwrapException(exception); |
5164 e = t1; | 5266 e = t1; |
5165 s = H.getTraceFromException(exception); | 5267 s = H.getTraceFromException(exception); |
(...skipping 25 matching lines...) Expand all Loading... |
5191 else | 5293 else |
5192 future._complete$1(value); | 5294 future._complete$1(value); |
5193 }, | 5295 }, |
5194 _addErrorWithReplacement: function(sink, error, stackTrace) { | 5296 _addErrorWithReplacement: function(sink, error, stackTrace) { |
5195 var replacement = $.Zone__current.errorCallback$2(error, stackTrace); | 5297 var replacement = $.Zone__current.errorCallback$2(error, stackTrace); |
5196 if (replacement != null) { | 5298 if (replacement != null) { |
5197 error = J.get$error$x(replacement); | 5299 error = J.get$error$x(replacement); |
5198 error = error != null ? error : new P.NullThrownError(); | 5300 error = error != null ? error : new P.NullThrownError(); |
5199 stackTrace = replacement.get$stackTrace(); | 5301 stackTrace = replacement.get$stackTrace(); |
5200 } | 5302 } |
5201 sink._addError$2(error, stackTrace); | 5303 sink._async$_addError$2(error, stackTrace); |
5202 }, | 5304 }, |
5203 Timer_Timer: function(duration, callback) { | 5305 Timer_Timer: function(duration, callback) { |
5204 var t1; | 5306 var t1; |
5205 if (J.$eq$($.Zone__current, C.C__RootZone)) | 5307 if (J.$eq$($.Zone__current, C.C__RootZone)) |
5206 return $.Zone__current.createTimer$2(duration, callback); | 5308 return $.Zone__current.createTimer$2(duration, callback); |
5207 t1 = $.Zone__current; | 5309 t1 = $.Zone__current; |
5208 return t1.createTimer$2(duration, t1.bindCallback$2$runGuarded(callback, t
rue)); | 5310 return t1.createTimer$2(duration, t1.bindCallback$2$runGuarded(callback, t
rue)); |
5209 }, | 5311 }, |
| 5312 Timer_Timer$periodic: function(duration, callback) { |
| 5313 var t1; |
| 5314 if (J.$eq$($.Zone__current, C.C__RootZone)) |
| 5315 return $.Zone__current.createPeriodicTimer$2(duration, callback); |
| 5316 t1 = $.Zone__current; |
| 5317 return t1.createPeriodicTimer$2(duration, t1.bindUnaryCallback$2$runGuarde
d(callback, true)); |
| 5318 }, |
5210 Timer__createTimer: function(duration, callback) { | 5319 Timer__createTimer: function(duration, callback) { |
5211 var milliseconds = duration.get$inMilliseconds(); | 5320 var milliseconds = duration.get$inMilliseconds(); |
5212 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | 5321 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); |
5213 }, | 5322 }, |
5214 Timer__createPeriodicTimer: function(duration, callback) { | 5323 Timer__createPeriodicTimer: function(duration, callback) { |
5215 var milliseconds = duration.get$inMilliseconds(); | 5324 var milliseconds = duration.get$inMilliseconds(); |
5216 return H.TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback)
; | 5325 return H.TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback)
; |
5217 }, | 5326 }, |
5218 Zone__enter: function(zone) { | |
5219 var previous = $.Zone__current; | |
5220 $.Zone__current = zone; | |
5221 return previous; | |
5222 }, | |
5223 _parentDelegate: function(zone) { | 5327 _parentDelegate: function(zone) { |
5224 if (zone.get$parent(zone) == null) | 5328 if (zone.get$parent(zone) == null) |
5225 return; | 5329 return; |
5226 return zone.get$parent(zone).get$_delegate(); | 5330 return zone.get$parent(zone).get$_delegate(); |
5227 }, | 5331 }, |
5228 _rootHandleUncaughtError: [function($self, $parent, zone, error, stackTrace)
{ | 5332 _rootHandleUncaughtError: [function($self, $parent, zone, error, stackTrace)
{ |
5229 var entry, t1, t2; | 5333 var t1 = {}; |
5230 entry = new P._AsyncCallbackEntry(new P._rootHandleUncaughtError_closure(e
rror, stackTrace), C.C__RootZone, null); | 5334 t1.error = error; |
5231 t1 = $._nextCallback; | 5335 P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(t1
, stackTrace)); |
5232 if (t1 == null) { | 5336 }, "call$5", "async___rootHandleUncaughtError$closure", 10, 0, 52, 0, 3, 4,
1, 2], |
5233 P._scheduleAsyncCallback(entry); | |
5234 $._lastPriorityCallback = $._lastCallback; | |
5235 } else { | |
5236 t2 = $._lastPriorityCallback; | |
5237 if (t2 == null) { | |
5238 entry.next = t1; | |
5239 $._lastPriorityCallback = entry; | |
5240 $._nextCallback = entry; | |
5241 } else { | |
5242 entry.next = t2.next; | |
5243 t2.next = entry; | |
5244 $._lastPriorityCallback = entry; | |
5245 if (entry.next == null) | |
5246 $._lastCallback = entry; | |
5247 } | |
5248 } | |
5249 }, "call$5", "async___rootHandleUncaughtError$closure", 10, 0, 53, 0, 1, 2,
3, 4], | |
5250 _rootRun: [function($self, $parent, zone, f) { | 5337 _rootRun: [function($self, $parent, zone, f) { |
5251 var old, t1; | 5338 var old, previous, t1; |
5252 if (J.$eq$($.Zone__current, zone)) | 5339 if (J.$eq$($.Zone__current, zone)) |
5253 return f.call$0(); | 5340 return f.call$0(); |
5254 old = P.Zone__enter(zone); | 5341 previous = $.Zone__current; |
| 5342 $.Zone__current = zone; |
| 5343 old = previous; |
5255 try { | 5344 try { |
5256 t1 = f.call$0(); | 5345 t1 = f.call$0(); |
5257 return t1; | 5346 return t1; |
5258 } finally { | 5347 } finally { |
5259 $.Zone__current = old; | 5348 $.Zone__current = old; |
5260 } | 5349 } |
5261 }, "call$4", "async___rootRun$closure", 8, 0, 54, 0, 1, 2, 7], | 5350 }, "call$4", "async___rootRun$closure", 8, 0, 53, 0, 3, 4, 8], |
5262 _rootRunUnary: [function($self, $parent, zone, f, arg) { | 5351 _rootRunUnary: [function($self, $parent, zone, f, arg) { |
5263 var old, t1; | 5352 var old, previous, t1; |
5264 if (J.$eq$($.Zone__current, zone)) | 5353 if (J.$eq$($.Zone__current, zone)) |
5265 return f.call$1(arg); | 5354 return f.call$1(arg); |
5266 old = P.Zone__enter(zone); | 5355 previous = $.Zone__current; |
| 5356 $.Zone__current = zone; |
| 5357 old = previous; |
5267 try { | 5358 try { |
5268 t1 = f.call$1(arg); | 5359 t1 = f.call$1(arg); |
5269 return t1; | 5360 return t1; |
5270 } finally { | 5361 } finally { |
5271 $.Zone__current = old; | 5362 $.Zone__current = old; |
5272 } | 5363 } |
5273 }, "call$5", "async___rootRunUnary$closure", 10, 0, 55, 0, 1, 2, 7, 9], | 5364 }, "call$5", "async___rootRunUnary$closure", 10, 0, 54, 0, 3, 4, 8, 13], |
5274 _rootRunBinary: [function($self, $parent, zone, f, arg1, arg2) { | 5365 _rootRunBinary: [function($self, $parent, zone, f, arg1, arg2) { |
5275 var old, t1; | 5366 var old, previous, t1; |
5276 if (J.$eq$($.Zone__current, zone)) | 5367 if (J.$eq$($.Zone__current, zone)) |
5277 return f.call$2(arg1, arg2); | 5368 return f.call$2(arg1, arg2); |
5278 old = P.Zone__enter(zone); | 5369 previous = $.Zone__current; |
| 5370 $.Zone__current = zone; |
| 5371 old = previous; |
5279 try { | 5372 try { |
5280 t1 = f.call$2(arg1, arg2); | 5373 t1 = f.call$2(arg1, arg2); |
5281 return t1; | 5374 return t1; |
5282 } finally { | 5375 } finally { |
5283 $.Zone__current = old; | 5376 $.Zone__current = old; |
5284 } | 5377 } |
5285 }, "call$6", "async___rootRunBinary$closure", 12, 0, 56, 0, 1, 2, 7, 22, 18]
, | 5378 }, "call$6", "async___rootRunBinary$closure", 12, 0, 55, 0, 3, 4, 8, 20, 21]
, |
5286 _rootRegisterCallback: [function($self, $parent, zone, f) { | 5379 _rootRegisterCallback: [function($self, $parent, zone, f) { |
5287 return f; | 5380 return f; |
5288 }, "call$4", "async___rootRegisterCallback$closure", 8, 0, 57, 0, 1, 2, 7], | 5381 }, "call$4", "async___rootRegisterCallback$closure", 8, 0, 56, 0, 3, 4, 8], |
5289 _rootRegisterUnaryCallback: [function($self, $parent, zone, f) { | 5382 _rootRegisterUnaryCallback: [function($self, $parent, zone, f) { |
5290 return f; | 5383 return f; |
5291 }, "call$4", "async___rootRegisterUnaryCallback$closure", 8, 0, 58, 0, 1, 2,
7], | 5384 }, "call$4", "async___rootRegisterUnaryCallback$closure", 8, 0, 57, 0, 3, 4,
8], |
5292 _rootRegisterBinaryCallback: [function($self, $parent, zone, f) { | 5385 _rootRegisterBinaryCallback: [function($self, $parent, zone, f) { |
5293 return f; | 5386 return f; |
5294 }, "call$4", "async___rootRegisterBinaryCallback$closure", 8, 0, 59, 0, 1, 2
, 7], | 5387 }, "call$4", "async___rootRegisterBinaryCallback$closure", 8, 0, 58, 0, 3, 4
, 8], |
5295 _rootErrorCallback: [function($self, $parent, zone, error, stackTrace) { | 5388 _rootErrorCallback: [function($self, $parent, zone, error, stackTrace) { |
5296 return; | 5389 return; |
5297 }, "call$5", "async___rootErrorCallback$closure", 10, 0, 60, 0, 1, 2, 3, 4], | 5390 }, "call$5", "async___rootErrorCallback$closure", 10, 0, 59, 0, 3, 4, 1, 2], |
5298 _rootScheduleMicrotask: [function($self, $parent, zone, f) { | 5391 _rootScheduleMicrotask: [function($self, $parent, zone, f) { |
5299 var t1 = C.C__RootZone !== zone; | 5392 var t1 = C.C__RootZone !== zone; |
5300 if (t1) { | 5393 if (t1) |
5301 f = zone.bindCallback$2$runGuarded(f, !(!t1 || C.C__RootZone.get$errorZo
ne() === zone.get$errorZone())); | 5394 f = zone.bindCallback$2$runGuarded(f, !(!t1 || C.C__RootZone.get$errorZo
ne() === zone.get$errorZone())); |
5302 zone = C.C__RootZone; | 5395 P._scheduleAsyncCallback(f); |
5303 } | 5396 }, "call$4", "async___rootScheduleMicrotask$closure", 8, 0, 60, 0, 3, 4, 8], |
5304 P._scheduleAsyncCallback(new P._AsyncCallbackEntry(f, zone, null)); | |
5305 }, "call$4", "async___rootScheduleMicrotask$closure", 8, 0, 61, 0, 1, 2, 7], | |
5306 _rootCreateTimer: [function($self, $parent, zone, duration, callback) { | 5397 _rootCreateTimer: [function($self, $parent, zone, duration, callback) { |
5307 return P.Timer__createTimer(duration, C.C__RootZone !== zone ? zone.bindCa
llback$1(callback) : callback); | 5398 return P.Timer__createTimer(duration, C.C__RootZone !== zone ? zone.bindCa
llback$1(callback) : callback); |
5308 }, "call$5", "async___rootCreateTimer$closure", 10, 0, 62, 0, 1, 2, 19, 14], | 5399 }, "call$5", "async___rootCreateTimer$closure", 10, 0, 61, 0, 3, 4, 18, 16], |
5309 _rootCreatePeriodicTimer: [function($self, $parent, zone, duration, callback
) { | 5400 _rootCreatePeriodicTimer: [function($self, $parent, zone, duration, callback
) { |
5310 return P.Timer__createPeriodicTimer(duration, C.C__RootZone !== zone ? zon
e.bindUnaryCallback$1(callback) : callback); | 5401 return P.Timer__createPeriodicTimer(duration, C.C__RootZone !== zone ? zon
e.bindUnaryCallback$1(callback) : callback); |
5311 }, "call$5", "async___rootCreatePeriodicTimer$closure", 10, 0, 63, 0, 1, 2,
19, 14], | 5402 }, "call$5", "async___rootCreatePeriodicTimer$closure", 10, 0, 62, 0, 3, 4,
18, 16], |
5312 _rootPrint: [function($self, $parent, zone, line) { | 5403 _rootPrint: [function($self, $parent, zone, line) { |
5313 H.printString(H.S(line)); | 5404 H.printString(H.S(line)); |
5314 }, "call$4", "async___rootPrint$closure", 8, 0, 64, 0, 1, 2, 10], | 5405 }, "call$4", "async___rootPrint$closure", 8, 0, 63, 0, 3, 4, 10], |
5315 _printToZone: [function(line) { | 5406 _printToZone: [function(line) { |
5316 J.print$1$x($.Zone__current, line); | 5407 J.print$1$x($.Zone__current, line); |
5317 }, "call$1", "async___printToZone$closure", 2, 0, 6], | 5408 }, "call$1", "async___printToZone$closure", 2, 0, 7], |
5318 _rootFork: [function($self, $parent, zone, specification, zoneValues) { | 5409 _rootFork: [function($self, $parent, zone, specification, zoneValues) { |
5319 var valueMap, t1; | 5410 var valueMap, t1; |
5320 $.printToZone = P.async___printToZone$closure(); | 5411 $.printToZone = P.async___printToZone$closure(); |
5321 if (specification == null) | 5412 if (specification == null) |
5322 specification = C._ZoneSpecification_ALf; | 5413 specification = C._ZoneSpecification_ALf; |
5323 else if (!(specification instanceof P._ZoneSpecification)) | 5414 else if (!(specification instanceof P._ZoneSpecification)) |
5324 throw H.wrapException(P.ArgumentError$("ZoneSpecifications must be insta
ntiated with the provided constructor.")); | 5415 throw H.wrapException(P.ArgumentError$("ZoneSpecifications must be insta
ntiated with the provided constructor.")); |
5325 if (zoneValues == null) | 5416 if (zoneValues == null) |
5326 valueMap = zone instanceof P._Zone ? zone.get$_map() : P.HashMap_HashMap
(null, null, null, null, null); | 5417 valueMap = zone instanceof P._Zone ? zone.get$_async$_map() : P.HashMap_
HashMap(null, null, null, null, null); |
5327 else | 5418 else |
5328 valueMap = P.HashMap_HashMap$from(zoneValues, null, null); | 5419 valueMap = P.HashMap_HashMap$from(zoneValues, null, null); |
5329 t1 = new P._CustomZone(null, null, null, null, null, null, null, null, nul
l, null, null, null, null, null, zone, valueMap); | 5420 t1 = new P._CustomZone(null, null, null, null, null, null, null, null, nul
l, null, null, null, null, null, zone, valueMap); |
5330 specification.get$run(); | 5421 specification.get$run(); |
5331 t1._run = zone.get$_run(); | 5422 t1._run = zone.get$_run(); |
5332 specification.get$runUnary(); | 5423 specification.get$runUnary(); |
5333 t1._runUnary = zone.get$_runUnary(); | 5424 t1._runUnary = zone.get$_runUnary(); |
5334 specification.get$runBinary(); | 5425 specification.get$runBinary(); |
5335 t1._runBinary = zone.get$_runBinary(); | 5426 t1._runBinary = zone.get$_runBinary(); |
5336 specification.get$registerCallback(); | 5427 specification.get$registerCallback(); |
5337 t1._registerCallback = zone.get$_registerCallback(); | 5428 t1._registerCallback = zone.get$_registerCallback(); |
5338 specification.get$registerUnaryCallback(); | 5429 specification.get$registerUnaryCallback(); |
5339 t1._registerUnaryCallback = zone.get$_registerUnaryCallback(); | 5430 t1._registerUnaryCallback = zone.get$_registerUnaryCallback(); |
5340 specification.get$registerBinaryCallback(); | 5431 specification.get$registerBinaryCallback(); |
5341 t1._registerBinaryCallback = zone.get$_registerBinaryCallback(); | 5432 t1._registerBinaryCallback = zone.get$_registerBinaryCallback(); |
5342 specification.get$errorCallback(); | 5433 specification.get$errorCallback(); |
5343 t1._errorCallback = zone.get$_errorCallback(); | 5434 t1._errorCallback = zone.get$_errorCallback(); |
5344 specification.get$scheduleMicrotask(); | 5435 specification.get$scheduleMicrotask(); |
5345 t1._scheduleMicrotask = zone.get$_scheduleMicrotask(); | 5436 t1._scheduleMicrotask = zone.get$_scheduleMicrotask(); |
5346 specification.get$createTimer(); | 5437 specification.get$createTimer(); |
5347 t1._createTimer = zone.get$_createTimer(); | 5438 t1._createTimer = zone.get$_createTimer(); |
5348 specification.get$createPeriodicTimer(); | 5439 specification.get$createPeriodicTimer(); |
5349 t1._createPeriodicTimer = zone.get$_createPeriodicTimer(); | 5440 t1._createPeriodicTimer = zone.get$_createPeriodicTimer(); |
5350 J.get$print$x(specification); | 5441 J.get$print$x(specification); |
5351 t1._print = zone.get$_print(); | 5442 t1._print = zone.get$_print(); |
5352 specification.get$fork(); | 5443 specification.get$fork(); |
5353 t1._fork = zone.get$_fork(); | 5444 t1._fork = zone.get$_fork(); |
5354 t1._handleUncaughtError = specification.get$handleUncaughtError() != null
? new P._ZoneFunction(t1, specification.get$handleUncaughtError()) : zone.get$_h
andleUncaughtError(); | 5445 t1._handleUncaughtError = specification.get$handleUncaughtError() != null
? new P._ZoneFunction(t1, specification.get$handleUncaughtError()) : zone.get$_h
andleUncaughtError(); |
5355 return t1; | 5446 return t1; |
5356 }, "call$5", "async___rootFork$closure", 10, 0, 65, 0, 1, 2, 42, 30], | 5447 }, "call$5", "async___rootFork$closure", 10, 0, 64, 0, 3, 4, 30, 31], |
5357 runZoned: function(body, onError, zoneSpecification, zoneValues) { | 5448 runZoned: function(body, onError, zoneSpecification, zoneValues) { |
5358 var errorHandler, zone; | 5449 var errorHandler, zone; |
5359 errorHandler = new P.runZoned_closure(onError); | 5450 errorHandler = new P.runZoned_closure(onError); |
5360 zoneSpecification = new P._ZoneSpecification(errorHandler, null, null, nul
l, null, null, null, null, null, null, null, null, null); | 5451 zoneSpecification = new P._ZoneSpecification(errorHandler, null, null, nul
l, null, null, null, null, null, null, null, null, null); |
5361 zone = $.Zone__current.fork$2$specification$zoneValues(zoneSpecification,
zoneValues); | 5452 zone = $.Zone__current.fork$2$specification$zoneValues(zoneSpecification,
zoneValues); |
5362 return zone.runGuarded$1(body); | 5453 return zone.runGuarded$1(body); |
5363 }, | 5454 }, |
5364 _AsyncRun__initializeScheduleImmediate_internalCallback: { | 5455 _AsyncRun__initializeScheduleImmediate_internalCallback: { |
5365 "^": "Closure:0;_async$_box_0", | 5456 "^": "Closure:0;_box_0", |
5366 call$1: [function(_) { | 5457 call$1: [function(_) { |
5367 var t1, f; | 5458 var t1, f; |
5368 H.leaveJsAsync(); | 5459 --init.globalState.topEventLoop._activeJsAsyncCount; |
5369 t1 = this._async$_box_0; | 5460 t1 = this._box_0; |
5370 f = t1._captured_storedCallback_0; | 5461 f = t1.storedCallback; |
5371 t1._captured_storedCallback_0 = null; | 5462 t1.storedCallback = null; |
5372 f.call$0(); | 5463 f.call$0(); |
5373 }, null, null, 2, 0, null, 11, "call"] | 5464 }, null, null, 2, 0, null, 9, "call"] |
5374 }, | 5465 }, |
5375 _AsyncRun__initializeScheduleImmediate_closure: { | 5466 _AsyncRun__initializeScheduleImmediate_closure: { |
5376 "^": "Closure:66;_async$_box_0,_captured_div_1,_captured_span_2", | 5467 "^": "Closure:40;_box_0,div,span", |
5377 call$1: function(callback) { | 5468 call$1: function(callback) { |
5378 var t1, t2; | 5469 var t1, t2; |
5379 ++init.globalState.topEventLoop._activeJsAsyncCount; | 5470 ++init.globalState.topEventLoop._activeJsAsyncCount; |
5380 this._async$_box_0._captured_storedCallback_0 = callback; | 5471 this._box_0.storedCallback = callback; |
5381 t1 = this._captured_div_1; | 5472 t1 = this.div; |
5382 t2 = this._captured_span_2; | 5473 t2 = this.span; |
5383 t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); | 5474 t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); |
5384 } | 5475 } |
5385 }, | 5476 }, |
5386 _AsyncRun__scheduleImmediateJsOverride_internalCallback: { | 5477 _AsyncRun__scheduleImmediateJsOverride_internalCallback: { |
5387 "^": "Closure:1;_captured_callback_0", | 5478 "^": "Closure:1;callback", |
5388 call$0: [function() { | 5479 call$0: [function() { |
5389 H.leaveJsAsync(); | 5480 --init.globalState.topEventLoop._activeJsAsyncCount; |
5390 this._captured_callback_0.call$0(); | 5481 this.callback.call$0(); |
5391 }, null, null, 0, 0, null, "call"] | 5482 }, null, null, 0, 0, null, "call"] |
5392 }, | 5483 }, |
5393 _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: { | 5484 _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: { |
5394 "^": "Closure:1;_captured_callback_0", | 5485 "^": "Closure:1;callback", |
5395 call$0: [function() { | 5486 call$0: [function() { |
5396 H.leaveJsAsync(); | 5487 --init.globalState.topEventLoop._activeJsAsyncCount; |
5397 this._captured_callback_0.call$0(); | 5488 this.callback.call$0(); |
5398 }, null, null, 0, 0, null, "call"] | 5489 }, null, null, 0, 0, null, "call"] |
5399 }, | 5490 }, |
5400 _UncaughtAsyncError: { | 5491 _awaitOnObject_closure: { |
5401 "^": "AsyncError;error,stackTrace", | 5492 "^": "Closure:0;bodyFunction", |
5402 toString$0: function(_) { | 5493 call$1: [function(result) { |
5403 var result, t1; | 5494 return this.bodyFunction.call$2(0, result); |
5404 result = "Uncaught Error: " + H.S(this.error); | 5495 }, null, null, 2, 0, null, 14, "call"] |
5405 t1 = this.stackTrace; | 5496 }, |
5406 return t1 != null ? result + ("\nStack Trace:\n" + H.S(t1)) : result; | 5497 _awaitOnObject_closure0: { |
5407 }, | 5498 "^": "Closure:5;bodyFunction", |
5408 static: {_UncaughtAsyncError__getBestStackTrace: function(error, stackTrac
e) { | 5499 call$2: [function(error, stackTrace) { |
5409 if (stackTrace != null) | 5500 this.bodyFunction.call$2(1, new H.ExceptionAndStackTrace(error, stackTra
ce)); |
5410 return stackTrace; | 5501 }, null, null, 4, 0, null, 1, 2, "call"] |
5411 if (!!J.getInterceptor(error).$isError) | 5502 }, |
5412 return error.get$stackTrace(); | 5503 _wrapJsFunctionForAsync_closure: { |
5413 return; | 5504 "^": "Closure:65;$protected", |
5414 }} | 5505 call$2: [function(errorCode, result) { |
| 5506 this.$protected(errorCode, result); |
| 5507 }, null, null, 4, 0, null, 45, 14, "call"] |
5415 }, | 5508 }, |
5416 Future: { | 5509 Future: { |
5417 "^": "Object;" | 5510 "^": "Object;" |
5418 }, | 5511 }, |
5419 _Completer: { | 5512 _Completer: { |
5420 "^": "Object;future<", | 5513 "^": "Object;future<", |
5421 completeError$2: function(error, stackTrace) { | 5514 completeError$2: function(error, stackTrace) { |
5422 var replacement; | 5515 var replacement; |
5423 error = error != null ? error : new P.NullThrownError(); | 5516 error = error != null ? error : new P.NullThrownError(); |
5424 if (this.future._state !== 0) | 5517 if (this.future._state !== 0) |
5425 throw H.wrapException(new P.StateError("Future already completed")); | 5518 throw H.wrapException(new P.StateError("Future already completed")); |
5426 replacement = $.Zone__current.errorCallback$2(error, stackTrace); | 5519 replacement = $.Zone__current.errorCallback$2(error, stackTrace); |
5427 if (replacement != null) { | 5520 if (replacement != null) { |
5428 error = J.get$error$x(replacement); | 5521 error = J.get$error$x(replacement); |
5429 error = error != null ? error : new P.NullThrownError(); | 5522 error = error != null ? error : new P.NullThrownError(); |
5430 stackTrace = replacement.get$stackTrace(); | 5523 stackTrace = replacement.get$stackTrace(); |
5431 } | 5524 } |
5432 this._completeError$2(error, stackTrace); | 5525 this._completeError$2(error, stackTrace); |
| 5526 }, |
| 5527 completeError$1: function(error) { |
| 5528 return this.completeError$2(error, null); |
5433 } | 5529 } |
5434 }, | 5530 }, |
5435 _AsyncCompleter: { | 5531 _AsyncCompleter: { |
5436 "^": "_Completer;future", | 5532 "^": "_Completer;future", |
5437 complete$1: function(_, value) { | 5533 complete$1: function(_, value) { |
5438 var t1 = this.future; | 5534 var t1 = this.future; |
5439 if (t1._state !== 0) | 5535 if (t1._state !== 0) |
5440 throw H.wrapException(new P.StateError("Future already completed")); | 5536 throw H.wrapException(new P.StateError("Future already completed")); |
5441 t1._asyncComplete$1(value); | 5537 t1._asyncComplete$1(value); |
5442 }, | 5538 }, |
5443 complete$0: function($receiver) { | 5539 complete$0: function($receiver) { |
5444 return this.complete$1($receiver, null); | 5540 return this.complete$1($receiver, null); |
5445 }, | 5541 }, |
5446 _completeError$2: function(error, stackTrace) { | 5542 _completeError$2: function(error, stackTrace) { |
5447 this.future._asyncCompleteError$2(error, stackTrace); | 5543 this.future._asyncCompleteError$2(error, stackTrace); |
5448 } | 5544 } |
5449 }, | 5545 }, |
| 5546 _SyncCompleter: { |
| 5547 "^": "_Completer;future", |
| 5548 complete$1: [function(_, value) { |
| 5549 var t1 = this.future; |
| 5550 if (t1._state !== 0) |
| 5551 throw H.wrapException(new P.StateError("Future already completed")); |
| 5552 t1._complete$1(value); |
| 5553 }, function($receiver) { |
| 5554 return this.complete$1($receiver, null); |
| 5555 }, "complete$0", "call$1", "call$0", "get$complete", 0, 2, 46, 5, 6], |
| 5556 _completeError$2: function(error, stackTrace) { |
| 5557 this.future._completeError$2(error, stackTrace); |
| 5558 } |
| 5559 }, |
5450 _FutureListener: { | 5560 _FutureListener: { |
5451 "^": "Object;_nextListener@,result>,state,callback,errorCallback<", | 5561 "^": "Object;_nextListener@,result>,state,callback,errorCallback<", |
5452 get$_zone: function() { | 5562 get$_zone: function() { |
5453 return this.result.get$_zone(); | 5563 return this.result.get$_zone(); |
5454 }, | 5564 }, |
5455 get$handlesValue: function() { | 5565 get$handlesValue: function() { |
5456 return (this.state & 1) !== 0; | 5566 return (this.state & 1) !== 0; |
5457 }, | 5567 }, |
5458 get$hasErrorTest: function() { | 5568 get$hasErrorTest: function() { |
5459 return this.state === 6; | 5569 return this.state === 6; |
5460 }, | 5570 }, |
5461 get$handlesComplete: function() { | 5571 get$handlesComplete: function() { |
5462 return this.state === 8; | 5572 return this.state === 8; |
5463 }, | 5573 }, |
5464 get$_onValue: function() { | 5574 get$_onValue: function() { |
5465 return this.callback; | 5575 return this.callback; |
5466 }, | 5576 }, |
5467 get$_onError: function() { | 5577 get$_onError: function() { |
5468 return this.errorCallback; | 5578 return this.errorCallback; |
5469 }, | 5579 }, |
5470 get$_errorTest: function() { | 5580 get$_errorTest: function() { |
5471 return this.callback; | 5581 return this.callback; |
5472 }, | 5582 }, |
5473 get$_whenCompleteAction: function() { | 5583 get$_whenCompleteAction: function() { |
5474 return this.callback; | 5584 return this.callback; |
5475 }, | 5585 }, |
5476 callback$0: function() { | |
5477 return this.callback.call$0(); | |
5478 }, | |
5479 errorCallback$2: function(arg0, arg1) { | 5586 errorCallback$2: function(arg0, arg1) { |
5480 return this.errorCallback.call$2(arg0, arg1); | 5587 return this.errorCallback.call$2(arg0, arg1); |
5481 } | 5588 } |
5482 }, | 5589 }, |
5483 _Future: { | 5590 _Future: { |
5484 "^": "Object;_state,_zone<,_resultOrListeners", | 5591 "^": "Object;_state,_zone<,_resultOrListeners", |
5485 get$_hasError: function() { | 5592 get$_hasError: function() { |
5486 return this._state === 8; | 5593 return this._state === 8; |
5487 }, | 5594 }, |
5488 set$_isChained: function(value) { | 5595 set$_isChained: function(value) { |
5489 if (value) | 5596 this._state = 2; |
5490 this._state = 2; | |
5491 else | |
5492 this._state = 0; | |
5493 }, | 5597 }, |
5494 then$2$onError: function(f, onError) { | 5598 then$2$onError: function(f, onError) { |
5495 var result, t1; | 5599 var currentZone = $.Zone__current; |
5496 result = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
null]); | 5600 if (currentZone !== C.C__RootZone) { |
5497 t1 = result._zone; | 5601 f = currentZone.registerUnaryCallback$1(f); |
5498 if (t1 !== C.C__RootZone) { | |
5499 f = t1.registerUnaryCallback$1(f); | |
5500 if (onError != null) | 5602 if (onError != null) |
5501 onError = P._registerErrorHandler(onError, t1); | 5603 onError = P._registerErrorHandler(onError, currentZone); |
5502 } | 5604 } |
5503 this._addListener$1(new P._FutureListener(null, result, onError == null
? 1 : 3, f, onError)); | 5605 return this._thenNoZoneRegistration$2(f, onError); |
5504 return result; | |
5505 }, | 5606 }, |
5506 then$1: function(f) { | 5607 then$1: function(f) { |
5507 return this.then$2$onError(f, null); | 5608 return this.then$2$onError(f, null); |
5508 }, | 5609 }, |
| 5610 _thenNoZoneRegistration$2: function(f, onError) { |
| 5611 var result = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null
), [null]); |
| 5612 this._addListener$1(new P._FutureListener(null, result, onError == null
? 1 : 3, f, onError)); |
| 5613 return result; |
| 5614 }, |
5509 whenComplete$1: function(action) { | 5615 whenComplete$1: function(action) { |
5510 var t1, result; | 5616 var t1, result; |
5511 t1 = $.Zone__current; | 5617 t1 = $.Zone__current; |
5512 result = new P._Future(0, t1, null); | 5618 result = new P._Future(0, t1, null); |
5513 result.$builtinTypeInfo = this.$builtinTypeInfo; | 5619 result.$builtinTypeInfo = this.$builtinTypeInfo; |
5514 this._addListener$1(new P._FutureListener(null, result, 8, t1 !== C.C__R
ootZone ? t1.registerCallback$1(action) : action, null)); | 5620 this._addListener$1(new P._FutureListener(null, result, 8, t1 !== C.C__R
ootZone ? t1.registerCallback$1(action) : action, null)); |
5515 return result; | 5621 return result; |
5516 }, | 5622 }, |
5517 _markPendingCompletion$0: function() { | 5623 _markPendingCompletion$0: function() { |
5518 if (this._state !== 0) | 5624 if (this._state !== 0) |
5519 throw H.wrapException(new P.StateError("Future already completed")); | 5625 throw H.wrapException(new P.StateError("Future already completed")); |
5520 this._state = 1; | 5626 this._state = 1; |
5521 }, | 5627 }, |
5522 get$_value: function() { | 5628 get$_async$_value: function() { |
5523 return this._resultOrListeners; | 5629 return this._resultOrListeners; |
5524 }, | 5630 }, |
5525 get$_error: function() { | 5631 get$_error: function() { |
5526 return this._resultOrListeners; | 5632 return this._resultOrListeners; |
5527 }, | 5633 }, |
5528 _setValue$1: function(value) { | 5634 _setValue$1: function(value) { |
5529 this._state = 4; | 5635 this._state = 4; |
5530 this._resultOrListeners = value; | 5636 this._resultOrListeners = value; |
5531 }, | 5637 }, |
5532 _setErrorObject$1: function(error) { | 5638 _setErrorObject$1: function(error) { |
5533 this._state = 8; | 5639 this._state = 8; |
5534 this._resultOrListeners = error; | 5640 this._resultOrListeners = error; |
5535 }, | 5641 }, |
5536 _setError$2: function(error, stackTrace) { | 5642 _setError$2: function(error, stackTrace) { |
5537 this._setErrorObject$1(new P.AsyncError(error, stackTrace)); | 5643 this._state = 8; |
| 5644 this._resultOrListeners = new P.AsyncError(error, stackTrace); |
5538 }, | 5645 }, |
5539 _addListener$1: function(listener) { | 5646 _addListener$1: function(listener) { |
5540 if (this._state >= 4) | 5647 if (this._state >= 4) |
5541 this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(this
, listener)); | 5648 this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(this
, listener)); |
5542 else { | 5649 else { |
5543 listener._nextListener = this._resultOrListeners; | 5650 listener._nextListener = this._resultOrListeners; |
5544 this._resultOrListeners = listener; | 5651 this._resultOrListeners = listener; |
5545 } | 5652 } |
5546 }, | 5653 }, |
5547 _removeListeners$0: function() { | 5654 _removeListeners$0: function() { |
5548 var current, prev, next; | 5655 var current, prev, next; |
5549 current = this._resultOrListeners; | 5656 current = this._resultOrListeners; |
5550 this._resultOrListeners = null; | 5657 this._resultOrListeners = null; |
5551 for (prev = null; current != null; prev = current, current = next) { | 5658 for (prev = null; current != null; prev = current, current = next) { |
5552 next = current.get$_nextListener(); | 5659 next = current.get$_nextListener(); |
5553 current.set$_nextListener(prev); | 5660 current.set$_nextListener(prev); |
5554 } | 5661 } |
5555 return prev; | 5662 return prev; |
5556 }, | 5663 }, |
5557 _complete$1: function(value) { | 5664 _complete$1: function(value) { |
5558 var t1, listeners; | 5665 var listeners; |
5559 t1 = J.getInterceptor(value); | 5666 if (!!J.getInterceptor(value).$isFuture) |
5560 if (!!t1.$isFuture) | 5667 P._Future__chainCoreFuture(value, this); |
5561 if (!!t1.$is_Future) | |
5562 P._Future__chainCoreFuture(value, this); | |
5563 else | |
5564 P._Future__chainForeignFuture(value, this); | |
5565 else { | 5668 else { |
5566 listeners = this._removeListeners$0(); | 5669 listeners = this._removeListeners$0(); |
5567 this._setValue$1(value); | 5670 this._state = 4; |
| 5671 this._resultOrListeners = value; |
5568 P._Future__propagateToListeners(this, listeners); | 5672 P._Future__propagateToListeners(this, listeners); |
5569 } | 5673 } |
5570 }, | 5674 }, |
5571 _completeWithValue$1: function(value) { | 5675 _completeWithValue$1: function(value) { |
5572 var listeners = this._removeListeners$0(); | 5676 var listeners = this._removeListeners$0(); |
5573 this._setValue$1(value); | 5677 this._state = 4; |
| 5678 this._resultOrListeners = value; |
5574 P._Future__propagateToListeners(this, listeners); | 5679 P._Future__propagateToListeners(this, listeners); |
5575 }, | 5680 }, |
5576 _completeError$2: [function(error, stackTrace) { | 5681 _completeError$2: [function(error, stackTrace) { |
5577 var listeners = this._removeListeners$0(); | 5682 var listeners = this._removeListeners$0(); |
5578 this._setErrorObject$1(new P.AsyncError(error, stackTrace)); | 5683 this._state = 8; |
| 5684 this._resultOrListeners = new P.AsyncError(error, stackTrace); |
5579 P._Future__propagateToListeners(this, listeners); | 5685 P._Future__propagateToListeners(this, listeners); |
5580 }, function(error) { | 5686 }, function(error) { |
5581 return this._completeError$2(error, null); | 5687 return this._completeError$2(error, null); |
5582 }, "_completeError$1", "call$2", "call$1", "get$_completeError", 2, 2, 8,
5, 3, 4], | 5688 }, "_completeError$1", "call$2", "call$1", "get$_completeError", 2, 2, 6,
5, 1, 2], |
5583 _asyncComplete$1: function(value) { | 5689 _asyncComplete$1: function(value) { |
5584 var t1; | 5690 var t1; |
5585 if (value == null) | 5691 if (value == null) |
5586 ; | 5692 ; |
5587 else { | 5693 else if (!!J.getInterceptor(value).$isFuture) { |
5588 t1 = J.getInterceptor(value); | 5694 t1 = value._state; |
5589 if (!!t1.$isFuture) { | 5695 if (t1 >= 4 && t1 === 8) { |
5590 if (!!t1.$is_Future) { | 5696 this._markPendingCompletion$0(); |
5591 t1 = value._state; | 5697 this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure(
this, value)); |
5592 if (t1 >= 4 && t1 === 8) { | 5698 } else |
5593 this._markPendingCompletion$0(); | 5699 P._Future__chainCoreFuture(value, this); |
5594 this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_clos
ure(this, value)); | 5700 return; |
5595 } else | |
5596 P._Future__chainCoreFuture(value, this); | |
5597 } else | |
5598 P._Future__chainForeignFuture(value, this); | |
5599 return; | |
5600 } | |
5601 } | 5701 } |
5602 this._markPendingCompletion$0(); | 5702 this._markPendingCompletion$0(); |
5603 this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure0(thi
s, value)); | 5703 this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure0(thi
s, value)); |
5604 }, | 5704 }, |
5605 _asyncCompleteError$2: function(error, stackTrace) { | 5705 _asyncCompleteError$2: function(error, stackTrace) { |
5606 this._markPendingCompletion$0(); | 5706 this._markPendingCompletion$0(); |
5607 this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure
(this, error, stackTrace)); | 5707 this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure
(this, error, stackTrace)); |
5608 }, | 5708 }, |
5609 $isFuture: 1, | 5709 $isFuture: 1, |
5610 static: {_Future__chainForeignFuture: function(source, target) { | 5710 static: {_Future__chainForeignFuture: function(source, target) { |
(...skipping 11 matching lines...) Expand all Loading... |
5622 var listener; | 5722 var listener; |
5623 target.set$_isChained(true); | 5723 target.set$_isChained(true); |
5624 listener = new P._FutureListener(null, target, 0, null, null); | 5724 listener = new P._FutureListener(null, target, 0, null, null); |
5625 if (source._state >= 4) | 5725 if (source._state >= 4) |
5626 P._Future__propagateToListeners(source, listener); | 5726 P._Future__propagateToListeners(source, listener); |
5627 else | 5727 else |
5628 source._addListener$1(listener); | 5728 source._addListener$1(listener); |
5629 }, _Future__propagateToListeners: function(source, listeners) { | 5729 }, _Future__propagateToListeners: function(source, listeners) { |
5630 var t1, t2, t3, hasError, asyncError, listeners0, sourceValue, zone, o
ldZone, chainSource, result; | 5730 var t1, t2, t3, hasError, asyncError, listeners0, sourceValue, zone, o
ldZone, chainSource, result; |
5631 t1 = {}; | 5731 t1 = {}; |
5632 t1._captured_source_4 = source; | 5732 t1.source = source; |
5633 for (t2 = source; true;) { | 5733 for (t2 = source; true;) { |
5634 t3 = {}; | 5734 t3 = {}; |
5635 hasError = t2.get$_hasError(); | 5735 hasError = t2.get$_hasError(); |
5636 if (listeners == null) { | 5736 if (listeners == null) { |
5637 if (hasError) { | 5737 if (hasError) { |
5638 asyncError = t1._captured_source_4.get$_error(); | 5738 asyncError = t1.source.get$_error(); |
5639 t1._captured_source_4.get$_zone().handleUncaughtError$2(J.get$er
ror$x(asyncError), asyncError.get$stackTrace()); | 5739 t1.source.get$_zone().handleUncaughtError$2(J.get$error$x(asyncE
rror), asyncError.get$stackTrace()); |
5640 } | 5740 } |
5641 return; | 5741 return; |
5642 } | 5742 } |
5643 for (; listeners.get$_nextListener() != null; listeners = listeners0
) { | 5743 for (; listeners.get$_nextListener() != null; listeners = listeners0
) { |
5644 listeners0 = listeners.get$_nextListener(); | 5744 listeners0 = listeners.get$_nextListener(); |
5645 listeners.set$_nextListener(null); | 5745 listeners.set$_nextListener(null); |
5646 P._Future__propagateToListeners(t1._captured_source_4, listeners); | 5746 P._Future__propagateToListeners(t1.source, listeners); |
5647 } | 5747 } |
5648 t3._captured_listenerHasValue_1 = true; | 5748 t3.listenerHasValue = true; |
5649 sourceValue = hasError ? null : t1._captured_source_4.get$_value(); | 5749 sourceValue = hasError ? null : t1.source.get$_async$_value(); |
5650 t3._captured_listenerValueOrError_2 = sourceValue; | 5750 t3.listenerValueOrError = sourceValue; |
5651 t3._captured_isPropagationAborted_3 = false; | 5751 t3.isPropagationAborted = false; |
5652 t2 = !hasError; | 5752 t2 = !hasError; |
5653 if (!t2 || listeners.get$handlesValue() || listeners.get$handlesComp
lete()) { | 5753 if (!t2 || listeners.get$handlesValue() || listeners.get$handlesComp
lete()) { |
5654 zone = listeners.get$_zone(); | 5754 zone = listeners.get$_zone(); |
5655 if (hasError && !t1._captured_source_4.get$_zone().inSameErrorZone
$1(zone)) { | 5755 if (hasError && !t1.source.get$_zone().inSameErrorZone$1(zone)) { |
5656 asyncError = t1._captured_source_4.get$_error(); | 5756 asyncError = t1.source.get$_error(); |
5657 t1._captured_source_4.get$_zone().handleUncaughtError$2(J.get$er
ror$x(asyncError), asyncError.get$stackTrace()); | 5757 t1.source.get$_zone().handleUncaughtError$2(J.get$error$x(asyncE
rror), asyncError.get$stackTrace()); |
5658 return; | 5758 return; |
5659 } | 5759 } |
5660 oldZone = $.Zone__current; | 5760 oldZone = $.Zone__current; |
5661 if (oldZone == null ? zone != null : oldZone !== zone) | 5761 if (oldZone == null ? zone != null : oldZone !== zone) |
5662 $.Zone__current = zone; | 5762 $.Zone__current = zone; |
5663 else | 5763 else |
5664 oldZone = null; | 5764 oldZone = null; |
5665 if (t2) { | 5765 if (t2) { |
5666 if (listeners.get$handlesValue()) | 5766 if (listeners.get$handlesValue()) |
5667 t3._captured_listenerHasValue_1 = new P._Future__propagateToLi
steners_handleValueCallback(t3, listeners, sourceValue, zone).call$0(); | 5767 t3.listenerHasValue = new P._Future__propagateToListeners_hand
leValueCallback(t3, listeners, sourceValue, zone).call$0(); |
5668 } else | 5768 } else |
5669 new P._Future__propagateToListeners_handleError(t1, t3, listener
s, zone).call$0(); | 5769 new P._Future__propagateToListeners_handleError(t1, t3, listener
s, zone).call$0(); |
5670 if (listeners.get$handlesComplete()) | 5770 if (listeners.get$handlesComplete()) |
5671 new P._Future__propagateToListeners_handleWhenCompleteCallback(t
1, t3, hasError, listeners, zone).call$0(); | 5771 new P._Future__propagateToListeners_handleWhenCompleteCallback(t
1, t3, hasError, listeners, zone).call$0(); |
5672 if (oldZone != null) | 5772 if (oldZone != null) |
5673 $.Zone__current = oldZone; | 5773 $.Zone__current = oldZone; |
5674 if (t3._captured_isPropagationAborted_3) | 5774 if (t3.isPropagationAborted) |
5675 return; | 5775 return; |
5676 if (t3._captured_listenerHasValue_1 === true) { | 5776 if (t3.listenerHasValue === true) { |
5677 t2 = t3._captured_listenerValueOrError_2; | 5777 t2 = t3.listenerValueOrError; |
5678 t2 = (sourceValue == null ? t2 != null : sourceValue !== t2) &&
!!J.getInterceptor(t2).$isFuture; | 5778 t2 = (sourceValue == null ? t2 != null : sourceValue !== t2) &&
!!J.getInterceptor(t2).$isFuture; |
5679 } else | 5779 } else |
5680 t2 = false; | 5780 t2 = false; |
5681 if (t2) { | 5781 if (t2) { |
5682 chainSource = t3._captured_listenerValueOrError_2; | 5782 chainSource = t3.listenerValueOrError; |
5683 result = J.get$result$x(listeners); | 5783 result = J.get$result$x(listeners); |
5684 if (chainSource instanceof P._Future) | 5784 if (chainSource instanceof P._Future) |
5685 if (chainSource._state >= 4) { | 5785 if (chainSource._state >= 4) { |
5686 result.set$_isChained(true); | 5786 result.set$_isChained(true); |
5687 t1._captured_source_4 = chainSource; | 5787 t1.source = chainSource; |
5688 listeners = new P._FutureListener(null, result, 0, null, nul
l); | 5788 listeners = new P._FutureListener(null, result, 0, null, nul
l); |
5689 t2 = chainSource; | 5789 t2 = chainSource; |
5690 continue; | 5790 continue; |
5691 } else | 5791 } else |
5692 P._Future__chainCoreFuture(chainSource, result); | 5792 P._Future__chainCoreFuture(chainSource, result); |
5693 else | 5793 else |
5694 P._Future__chainForeignFuture(chainSource, result); | 5794 P._Future__chainForeignFuture(chainSource, result); |
5695 return; | 5795 return; |
5696 } | 5796 } |
5697 } | 5797 } |
5698 result = J.get$result$x(listeners); | 5798 result = J.get$result$x(listeners); |
5699 listeners = result._removeListeners$0(); | 5799 listeners = result._removeListeners$0(); |
5700 t2 = t3._captured_listenerHasValue_1; | 5800 t2 = t3.listenerHasValue; |
5701 t3 = t3._captured_listenerValueOrError_2; | 5801 t3 = t3.listenerValueOrError; |
5702 if (t2 === true) | 5802 if (t2 === true) |
5703 result._setValue$1(t3); | 5803 result._setValue$1(t3); |
5704 else | 5804 else |
5705 result._setErrorObject$1(t3); | 5805 result._setErrorObject$1(t3); |
5706 t1._captured_source_4 = result; | 5806 t1.source = result; |
5707 t2 = result; | 5807 t2 = result; |
5708 } | 5808 } |
5709 }} | 5809 }} |
5710 }, | 5810 }, |
5711 _Future__addListener_closure: { | 5811 _Future__addListener_closure: { |
5712 "^": "Closure:1;_async$_captured_this_0,_captured_listener_1", | 5812 "^": "Closure:1;$this,listener", |
5713 call$0: [function() { | 5813 call$0: [function() { |
5714 P._Future__propagateToListeners(this._async$_captured_this_0, this._capt
ured_listener_1); | 5814 P._Future__propagateToListeners(this.$this, this.listener); |
5715 }, null, null, 0, 0, null, "call"] | 5815 }, null, null, 0, 0, null, "call"] |
5716 }, | 5816 }, |
5717 _Future__chainForeignFuture_closure: { | 5817 _Future__chainForeignFuture_closure: { |
5718 "^": "Closure:0;_captured_target_0", | 5818 "^": "Closure:0;target", |
5719 call$1: [function(value) { | 5819 call$1: [function(value) { |
5720 this._captured_target_0._completeWithValue$1(value); | 5820 this.target._completeWithValue$1(value); |
5721 }, null, null, 2, 0, null, 8, "call"] | 5821 }, null, null, 2, 0, null, 6, "call"] |
5722 }, | 5822 }, |
5723 _Future__chainForeignFuture_closure0: { | 5823 _Future__chainForeignFuture_closure0: { |
5724 "^": "Closure:9;_captured_target_1", | 5824 "^": "Closure:9;target", |
5725 call$2: [function(error, stackTrace) { | 5825 call$2: [function(error, stackTrace) { |
5726 this._captured_target_1._completeError$2(error, stackTrace); | 5826 this.target._completeError$2(error, stackTrace); |
5727 }, function(error) { | 5827 }, function(error) { |
5728 return this.call$2(error, null); | 5828 return this.call$2(error, null); |
5729 }, "call$1", null, null, null, 2, 2, null, 5, 3, 4, "call"] | 5829 }, "call$1", null, null, null, 2, 2, null, 5, 1, 2, "call"] |
5730 }, | 5830 }, |
5731 _Future__chainForeignFuture_closure1: { | 5831 _Future__chainForeignFuture_closure1: { |
5732 "^": "Closure:1;_captured_target_2,_captured_e_3,_captured_s_4", | 5832 "^": "Closure:1;target,e,s", |
5733 call$0: [function() { | 5833 call$0: [function() { |
5734 this._captured_target_2._completeError$2(this._captured_e_3, this._captu
red_s_4); | 5834 this.target._completeError$2(this.e, this.s); |
5735 }, null, null, 0, 0, null, "call"] | 5835 }, null, null, 0, 0, null, "call"] |
5736 }, | 5836 }, |
5737 _Future__asyncComplete_closure: { | 5837 _Future__asyncComplete_closure: { |
5738 "^": "Closure:1;_async$_captured_this_0,_captured_coreFuture_1", | 5838 "^": "Closure:1;$this,coreFuture", |
5739 call$0: [function() { | 5839 call$0: [function() { |
5740 P._Future__chainCoreFuture(this._captured_coreFuture_1, this._async$_cap
tured_this_0); | 5840 P._Future__chainCoreFuture(this.coreFuture, this.$this); |
5741 }, null, null, 0, 0, null, "call"] | 5841 }, null, null, 0, 0, null, "call"] |
5742 }, | 5842 }, |
5743 _Future__asyncComplete_closure0: { | 5843 _Future__asyncComplete_closure0: { |
5744 "^": "Closure:1;_async$_captured_this_2,_captured_value_3", | 5844 "^": "Closure:1;$this,value", |
5745 call$0: [function() { | 5845 call$0: [function() { |
5746 this._async$_captured_this_2._completeWithValue$1(this._captured_value_3
); | 5846 this.$this._completeWithValue$1(this.value); |
5747 }, null, null, 0, 0, null, "call"] | 5847 }, null, null, 0, 0, null, "call"] |
5748 }, | 5848 }, |
5749 _Future__asyncCompleteError_closure: { | 5849 _Future__asyncCompleteError_closure: { |
5750 "^": "Closure:1;_async$_captured_this_0,_captured_error_1,_captured_stackT
race_2", | 5850 "^": "Closure:1;$this,error,stackTrace", |
5751 call$0: [function() { | 5851 call$0: [function() { |
5752 this._async$_captured_this_0._completeError$2(this._captured_error_1, th
is._captured_stackTrace_2); | 5852 this.$this._completeError$2(this.error, this.stackTrace); |
5753 }, null, null, 0, 0, null, "call"] | 5853 }, null, null, 0, 0, null, "call"] |
5754 }, | 5854 }, |
5755 _Future__propagateToListeners_handleValueCallback: { | 5855 _Future__propagateToListeners_handleValueCallback: { |
5756 "^": "Closure:68;_box_1,_captured_listener_3,_captured_sourceValue_4,_capt
ured_zone_5", | 5856 "^": "Closure:39;_box_1,listener,sourceValue,zone", |
5757 call$0: function() { | 5857 call$0: function() { |
5758 var e, s, exception, t1; | 5858 var e, s, exception, t1; |
5759 try { | 5859 try { |
5760 this._box_1._captured_listenerValueOrError_2 = this._captured_zone_5.r
unUnary$2(this._captured_listener_3.get$_onValue(), this._captured_sourceValue_4
); | 5860 this._box_1.listenerValueOrError = this.zone.runUnary$2(this.listener.
get$_onValue(), this.sourceValue); |
5761 return true; | 5861 return true; |
5762 } catch (exception) { | 5862 } catch (exception) { |
5763 t1 = H.unwrapException(exception); | 5863 t1 = H.unwrapException(exception); |
5764 e = t1; | 5864 e = t1; |
5765 s = H.getTraceFromException(exception); | 5865 s = H.getTraceFromException(exception); |
5766 this._box_1._captured_listenerValueOrError_2 = new P.AsyncError(e, s); | 5866 this._box_1.listenerValueOrError = new P.AsyncError(e, s); |
5767 return false; | 5867 return false; |
5768 } | 5868 } |
5769 } | 5869 } |
5770 }, | 5870 }, |
5771 _Future__propagateToListeners_handleError: { | 5871 _Future__propagateToListeners_handleError: { |
5772 "^": "Closure:2;_box_2,_box_1,_captured_listener_6,_captured_zone_7", | 5872 "^": "Closure:2;_box_2,_box_1,listener,zone", |
5773 call$0: function() { | 5873 call$0: function() { |
5774 var asyncError, matchesTest, test, e, s, errorCallback, e0, s0, t1, exce
ption, t2, listenerValueOrError, t3, t4; | 5874 var asyncError, matchesTest, test, e, s, errorCallback, e0, s0, t1, exce
ption, t2, listenerValueOrError, t3, t4; |
5775 asyncError = this._box_2._captured_source_4.get$_error(); | 5875 asyncError = this._box_2.source.get$_error(); |
5776 matchesTest = true; | 5876 matchesTest = true; |
5777 t1 = this._captured_listener_6; | 5877 t1 = this.listener; |
5778 if (t1.get$hasErrorTest()) { | 5878 if (t1.get$hasErrorTest()) { |
5779 test = t1.get$_errorTest(); | 5879 test = t1.get$_errorTest(); |
5780 try { | 5880 try { |
5781 matchesTest = this._captured_zone_7.runUnary$2(test, J.get$error$x(a
syncError)); | 5881 matchesTest = this.zone.runUnary$2(test, J.get$error$x(asyncError)); |
5782 } catch (exception) { | 5882 } catch (exception) { |
5783 t1 = H.unwrapException(exception); | 5883 t1 = H.unwrapException(exception); |
5784 e = t1; | 5884 e = t1; |
5785 s = H.getTraceFromException(exception); | 5885 s = H.getTraceFromException(exception); |
5786 t1 = J.get$error$x(asyncError); | 5886 t1 = J.get$error$x(asyncError); |
5787 t2 = e; | 5887 t2 = e; |
5788 listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? async
Error : new P.AsyncError(e, s); | 5888 listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? async
Error : new P.AsyncError(e, s); |
5789 t1 = this._box_1; | 5889 t1 = this._box_1; |
5790 t1._captured_listenerValueOrError_2 = listenerValueOrError; | 5890 t1.listenerValueOrError = listenerValueOrError; |
5791 t1._captured_listenerHasValue_1 = false; | 5891 t1.listenerHasValue = false; |
5792 return; | 5892 return; |
5793 } | 5893 } |
5794 } | 5894 } |
5795 errorCallback = t1.get$_onError(); | 5895 errorCallback = t1.get$_onError(); |
5796 if (matchesTest === true && errorCallback != null) { | 5896 if (matchesTest === true && errorCallback != null) { |
5797 try { | 5897 try { |
5798 t1 = errorCallback; | 5898 t1 = errorCallback; |
5799 t2 = H.getDynamicRuntimeType(); | 5899 t2 = H.getDynamicRuntimeType(); |
5800 t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1); | 5900 t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1); |
5801 t3 = this._captured_zone_7; | 5901 t3 = this.zone; |
5802 t4 = this._box_1; | 5902 t4 = this._box_1; |
5803 if (t2) | 5903 if (t2) |
5804 t4._captured_listenerValueOrError_2 = t3.runBinary$3(errorCallback
, J.get$error$x(asyncError), asyncError.get$stackTrace()); | 5904 t4.listenerValueOrError = t3.runBinary$3(errorCallback, J.get$erro
r$x(asyncError), asyncError.get$stackTrace()); |
5805 else | 5905 else |
5806 t4._captured_listenerValueOrError_2 = t3.runUnary$2(errorCallback,
J.get$error$x(asyncError)); | 5906 t4.listenerValueOrError = t3.runUnary$2(errorCallback, J.get$error
$x(asyncError)); |
5807 } catch (exception) { | 5907 } catch (exception) { |
5808 t1 = H.unwrapException(exception); | 5908 t1 = H.unwrapException(exception); |
5809 e0 = t1; | 5909 e0 = t1; |
5810 s0 = H.getTraceFromException(exception); | 5910 s0 = H.getTraceFromException(exception); |
5811 t1 = J.get$error$x(asyncError); | 5911 t1 = J.get$error$x(asyncError); |
5812 t2 = e0; | 5912 t2 = e0; |
5813 listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? async
Error : new P.AsyncError(e0, s0); | 5913 listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? async
Error : new P.AsyncError(e0, s0); |
5814 t1 = this._box_1; | 5914 t1 = this._box_1; |
5815 t1._captured_listenerValueOrError_2 = listenerValueOrError; | 5915 t1.listenerValueOrError = listenerValueOrError; |
5816 t1._captured_listenerHasValue_1 = false; | 5916 t1.listenerHasValue = false; |
5817 return; | 5917 return; |
5818 } | 5918 } |
5819 this._box_1._captured_listenerHasValue_1 = true; | 5919 this._box_1.listenerHasValue = true; |
5820 } else { | 5920 } else { |
5821 t1 = this._box_1; | 5921 t1 = this._box_1; |
5822 t1._captured_listenerValueOrError_2 = asyncError; | 5922 t1.listenerValueOrError = asyncError; |
5823 t1._captured_listenerHasValue_1 = false; | 5923 t1.listenerHasValue = false; |
5824 } | 5924 } |
5825 } | 5925 } |
5826 }, | 5926 }, |
5827 _Future__propagateToListeners_handleWhenCompleteCallback: { | 5927 _Future__propagateToListeners_handleWhenCompleteCallback: { |
5828 "^": "Closure:2;_box_2,_box_1,_captured_hasError_8,_captured_listener_9,_c
aptured_zone_10", | 5928 "^": "Closure:2;_box_2,_box_1,hasError,listener,zone", |
5829 call$0: function() { | 5929 call$0: function() { |
5830 var t1, e, s, completeResult, t2, exception, result; | 5930 var t1, e, s, completeResult, t2, exception, result; |
5831 t1 = {}; | 5931 t1 = {}; |
5832 t1._captured_completeResult_0 = null; | 5932 t1.completeResult = null; |
5833 try { | 5933 try { |
5834 completeResult = this._captured_zone_10.run$1(this._captured_listener_
9.get$_whenCompleteAction()); | 5934 completeResult = this.zone.run$1(this.listener.get$_whenCompleteAction
()); |
5835 t1._captured_completeResult_0 = completeResult; | 5935 t1.completeResult = completeResult; |
5836 t2 = completeResult; | 5936 t2 = completeResult; |
5837 } catch (exception) { | 5937 } catch (exception) { |
5838 t1 = H.unwrapException(exception); | 5938 t1 = H.unwrapException(exception); |
5839 e = t1; | 5939 e = t1; |
5840 s = H.getTraceFromException(exception); | 5940 s = H.getTraceFromException(exception); |
5841 if (this._captured_hasError_8) { | 5941 if (this.hasError) { |
5842 t1 = J.get$error$x(this._box_2._captured_source_4.get$_error()); | 5942 t1 = J.get$error$x(this._box_2.source.get$_error()); |
5843 t2 = e; | 5943 t2 = e; |
5844 t2 = t1 == null ? t2 == null : t1 === t2; | 5944 t2 = t1 == null ? t2 == null : t1 === t2; |
5845 t1 = t2; | 5945 t1 = t2; |
5846 } else | 5946 } else |
5847 t1 = false; | 5947 t1 = false; |
5848 t2 = this._box_1; | 5948 t2 = this._box_1; |
5849 if (t1) | 5949 if (t1) |
5850 t2._captured_listenerValueOrError_2 = this._box_2._captured_source_4
.get$_error(); | 5950 t2.listenerValueOrError = this._box_2.source.get$_error(); |
5851 else | 5951 else |
5852 t2._captured_listenerValueOrError_2 = new P.AsyncError(e, s); | 5952 t2.listenerValueOrError = new P.AsyncError(e, s); |
5853 t2._captured_listenerHasValue_1 = false; | 5953 t2.listenerHasValue = false; |
5854 return; | 5954 return; |
5855 } | 5955 } |
5856 if (!!J.getInterceptor(t2).$isFuture) { | 5956 if (!!J.getInterceptor(t2).$isFuture) { |
5857 result = J.get$result$x(this._captured_listener_9); | 5957 result = J.get$result$x(this.listener); |
5858 result.set$_isChained(true); | 5958 result.set$_isChained(true); |
5859 this._box_1._captured_isPropagationAborted_3 = true; | 5959 this._box_1.isPropagationAborted = true; |
5860 t2.then$2$onError(new P._Future__propagateToListeners_handleWhenComple
teCallback_closure(this._box_2, result), new P._Future__propagateToListeners_han
dleWhenCompleteCallback_closure0(t1, result)); | 5960 t2.then$2$onError(new P._Future__propagateToListeners_handleWhenComple
teCallback_closure(this._box_2, result), new P._Future__propagateToListeners_han
dleWhenCompleteCallback_closure0(t1, result)); |
5861 } | 5961 } |
5862 } | 5962 } |
5863 }, | 5963 }, |
5864 _Future__propagateToListeners_handleWhenCompleteCallback_closure: { | 5964 _Future__propagateToListeners_handleWhenCompleteCallback_closure: { |
5865 "^": "Closure:0;_box_2,_captured_result_11", | 5965 "^": "Closure:0;_box_2,result", |
5866 call$1: [function(ignored) { | 5966 call$1: [function(ignored) { |
5867 P._Future__propagateToListeners(this._box_2._captured_source_4, new P._F
utureListener(null, this._captured_result_11, 0, null, null)); | 5967 P._Future__propagateToListeners(this._box_2.source, new P._FutureListene
r(null, this.result, 0, null, null)); |
5868 }, null, null, 2, 0, null, 33, "call"] | 5968 }, null, null, 2, 0, null, 34, "call"] |
5869 }, | 5969 }, |
5870 _Future__propagateToListeners_handleWhenCompleteCallback_closure0: { | 5970 _Future__propagateToListeners_handleWhenCompleteCallback_closure0: { |
5871 "^": "Closure:9;_async$_box_0,_captured_result_12", | 5971 "^": "Closure:9;_box_0,result", |
5872 call$2: [function(error, stackTrace) { | 5972 call$2: [function(error, stackTrace) { |
5873 var t1, completeResult; | 5973 var t1, completeResult; |
5874 t1 = this._async$_box_0; | 5974 t1 = this._box_0; |
5875 if (!(t1._captured_completeResult_0 instanceof P._Future)) { | 5975 if (!(t1.completeResult instanceof P._Future)) { |
5876 completeResult = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current
, null), [null]); | 5976 completeResult = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current
, null), [null]); |
5877 t1._captured_completeResult_0 = completeResult; | 5977 t1.completeResult = completeResult; |
5878 completeResult._setError$2(error, stackTrace); | 5978 completeResult._setError$2(error, stackTrace); |
5879 } | 5979 } |
5880 P._Future__propagateToListeners(t1._captured_completeResult_0, new P._Fu
tureListener(null, this._captured_result_12, 0, null, null)); | 5980 P._Future__propagateToListeners(t1.completeResult, new P._FutureListener
(null, this.result, 0, null, null)); |
5881 }, function(error) { | 5981 }, function(error) { |
5882 return this.call$2(error, null); | 5982 return this.call$2(error, null); |
5883 }, "call$1", null, null, null, 2, 2, null, 5, 3, 4, "call"] | 5983 }, "call$1", null, null, null, 2, 2, null, 5, 1, 2, "call"] |
5884 }, | 5984 }, |
5885 _AsyncCallbackEntry: { | 5985 _AsyncCallbackEntry: { |
5886 "^": "Object;callback,zone<,next@", | 5986 "^": "Object;callback,next" |
5887 callback$0: function() { | |
5888 return this.callback.call$0(); | |
5889 } | |
5890 }, | 5987 }, |
5891 Stream: { | 5988 Stream: { |
5892 "^": "Object;", | 5989 "^": "Object;", |
5893 map$1: function(_, convert) { | 5990 map$1: function(_, convert) { |
5894 return H.setRuntimeTypeInfo(new P._MapStream(convert, this), [H.getRunti
meTypeArgument(this, "Stream", 0), null]); | 5991 return H.setRuntimeTypeInfo(new P._MapStream(convert, this), [H.getRunti
meTypeArgument(this, "Stream", 0), null]); |
5895 }, | 5992 }, |
5896 pipe$1: function(streamConsumer) { | 5993 pipe$1: function(streamConsumer) { |
5897 return streamConsumer._async$_target.addStream$2$cancelOnError(this, tru
e).then$1(new P.Stream_pipe_closure(streamConsumer)); | 5994 return streamConsumer.addStream$1(this).then$1(new P.Stream_pipe_closure
(streamConsumer)); |
5898 }, | 5995 }, |
5899 contains$1: function(_, needle) { | 5996 contains$1: function(_, needle) { |
5900 var t1, future; | 5997 var t1, future; |
5901 t1 = {}; | 5998 t1 = {}; |
5902 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.bool]); | 5999 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.bool]); |
5903 t1._captured_subscription_0 = null; | 6000 t1.subscription = null; |
5904 t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError
(new P.Stream_contains_closure(t1, this, needle, future), true, new P.Stream_con
tains_closure0(future), future.get$_completeError()); | 6001 t1.subscription = this.listen$4$cancelOnError$onDone$onError(new P.Strea
m_contains_closure(t1, this, needle, future), true, new P.Stream_contains_closur
e0(future), future.get$_completeError()); |
5905 return future; | 6002 return future; |
5906 }, | 6003 }, |
5907 forEach$1: function(_, action) { | 6004 forEach$1: function(_, action) { |
5908 var t1, future; | 6005 var t1, future; |
5909 t1 = {}; | 6006 t1 = {}; |
5910 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
null]); | 6007 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
null]); |
5911 t1._captured_subscription_0 = null; | 6008 t1.subscription = null; |
5912 t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError
(new P.Stream_forEach_closure(t1, this, action, future), true, new P.Stream_forE
ach_closure0(future), future.get$_completeError()); | 6009 t1.subscription = this.listen$4$cancelOnError$onDone$onError(new P.Strea
m_forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0
(future), future.get$_completeError()); |
5913 return future; | 6010 return future; |
5914 }, | 6011 }, |
5915 get$length: function(_) { | 6012 get$length: function(_) { |
5916 var t1, future; | 6013 var t1, future; |
5917 t1 = {}; | 6014 t1 = {}; |
5918 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.$int]); | 6015 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.$int]); |
5919 t1._captured_count_0 = 0; | 6016 t1.count = 0; |
5920 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t
1), true, new P.Stream_length_closure0(t1, future), future.get$_completeError())
; | 6017 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t
1), true, new P.Stream_length_closure0(t1, future), future.get$_completeError())
; |
5921 return future; | 6018 return future; |
5922 }, | 6019 }, |
5923 get$isEmpty: function(_) { | 6020 get$isEmpty: function(_) { |
5924 var t1, future; | 6021 var t1, future; |
5925 t1 = {}; | 6022 t1 = {}; |
5926 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.bool]); | 6023 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
P.bool]); |
5927 t1._captured_subscription_0 = null; | 6024 t1.subscription = null; |
5928 t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError
(new P.Stream_isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(f
uture), future.get$_completeError()); | 6025 t1.subscription = this.listen$4$cancelOnError$onDone$onError(new P.Strea
m_isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(future), futu
re.get$_completeError()); |
5929 return future; | 6026 return future; |
5930 }, | 6027 }, |
5931 toList$0: function(_) { | 6028 toList$0: function(_) { |
5932 var result, future; | 6029 var result, future; |
5933 result = H.setRuntimeTypeInfo([], [H.getRuntimeTypeArgument(this, "Strea
m", 0)]); | 6030 result = H.setRuntimeTypeInfo([], [H.getRuntimeTypeArgument(this, "Strea
m", 0)]); |
5934 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
[P.List, H.getRuntimeTypeArgument(this, "Stream", 0)]]); | 6031 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
[P.List, H.getRuntimeTypeArgument(this, "Stream", 0)]]); |
5935 this.listen$4$cancelOnError$onDone$onError(new P.Stream_toList_closure(t
his, result), true, new P.Stream_toList_closure0(result, future), future.get$_co
mpleteError()); | 6032 this.listen$4$cancelOnError$onDone$onError(new P.Stream_toList_closure(t
his, result), true, new P.Stream_toList_closure0(result, future), future.get$_co
mpleteError()); |
5936 return future; | 6033 return future; |
5937 }, | 6034 }, |
5938 get$last: function(_) { | 6035 get$last: function(_) { |
5939 var t1, future; | 6036 var t1, future; |
5940 t1 = {}; | 6037 t1 = {}; |
5941 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
H.getRuntimeTypeArgument(this, "Stream", 0)]); | 6038 future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [
H.getRuntimeTypeArgument(this, "Stream", 0)]); |
5942 t1._captured_result_0 = null; | 6039 t1.result = null; |
5943 t1._captured_foundResult_1 = false; | 6040 t1.foundResult = false; |
5944 this.listen$4$cancelOnError$onDone$onError(new P.Stream_last_closure(t1,
this), true, new P.Stream_last_closure0(t1, future), future.get$_completeError(
)); | 6041 this.listen$4$cancelOnError$onDone$onError(new P.Stream_last_closure(t1,
this), true, new P.Stream_last_closure0(t1, future), future.get$_completeError(
)); |
5945 return future; | 6042 return future; |
5946 } | 6043 } |
5947 }, | 6044 }, |
5948 Stream_pipe_closure: { | 6045 Stream_pipe_closure: { |
5949 "^": "Closure:0;_captured_streamConsumer_0", | 6046 "^": "Closure:0;streamConsumer", |
5950 call$1: [function(_) { | 6047 call$1: [function(_) { |
5951 return this._captured_streamConsumer_0._async$_target.close$0(0); | 6048 return this.streamConsumer.close$0(0); |
5952 }, null, null, 2, 0, null, 11, "call"] | 6049 }, null, null, 2, 0, null, 9, "call"] |
5953 }, | 6050 }, |
5954 Stream_contains_closure: { | 6051 Stream_contains_closure: { |
5955 "^": "Closure;_async$_box_0,_async$_captured_this_1,_captured_needle_2,_ca
ptured_future_3", | 6052 "^": "Closure;_box_0,$this,needle,future", |
5956 call$1: [function(element) { | 6053 call$1: [function(element) { |
5957 var t1, t2; | 6054 var t1, t2; |
5958 t1 = this._async$_box_0; | 6055 t1 = this._box_0; |
5959 t2 = this._captured_future_3; | 6056 t2 = this.future; |
5960 P._runUserCode(new P.Stream_contains__closure(this._captured_needle_2, e
lement), new P.Stream_contains__closure0(t1, t2), P._cancelAndErrorClosure(t1._c
aptured_subscription_0, t2)); | 6057 P._runUserCode(new P.Stream_contains__closure(this.needle, element), new
P.Stream_contains__closure0(t1, t2), P._cancelAndErrorClosure(t1.subscription,
t2)); |
5961 }, null, null, 2, 0, null, 21, "call"], | 6058 }, null, null, 2, 0, null, 23, "call"], |
5962 $signature: function() { | 6059 $signature: function() { |
5963 return H.computeSignature(function(T) { | 6060 return H.computeSignature(function(T) { |
5964 return {func: 1, args: [T]}; | 6061 return {func: 1, args: [T]}; |
5965 }, this._async$_captured_this_1, "Stream"); | 6062 }, this.$this, "Stream"); |
5966 } | 6063 } |
5967 }, | 6064 }, |
5968 Stream_contains__closure: { | 6065 Stream_contains__closure: { |
5969 "^": "Closure:1;_captured_needle_4,_captured_element_5", | 6066 "^": "Closure:1;needle,element", |
5970 call$0: function() { | 6067 call$0: function() { |
5971 return J.$eq$(this._captured_element_5, this._captured_needle_4); | 6068 return J.$eq$(this.element, this.needle); |
5972 } | 6069 } |
5973 }, | 6070 }, |
5974 Stream_contains__closure0: { | 6071 Stream_contains__closure0: { |
5975 "^": "Closure:51;_async$_box_0,_captured_future_6", | 6072 "^": "Closure:38;_box_0,future", |
5976 call$1: function(isMatch) { | 6073 call$1: function(isMatch) { |
5977 if (isMatch === true) | 6074 if (isMatch === true) |
5978 P._cancelAndValue(this._async$_box_0._captured_subscription_0, this._c
aptured_future_6, true); | 6075 P._cancelAndValue(this._box_0.subscription, this.future, true); |
5979 } | 6076 } |
5980 }, | 6077 }, |
5981 Stream_contains_closure0: { | 6078 Stream_contains_closure0: { |
5982 "^": "Closure:1;_captured_future_7", | 6079 "^": "Closure:1;future", |
5983 call$0: [function() { | 6080 call$0: [function() { |
5984 this._captured_future_7._complete$1(false); | 6081 this.future._complete$1(false); |
5985 }, null, null, 0, 0, null, "call"] | 6082 }, null, null, 0, 0, null, "call"] |
5986 }, | 6083 }, |
5987 Stream_forEach_closure: { | 6084 Stream_forEach_closure: { |
5988 "^": "Closure;_async$_box_0,_async$_captured_this_1,_captured_action_2,_ca
ptured_future_3", | 6085 "^": "Closure;_box_0,$this,action,future", |
5989 call$1: [function(element) { | 6086 call$1: [function(element) { |
5990 P._runUserCode(new P.Stream_forEach__closure(this._captured_action_2, el
ement), new P.Stream_forEach__closure0(), P._cancelAndErrorClosure(this._async$_
box_0._captured_subscription_0, this._captured_future_3)); | 6087 P._runUserCode(new P.Stream_forEach__closure(this.action, element), new
P.Stream_forEach__closure0(), P._cancelAndErrorClosure(this._box_0.subscription,
this.future)); |
5991 }, null, null, 2, 0, null, 21, "call"], | 6088 }, null, null, 2, 0, null, 23, "call"], |
5992 $signature: function() { | 6089 $signature: function() { |
5993 return H.computeSignature(function(T) { | 6090 return H.computeSignature(function(T) { |
5994 return {func: 1, args: [T]}; | 6091 return {func: 1, args: [T]}; |
5995 }, this._async$_captured_this_1, "Stream"); | 6092 }, this.$this, "Stream"); |
5996 } | 6093 } |
5997 }, | 6094 }, |
5998 Stream_forEach__closure: { | 6095 Stream_forEach__closure: { |
5999 "^": "Closure:1;_captured_action_4,_captured_element_5", | 6096 "^": "Closure:1;action,element", |
6000 call$0: function() { | 6097 call$0: function() { |
6001 return this._captured_action_4.call$1(this._captured_element_5); | 6098 return this.action.call$1(this.element); |
6002 } | 6099 } |
6003 }, | 6100 }, |
6004 Stream_forEach__closure0: { | 6101 Stream_forEach__closure0: { |
6005 "^": "Closure:0;", | 6102 "^": "Closure:0;", |
6006 call$1: function(_) { | 6103 call$1: function(_) { |
6007 } | 6104 } |
6008 }, | 6105 }, |
6009 Stream_forEach_closure0: { | 6106 Stream_forEach_closure0: { |
6010 "^": "Closure:1;_captured_future_6", | 6107 "^": "Closure:1;future", |
6011 call$0: [function() { | 6108 call$0: [function() { |
6012 this._captured_future_6._complete$1(null); | 6109 this.future._complete$1(null); |
6013 }, null, null, 0, 0, null, "call"] | 6110 }, null, null, 0, 0, null, "call"] |
6014 }, | 6111 }, |
6015 Stream_length_closure: { | 6112 Stream_length_closure: { |
6016 "^": "Closure:0;_async$_box_0", | 6113 "^": "Closure:0;_box_0", |
6017 call$1: [function(_) { | 6114 call$1: [function(_) { |
6018 ++this._async$_box_0._captured_count_0; | 6115 ++this._box_0.count; |
6019 }, null, null, 2, 0, null, 11, "call"] | 6116 }, null, null, 2, 0, null, 9, "call"] |
6020 }, | 6117 }, |
6021 Stream_length_closure0: { | 6118 Stream_length_closure0: { |
6022 "^": "Closure:1;_async$_box_0,_captured_future_1", | 6119 "^": "Closure:1;_box_0,future", |
6023 call$0: [function() { | 6120 call$0: [function() { |
6024 this._captured_future_1._complete$1(this._async$_box_0._captured_count_0
); | 6121 this.future._complete$1(this._box_0.count); |
6025 }, null, null, 0, 0, null, "call"] | 6122 }, null, null, 0, 0, null, "call"] |
6026 }, | 6123 }, |
6027 Stream_isEmpty_closure: { | 6124 Stream_isEmpty_closure: { |
6028 "^": "Closure:0;_async$_box_0,_captured_future_1", | 6125 "^": "Closure:0;_box_0,future", |
6029 call$1: [function(_) { | 6126 call$1: [function(_) { |
6030 P._cancelAndValue(this._async$_box_0._captured_subscription_0, this._cap
tured_future_1, false); | 6127 P._cancelAndValue(this._box_0.subscription, this.future, false); |
6031 }, null, null, 2, 0, null, 11, "call"] | 6128 }, null, null, 2, 0, null, 9, "call"] |
6032 }, | 6129 }, |
6033 Stream_isEmpty_closure0: { | 6130 Stream_isEmpty_closure0: { |
6034 "^": "Closure:1;_captured_future_2", | 6131 "^": "Closure:1;future", |
6035 call$0: [function() { | 6132 call$0: [function() { |
6036 this._captured_future_2._complete$1(true); | 6133 this.future._complete$1(true); |
6037 }, null, null, 0, 0, null, "call"] | 6134 }, null, null, 0, 0, null, "call"] |
6038 }, | 6135 }, |
6039 Stream_toList_closure: { | 6136 Stream_toList_closure: { |
6040 "^": "Closure;_async$_captured_this_0,_async$_captured_result_1", | 6137 "^": "Closure;$this,result", |
6041 call$1: [function(data) { | 6138 call$1: [function(data) { |
6042 this._async$_captured_result_1.push(data); | 6139 this.result.push(data); |
6043 }, null, null, 2, 0, null, 12, "call"], | 6140 }, null, null, 2, 0, null, 15, "call"], |
6044 $signature: function() { | 6141 $signature: function() { |
6045 return H.computeSignature(function(T) { | 6142 return H.computeSignature(function(T) { |
6046 return {func: 1, args: [T]}; | 6143 return {func: 1, args: [T]}; |
6047 }, this._async$_captured_this_0, "Stream"); | 6144 }, this.$this, "Stream"); |
6048 } | 6145 } |
6049 }, | 6146 }, |
6050 Stream_toList_closure0: { | 6147 Stream_toList_closure0: { |
6051 "^": "Closure:1;_captured_result_2,_captured_future_3", | 6148 "^": "Closure:1;result,future", |
6052 call$0: [function() { | 6149 call$0: [function() { |
6053 this._captured_future_3._complete$1(this._captured_result_2); | 6150 this.future._complete$1(this.result); |
6054 }, null, null, 0, 0, null, "call"] | 6151 }, null, null, 0, 0, null, "call"] |
6055 }, | 6152 }, |
6056 Stream_last_closure: { | 6153 Stream_last_closure: { |
6057 "^": "Closure;_async$_box_0,_async$_captured_this_1", | 6154 "^": "Closure;_box_0,$this", |
6058 call$1: [function(value) { | 6155 call$1: [function(value) { |
6059 var t1 = this._async$_box_0; | 6156 var t1 = this._box_0; |
6060 t1._captured_foundResult_1 = true; | 6157 t1.foundResult = true; |
6061 t1._captured_result_0 = value; | 6158 t1.result = value; |
6062 }, null, null, 2, 0, null, 8, "call"], | 6159 }, null, null, 2, 0, null, 6, "call"], |
6063 $signature: function() { | 6160 $signature: function() { |
6064 return H.computeSignature(function(T) { | 6161 return H.computeSignature(function(T) { |
6065 return {func: 1, args: [T]}; | 6162 return {func: 1, args: [T]}; |
6066 }, this._async$_captured_this_1, "Stream"); | 6163 }, this.$this, "Stream"); |
6067 } | 6164 } |
6068 }, | 6165 }, |
6069 Stream_last_closure0: { | 6166 Stream_last_closure0: { |
6070 "^": "Closure:1;_async$_box_0,_captured_future_2", | 6167 "^": "Closure:1;_box_0,future", |
6071 call$0: [function() { | 6168 call$0: [function() { |
6072 var e, s, t1, exception; | 6169 var e, s, t1, exception; |
6073 t1 = this._async$_box_0; | 6170 t1 = this._box_0; |
6074 if (t1._captured_foundResult_1) { | 6171 if (t1.foundResult) { |
6075 this._captured_future_2._complete$1(t1._captured_result_0); | 6172 this.future._complete$1(t1.result); |
6076 return; | 6173 return; |
6077 } | 6174 } |
6078 try { | 6175 try { |
6079 t1 = H.IterableElementError_noElement(); | 6176 t1 = H.IterableElementError_noElement(); |
6080 throw H.wrapException(t1); | 6177 throw H.wrapException(t1); |
6081 } catch (exception) { | 6178 } catch (exception) { |
6082 t1 = H.unwrapException(exception); | 6179 t1 = H.unwrapException(exception); |
6083 e = t1; | 6180 e = t1; |
6084 s = H.getTraceFromException(exception); | 6181 s = H.getTraceFromException(exception); |
6085 P._completeWithErrorCallback(this._captured_future_2, e, s); | 6182 P._completeWithErrorCallback(this.future, e, s); |
6086 } | 6183 } |
6087 }, null, null, 0, 0, null, "call"] | 6184 }, null, null, 0, 0, null, "call"] |
6088 }, | 6185 }, |
6089 StreamSubscription: { | 6186 StreamSubscription: { |
6090 "^": "Object;" | 6187 "^": "Object;" |
6091 }, | 6188 }, |
6092 StreamController: { | |
6093 "^": "Object;" | |
6094 }, | |
6095 _StreamController: { | 6189 _StreamController: { |
6096 "^": "Object;", | 6190 "^": "Object;", |
6097 get$isPaused: function() { | 6191 get$isPaused: function() { |
6098 var t1 = this._state; | 6192 var t1 = this._state; |
6099 return (t1 & 1) !== 0 ? this.get$_subscription().get$_isInputPaused() :
(t1 & 2) === 0; | 6193 return (t1 & 1) !== 0 ? this.get$_subscription().get$_isInputPaused() :
(t1 & 2) === 0; |
6100 }, | 6194 }, |
6101 get$_pendingEvents: function() { | 6195 get$_pendingEvents: function() { |
6102 if ((this._state & 8) === 0) | 6196 if ((this._state & 8) === 0) |
6103 return this._varData; | 6197 return this._varData; |
6104 return this._varData.get$varData(); | 6198 return this._varData.get$varData(); |
(...skipping 16 matching lines...) Expand all Loading... |
6121 get$_subscription: function() { | 6215 get$_subscription: function() { |
6122 if ((this._state & 8) !== 0) | 6216 if ((this._state & 8) !== 0) |
6123 return this._varData.get$varData(); | 6217 return this._varData.get$varData(); |
6124 return this._varData; | 6218 return this._varData; |
6125 }, | 6219 }, |
6126 _badEventState$0: function() { | 6220 _badEventState$0: function() { |
6127 if ((this._state & 4) !== 0) | 6221 if ((this._state & 4) !== 0) |
6128 return new P.StateError("Cannot add event after closing"); | 6222 return new P.StateError("Cannot add event after closing"); |
6129 return new P.StateError("Cannot add event while adding a stream"); | 6223 return new P.StateError("Cannot add event while adding a stream"); |
6130 }, | 6224 }, |
6131 addStream$2$cancelOnError: function(source, cancelOnError) { | |
6132 var t1, t2, t3, t4, addState; | |
6133 t1 = this._state; | |
6134 if (t1 >= 4) | |
6135 throw H.wrapException(this._badEventState$0()); | |
6136 if ((t1 & 2) !== 0) { | |
6137 t1 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [nu
ll]); | |
6138 t1._asyncComplete$1(null); | |
6139 return t1; | |
6140 } | |
6141 t1 = this._varData; | |
6142 t2 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [null
]); | |
6143 t3 = this.get$_async$_add(); | |
6144 t4 = cancelOnError ? P._AddStreamState_makeErrorHandler(this) : this.get
$_addError(); | |
6145 addState = H.setRuntimeTypeInfo(new P._StreamControllerAddStreamState(t1
, t2, source.listen$4$cancelOnError$onDone$onError(t3, cancelOnError, this.get$_
close(), t4)), [null]); | |
6146 t1 = this._state; | |
6147 if ((t1 & 1) !== 0 ? this.get$_subscription().get$_isInputPaused() : (t1
& 2) === 0) | |
6148 addState.addSubscription.pause$0(0); | |
6149 this._varData = addState; | |
6150 this._state |= 8; | |
6151 return addState.addStreamFuture; | |
6152 }, | |
6153 _ensureDoneFuture$0: function() { | 6225 _ensureDoneFuture$0: function() { |
6154 var t1 = this._doneFuture; | 6226 var t1 = this._doneFuture; |
6155 if (t1 == null) { | 6227 if (t1 == null) { |
6156 t1 = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : H.setRunt
imeTypeInfo(new P._Future(0, $.Zone__current, null), [null]); | 6228 t1 = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : H.setRunt
imeTypeInfo(new P._Future(0, $.Zone__current, null), [null]); |
6157 this._doneFuture = t1; | 6229 this._doneFuture = t1; |
6158 } | 6230 } |
6159 return t1; | 6231 return t1; |
6160 }, | 6232 }, |
6161 add$1: function(_, value) { | 6233 add$1: [function(_, value) { |
6162 if (this._state >= 4) | 6234 if (this._state >= 4) |
6163 throw H.wrapException(this._badEventState$0()); | 6235 throw H.wrapException(this._badEventState$0()); |
6164 this._async$_add$1(value); | 6236 this._async$_add$1(value); |
6165 }, | 6237 }, "call$1", "get$add", 2, 0, function() { |
| 6238 return H.computeSignature(function(T) { |
| 6239 return {func: 1, v: true, args: [T]}; |
| 6240 }, this.$receiver, "_StreamController"); |
| 6241 }, 6], |
6166 addError$2: [function(error, stackTrace) { | 6242 addError$2: [function(error, stackTrace) { |
6167 var replacement; | 6243 var replacement; |
6168 if (this._state >= 4) | 6244 if (this._state >= 4) |
6169 throw H.wrapException(this._badEventState$0()); | 6245 throw H.wrapException(this._badEventState$0()); |
6170 error = error != null ? error : new P.NullThrownError(); | 6246 error = error != null ? error : new P.NullThrownError(); |
6171 replacement = $.Zone__current.errorCallback$2(error, stackTrace); | 6247 replacement = $.Zone__current.errorCallback$2(error, stackTrace); |
6172 if (replacement != null) { | 6248 if (replacement != null) { |
6173 error = J.get$error$x(replacement); | 6249 error = J.get$error$x(replacement); |
6174 error = error != null ? error : new P.NullThrownError(); | 6250 error = error != null ? error : new P.NullThrownError(); |
6175 stackTrace = replacement.get$stackTrace(); | 6251 stackTrace = replacement.get$stackTrace(); |
6176 } | 6252 } |
6177 this._addError$2(error, stackTrace); | 6253 this._async$_addError$2(error, stackTrace); |
6178 }, function(error) { | 6254 }, function(error) { |
6179 return this.addError$2(error, null); | 6255 return this.addError$2(error, null); |
6180 }, "addError$1", "call$2", "call$1", "get$addError", 2, 2, 11, 5, 3, 4], | 6256 }, "addError$1", "call$2", "call$1", "get$addError", 2, 2, 10, 5, 1, 2], |
6181 close$0: function(_) { | 6257 close$0: [function(_) { |
6182 var t1 = this._state; | 6258 var t1 = this._state; |
6183 if ((t1 & 4) !== 0) | 6259 if ((t1 & 4) !== 0) |
6184 return this._ensureDoneFuture$0(); | 6260 return this._ensureDoneFuture$0(); |
6185 if (t1 >= 4) | 6261 if (t1 >= 4) |
6186 throw H.wrapException(this._badEventState$0()); | 6262 throw H.wrapException(this._badEventState$0()); |
6187 t1 |= 4; | 6263 t1 |= 4; |
6188 this._state = t1; | 6264 this._state = t1; |
6189 if ((t1 & 1) !== 0) | 6265 if ((t1 & 1) !== 0) |
6190 this._sendDone$0(); | 6266 this._sendDone$0(); |
6191 else if ((t1 & 3) === 0) | 6267 else if ((t1 & 3) === 0) |
6192 this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone); | 6268 this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone); |
6193 return this._ensureDoneFuture$0(); | 6269 return this._ensureDoneFuture$0(); |
6194 }, | 6270 }, null, "get$close", 0, 0, null], |
6195 _async$_add$1: [function(value) { | 6271 _async$_add$1: function(value) { |
6196 var t1 = this._state; | 6272 var t1 = this._state; |
6197 if ((t1 & 1) !== 0) | 6273 if ((t1 & 1) !== 0) |
6198 this._sendData$1(value); | 6274 this._sendData$1(value); |
6199 else if ((t1 & 3) === 0) | 6275 else if ((t1 & 3) === 0) |
6200 this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value, null)
); | 6276 this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value, null)
); |
6201 }, "call$1", "get$_async$_add", 2, 0, function() { | 6277 }, |
6202 return H.computeSignature(function(T) { | 6278 _async$_addError$2: function(error, stackTrace) { |
6203 return {func: 1, void: true, args: [T]}; | |
6204 }, this.$receiver, "_StreamController"); | |
6205 }, 8], | |
6206 _addError$2: [function(error, stackTrace) { | |
6207 var t1 = this._state; | 6279 var t1 = this._state; |
6208 if ((t1 & 1) !== 0) | 6280 if ((t1 & 1) !== 0) |
6209 this._sendError$2(error, stackTrace); | 6281 this._sendError$2(error, stackTrace); |
6210 else if ((t1 & 3) === 0) | 6282 else if ((t1 & 3) === 0) |
6211 this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stac
kTrace, null)); | 6283 this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stac
kTrace, null)); |
6212 }, "call$2", "get$_addError", 4, 0, 50, 3, 4], | 6284 }, |
6213 _close$0: [function() { | |
6214 var addState = this._varData; | |
6215 this._varData = addState.get$varData(); | |
6216 this._state &= 4294967287; | |
6217 addState.complete$0(0); | |
6218 }, "call$0", "get$_close", 0, 0, 2], | |
6219 _subscribe$4: function(onData, onError, onDone, cancelOnError) { | 6285 _subscribe$4: function(onData, onError, onDone, cancelOnError) { |
6220 var t1, subscription, pendingEvents, addState; | 6286 var t1, subscription, pendingEvents, addState; |
6221 if ((this._state & 3) !== 0) | 6287 if ((this._state & 3) !== 0) |
6222 throw H.wrapException(new P.StateError("Stream has already been listen
ed to.")); | 6288 throw H.wrapException(new P.StateError("Stream has already been listen
ed to.")); |
6223 t1 = $.Zone__current; | 6289 t1 = $.Zone__current; |
6224 subscription = H.setRuntimeTypeInfo(new P._ControllerSubscription(this,
null, null, null, t1, cancelOnError ? 1 : 0, null, null), [null]); | 6290 subscription = new P._ControllerSubscription(this, null, null, null, t1,
cancelOnError ? 1 : 0, null, null); |
6225 subscription._BufferingStreamSubscription$4(onData, onError, onDone, can
celOnError, null); | 6291 subscription.$builtinTypeInfo = this.$builtinTypeInfo; |
| 6292 subscription._BufferingStreamSubscription$4(onData, onError, onDone, can
celOnError, H.getTypeArgumentByIndex(this, 0)); |
6226 pendingEvents = this.get$_pendingEvents(); | 6293 pendingEvents = this.get$_pendingEvents(); |
6227 t1 = this._state |= 1; | 6294 t1 = this._state |= 1; |
6228 if ((t1 & 8) !== 0) { | 6295 if ((t1 & 8) !== 0) { |
6229 addState = this._varData; | 6296 addState = this._varData; |
6230 addState.set$varData(subscription); | 6297 addState.set$varData(subscription); |
6231 addState.resume$0(); | 6298 addState.resume$0(); |
6232 } else | 6299 } else |
6233 this._varData = subscription; | 6300 this._varData = subscription; |
6234 subscription._setPendingEvents$1(pendingEvents); | 6301 subscription._setPendingEvents$1(pendingEvents); |
6235 subscription._guardCallback$1(new P._StreamController__subscribe_closure
(this)); | 6302 subscription._guardCallback$1(new P._StreamController__subscribe_closure
(this)); |
6236 return subscription; | 6303 return subscription; |
6237 }, | 6304 }, |
6238 _recordCancel$1: function(subscription) { | 6305 _recordCancel$1: function(subscription) { |
6239 var result, e, s, t1, exception, result0; | 6306 var result, e, s, t1, exception, result0; |
6240 result = null; | 6307 result = null; |
6241 if ((this._state & 8) !== 0) | 6308 if ((this._state & 8) !== 0) |
6242 result = this._varData.cancel$0(); | 6309 result = this._varData.cancel$0(); |
6243 this._varData = null; | 6310 this._varData = null; |
6244 this._state = this._state & 4294967286 | 2; | 6311 this._state = this._state & 4294967286 | 2; |
6245 t1 = this._onCancel; | 6312 t1 = this.onCancel; |
6246 if (t1 != null) | 6313 if (t1 != null) |
6247 if (result == null) | 6314 if (result == null) |
6248 try { | 6315 try { |
6249 result = this._onCancel$0(); | 6316 result = this.onCancel$0(); |
6250 } catch (exception) { | 6317 } catch (exception) { |
6251 t1 = H.unwrapException(exception); | 6318 t1 = H.unwrapException(exception); |
6252 e = t1; | 6319 e = t1; |
6253 s = H.getTraceFromException(exception); | 6320 s = H.getTraceFromException(exception); |
6254 result0 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, n
ull), [null]); | 6321 result0 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, n
ull), [null]); |
6255 result0._asyncCompleteError$2(e, s); | 6322 result0._asyncCompleteError$2(e, s); |
6256 result = result0; | 6323 result = result0; |
6257 } | 6324 } |
6258 else | 6325 else |
6259 result = result.whenComplete$1(t1); | 6326 result = result.whenComplete$1(t1); |
6260 t1 = new P._StreamController__recordCancel_complete(this); | 6327 t1 = new P._StreamController__recordCancel_complete(this); |
6261 if (result != null) | 6328 if (result != null) |
6262 result = result.whenComplete$1(t1); | 6329 result = result.whenComplete$1(t1); |
6263 else | 6330 else |
6264 t1.call$0(); | 6331 t1.call$0(); |
6265 return result; | 6332 return result; |
6266 }, | 6333 }, |
6267 _onCancel$0: function() { | 6334 onCancel$0: function() { |
6268 return this._onCancel.call$0(); | 6335 return this.onCancel.call$0(); |
6269 } | 6336 } |
6270 }, | 6337 }, |
6271 _StreamController__subscribe_closure: { | 6338 _StreamController__subscribe_closure: { |
6272 "^": "Closure:1;_async$_captured_this_0", | 6339 "^": "Closure:1;$this", |
6273 call$0: function() { | 6340 call$0: function() { |
6274 P._runGuarded(this._async$_captured_this_0._onListen); | 6341 P._runGuarded(this.$this.onListen); |
6275 } | 6342 } |
6276 }, | 6343 }, |
6277 _StreamController__recordCancel_complete: { | 6344 _StreamController__recordCancel_complete: { |
6278 "^": "Closure:2;_async$_captured_this_0", | 6345 "^": "Closure:2;$this", |
6279 call$0: [function() { | 6346 call$0: [function() { |
6280 var t1 = this._async$_captured_this_0._doneFuture; | 6347 var t1 = this.$this._doneFuture; |
6281 if (t1 != null && t1._state === 0) | 6348 if (t1 != null && t1._state === 0) |
6282 t1._asyncComplete$1(null); | 6349 t1._asyncComplete$1(null); |
6283 }, null, null, 0, 0, null, "call"] | 6350 }, null, null, 0, 0, null, "call"] |
6284 }, | 6351 }, |
6285 _SyncStreamControllerDispatch: { | 6352 _SyncStreamControllerDispatch: { |
6286 "^": "Object;", | 6353 "^": "Object;", |
6287 _sendData$1: function(data) { | 6354 _sendData$1: function(data) { |
6288 this.get$_subscription()._async$_add$1(data); | 6355 this.get$_subscription()._async$_add$1(data); |
6289 }, | 6356 }, |
6290 _sendError$2: function(error, stackTrace) { | 6357 _sendError$2: function(error, stackTrace) { |
6291 this.get$_subscription()._addError$2(error, stackTrace); | 6358 this.get$_subscription()._async$_addError$2(error, stackTrace); |
6292 }, | 6359 }, |
6293 _sendDone$0: function() { | 6360 _sendDone$0: function() { |
6294 this.get$_subscription()._close$0(); | 6361 this.get$_subscription()._close$0(); |
6295 } | 6362 } |
6296 }, | 6363 }, |
6297 _AsyncStreamControllerDispatch: { | |
6298 "^": "Object;", | |
6299 _sendData$1: function(data) { | |
6300 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); | |
6301 }, | |
6302 _sendError$2: function(error, stackTrace) { | |
6303 this.get$_subscription()._addPending$1(new P._DelayedError(error, stackT
race, null)); | |
6304 }, | |
6305 _sendDone$0: function() { | |
6306 this.get$_subscription()._addPending$1(C.C__DelayedDone); | |
6307 } | |
6308 }, | |
6309 _AsyncStreamController: { | |
6310 "^": "_StreamController+_AsyncStreamControllerDispatch;_varData,_state,_do
neFuture,_onListen,_onPause,_onResume,_onCancel" | |
6311 }, | |
6312 _SyncStreamController: { | 6364 _SyncStreamController: { |
6313 "^": "_StreamController+_SyncStreamControllerDispatch;_varData,_state,_don
eFuture,_onListen,_onPause,_onResume,_onCancel" | 6365 "^": "_StreamController+_SyncStreamControllerDispatch;_varData,_state,_don
eFuture,onListen,onPause,onResume,onCancel" |
6314 }, | 6366 }, |
6315 _ControllerStream: { | 6367 _ControllerStream: { |
6316 "^": "_StreamImpl;_controller", | 6368 "^": "_StreamImpl;_controller", |
6317 _createSubscription$4: function(onData, onError, onDone, cancelOnError) { | |
6318 return this._controller._subscribe$4(onData, onError, onDone, cancelOnEr
ror); | |
6319 }, | |
6320 get$hashCode: function(_) { | 6369 get$hashCode: function(_) { |
6321 return (H.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0
; | 6370 return (H.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0
; |
6322 }, | 6371 }, |
6323 $eq: function(_, other) { | 6372 $eq: function(_, other) { |
6324 if (other == null) | 6373 if (other == null) |
6325 return false; | 6374 return false; |
6326 if (this === other) | 6375 if (this === other) |
6327 return true; | 6376 return true; |
6328 if (!(other instanceof P._ControllerStream)) | 6377 if (!(other instanceof P._ControllerStream)) |
6329 return false; | 6378 return false; |
6330 return other._controller === this._controller; | 6379 return other._controller === this._controller; |
6331 } | 6380 } |
6332 }, | 6381 }, |
6333 _ControllerSubscription: { | 6382 _ControllerSubscription: { |
6334 "^": "_BufferingStreamSubscription;_controller,_async$_onData,_onError,_on
Done,_zone,_state,_cancelFuture,_pending", | 6383 "^": "_BufferingStreamSubscription;_controller,_async$_onData,_onError,_on
Done,_zone,_state,_cancelFuture,_pending", |
6335 _onCancel$0: function() { | 6384 _onCancel$0: function() { |
6336 return this._controller._recordCancel$1(this); | 6385 return this._controller._recordCancel$1(this); |
6337 }, | 6386 }, |
6338 _onPause$0: [function() { | 6387 _onPause$0: [function() { |
6339 var t1 = this._controller; | 6388 var t1 = this._controller; |
6340 if ((t1._state & 8) !== 0) | 6389 if ((t1._state & 8) !== 0) |
6341 t1._varData.pause$0(0); | 6390 t1._varData.pause$0(0); |
6342 P._runGuarded(t1._onPause); | 6391 P._runGuarded(t1.onPause); |
6343 }, "call$0", "get$_onPause", 0, 0, 2], | 6392 }, "call$0", "get$_onPause", 0, 0, 2], |
6344 _onResume$0: [function() { | 6393 _onResume$0: [function() { |
6345 var t1 = this._controller; | 6394 var t1 = this._controller; |
6346 if ((t1._state & 8) !== 0) | 6395 if ((t1._state & 8) !== 0) |
6347 t1._varData.resume$0(); | 6396 t1._varData.resume$0(); |
6348 P._runGuarded(t1._onResume); | 6397 P._runGuarded(t1.onResume); |
6349 }, "call$0", "get$_onResume", 0, 0, 2] | 6398 }, "call$0", "get$_onResume", 0, 0, 2] |
6350 }, | 6399 }, |
6351 _StreamSinkWrapper: { | 6400 _StreamSinkWrapper: { |
6352 "^": "Object;_async$_target", | 6401 "^": "Object;_async$_target", |
6353 add$1: function(_, data) { | 6402 add$1: [function(_, data) { |
6354 var t1 = this._async$_target; | 6403 var t1 = this._async$_target; |
6355 if (t1._state >= 4) | 6404 if (t1._state >= 4) |
6356 H.throwExpression(t1._badEventState$0()); | 6405 H.throwExpression(t1._badEventState$0()); |
6357 t1._async$_add$1(data); | 6406 t1._async$_add$1(data); |
6358 }, | 6407 }, "call$1", "get$add", 2, 0, function() { |
6359 close$0: function(_) { | 6408 return H.computeSignature(function(T) { |
6360 return this._async$_target.close$0(0); | 6409 return {func: 1, v: true, args: [T]}; |
6361 } | 6410 }, this.$receiver, "_StreamSinkWrapper"); |
6362 }, | 6411 }, 15] |
6363 _AddStreamState: { | |
6364 "^": "Object;", | |
6365 pause$0: function(_) { | |
6366 this.addSubscription.pause$0(0); | |
6367 }, | |
6368 resume$0: function() { | |
6369 this.addSubscription.resume$0(); | |
6370 }, | |
6371 cancel$0: function() { | |
6372 var cancel = this.addSubscription.cancel$0(); | |
6373 if (cancel == null) { | |
6374 this.addStreamFuture._asyncComplete$1(null); | |
6375 return; | |
6376 } | |
6377 return cancel.whenComplete$1(new P._AddStreamState_cancel_closure(this))
; | |
6378 }, | |
6379 complete$0: function(_) { | |
6380 this.addStreamFuture._asyncComplete$1(null); | |
6381 } | |
6382 }, | |
6383 _AddStreamState_makeErrorHandler_closure: { | |
6384 "^": "Closure:4;_captured_controller_0", | |
6385 call$2: [function(e, s) { | |
6386 var t1 = this._captured_controller_0; | |
6387 t1._addError$2(e, s); | |
6388 t1._close$0(); | |
6389 }, null, null, 4, 0, null, 23, 24, "call"] | |
6390 }, | |
6391 _AddStreamState_cancel_closure: { | |
6392 "^": "Closure:1;_async$_captured_this_0", | |
6393 call$0: [function() { | |
6394 this._async$_captured_this_0.addStreamFuture._asyncComplete$1(null); | |
6395 }, null, null, 0, 0, null, "call"] | |
6396 }, | |
6397 _StreamControllerAddStreamState: { | |
6398 "^": "_AddStreamState;varData@,addStreamFuture,addSubscription" | |
6399 }, | 6412 }, |
6400 _EventSink: { | 6413 _EventSink: { |
6401 "^": "Object;" | 6414 "^": "Object;" |
6402 }, | 6415 }, |
6403 _BufferingStreamSubscription: { | 6416 _BufferingStreamSubscription: { |
6404 "^": "Object;_async$_onData,_onError<,_onDone,_zone<,_state,_cancelFuture,
_pending", | 6417 "^": "Object;_onError<,_zone<", |
6405 _setPendingEvents$1: function(pendingEvents) { | 6418 _setPendingEvents$1: function(pendingEvents) { |
6406 if (pendingEvents == null) | 6419 if (pendingEvents == null) |
6407 return; | 6420 return; |
6408 this._pending = pendingEvents; | 6421 this._pending = pendingEvents; |
6409 if (!pendingEvents.get$isEmpty(pendingEvents)) { | 6422 if (!pendingEvents.get$isEmpty(pendingEvents)) { |
6410 this._state = (this._state | 64) >>> 0; | 6423 this._state = (this._state | 64) >>> 0; |
6411 this._pending.schedule$1(this); | 6424 this._pending.schedule$1(this); |
6412 } | 6425 } |
6413 }, | 6426 }, |
6414 pause$1: function(_, resumeSignal) { | 6427 pause$1: function(_, resumeSignal) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6473 }, | 6486 }, |
6474 _async$_add$1: ["super$_BufferingStreamSubscription$_add", function(data)
{ | 6487 _async$_add$1: ["super$_BufferingStreamSubscription$_add", function(data)
{ |
6475 var t1 = this._state; | 6488 var t1 = this._state; |
6476 if ((t1 & 8) !== 0) | 6489 if ((t1 & 8) !== 0) |
6477 return; | 6490 return; |
6478 if (t1 < 32) | 6491 if (t1 < 32) |
6479 this._sendData$1(data); | 6492 this._sendData$1(data); |
6480 else | 6493 else |
6481 this._addPending$1(new P._DelayedData(data, null)); | 6494 this._addPending$1(new P._DelayedData(data, null)); |
6482 }], | 6495 }], |
6483 _addError$2: ["super$_BufferingStreamSubscription$_addError", function(err
or, stackTrace) { | 6496 _async$_addError$2: ["super$_BufferingStreamSubscription$_addError", funct
ion(error, stackTrace) { |
6484 var t1 = this._state; | 6497 var t1 = this._state; |
6485 if ((t1 & 8) !== 0) | 6498 if ((t1 & 8) !== 0) |
6486 return; | 6499 return; |
6487 if (t1 < 32) | 6500 if (t1 < 32) |
6488 this._sendError$2(error, stackTrace); | 6501 this._sendError$2(error, stackTrace); |
6489 else | 6502 else |
6490 this._addPending$1(new P._DelayedError(error, stackTrace, null)); | 6503 this._addPending$1(new P._DelayedError(error, stackTrace, null)); |
6491 }], | 6504 }], |
6492 _close$0: function() { | 6505 _close$0: function() { |
6493 var t1 = this._state; | 6506 var t1 = this._state; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6600 this._onPause$0(); | 6613 this._onPause$0(); |
6601 else | 6614 else |
6602 this._onResume$0(); | 6615 this._onResume$0(); |
6603 this._state = (this._state & 4294967263) >>> 0; | 6616 this._state = (this._state & 4294967263) >>> 0; |
6604 } | 6617 } |
6605 t1 = this._state; | 6618 t1 = this._state; |
6606 if ((t1 & 64) !== 0 && t1 < 128) | 6619 if ((t1 & 64) !== 0 && t1 < 128) |
6607 this._pending.schedule$1(this); | 6620 this._pending.schedule$1(this); |
6608 }, | 6621 }, |
6609 _BufferingStreamSubscription$4: function(onData, onError, onDone, cancelOn
Error, $T) { | 6622 _BufferingStreamSubscription$4: function(onData, onError, onDone, cancelOn
Error, $T) { |
6610 var t1 = this._zone; | 6623 var handleData, t1; |
6611 this._async$_onData = t1.registerUnaryCallback$1(onData); | 6624 handleData = onData == null ? P.async___nullDataHandler$closure() : onDa
ta; |
| 6625 t1 = this._zone; |
| 6626 this._async$_onData = t1.registerUnaryCallback$1(handleData); |
6612 this._onError = P._registerErrorHandler(onError == null ? P.async___null
ErrorHandler$closure() : onError, t1); | 6627 this._onError = P._registerErrorHandler(onError == null ? P.async___null
ErrorHandler$closure() : onError, t1); |
6613 this._onDone = t1.registerCallback$1(onDone == null ? P.async___nullDone
Handler$closure() : onDone); | 6628 this._onDone = t1.registerCallback$1(onDone == null ? P.async___nullDone
Handler$closure() : onDone); |
6614 }, | 6629 } |
6615 static: {_BufferingStreamSubscription$: function(onData, onError, onDone,
cancelOnError, $T) { | |
6616 var t1 = $.Zone__current; | |
6617 t1 = H.setRuntimeTypeInfo(new P._BufferingStreamSubscription(null, nul
l, null, t1, cancelOnError ? 1 : 0, null, null), [$T]); | |
6618 t1._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnErr
or, $T); | |
6619 return t1; | |
6620 }} | |
6621 }, | 6630 }, |
6622 _BufferingStreamSubscription__sendError_sendError: { | 6631 _BufferingStreamSubscription__sendError_sendError: { |
6623 "^": "Closure:2;_async$_captured_this_0,_captured_error_1,_captured_stackT
race_2", | 6632 "^": "Closure:2;$this,error,stackTrace", |
6624 call$0: [function() { | 6633 call$0: [function() { |
6625 var t1, t2, t3, t4, t5, t6; | 6634 var t1, t2, t3, t4, t5, t6; |
6626 t1 = this._async$_captured_this_0; | 6635 t1 = this.$this; |
6627 t2 = t1._state; | 6636 t2 = t1._state; |
6628 if ((t2 & 8) !== 0 && (t2 & 16) === 0) | 6637 if ((t2 & 8) !== 0 && (t2 & 16) === 0) |
6629 return; | 6638 return; |
6630 t1._state = (t2 | 32) >>> 0; | 6639 t1._state = (t2 | 32) >>> 0; |
6631 t2 = t1._onError; | 6640 t2 = t1._onError; |
6632 t3 = H.getDynamicRuntimeType(); | 6641 t3 = H.getDynamicRuntimeType(); |
6633 t3 = H.buildFunctionType(t3, [t3, t3])._isTest$1(t2); | 6642 t3 = H.buildFunctionType(t3, [t3, t3])._isTest$1(t2); |
6634 t4 = t1._zone; | 6643 t4 = t1._zone; |
6635 t5 = this._captured_error_1; | 6644 t5 = this.error; |
6636 t6 = t1._onError; | 6645 t6 = t1._onError; |
6637 if (t3) | 6646 if (t3) |
6638 t4.runBinaryGuarded$3(t6, t5, this._captured_stackTrace_2); | 6647 t4.runBinaryGuarded$3(t6, t5, this.stackTrace); |
6639 else | 6648 else |
6640 t4.runUnaryGuarded$2(t6, t5); | 6649 t4.runUnaryGuarded$2(t6, t5); |
6641 t1._state = (t1._state & 4294967263) >>> 0; | 6650 t1._state = (t1._state & 4294967263) >>> 0; |
6642 }, null, null, 0, 0, null, "call"] | 6651 }, null, null, 0, 0, null, "call"] |
6643 }, | 6652 }, |
6644 _BufferingStreamSubscription__sendDone_sendDone: { | 6653 _BufferingStreamSubscription__sendDone_sendDone: { |
6645 "^": "Closure:2;_async$_captured_this_0", | 6654 "^": "Closure:2;$this", |
6646 call$0: [function() { | 6655 call$0: [function() { |
6647 var t1, t2; | 6656 var t1, t2; |
6648 t1 = this._async$_captured_this_0; | 6657 t1 = this.$this; |
6649 t2 = t1._state; | 6658 t2 = t1._state; |
6650 if ((t2 & 16) === 0) | 6659 if ((t2 & 16) === 0) |
6651 return; | 6660 return; |
6652 t1._state = (t2 | 42) >>> 0; | 6661 t1._state = (t2 | 42) >>> 0; |
6653 t1._zone.runGuarded$1(t1._onDone); | 6662 t1._zone.runGuarded$1(t1._onDone); |
6654 t1._state = (t1._state & 4294967263) >>> 0; | 6663 t1._state = (t1._state & 4294967263) >>> 0; |
6655 }, null, null, 0, 0, null, "call"] | 6664 }, null, null, 0, 0, null, "call"] |
6656 }, | 6665 }, |
6657 _StreamImpl: { | 6666 _StreamImpl: { |
6658 "^": "Stream;", | 6667 "^": "Stream;", |
6659 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { | 6668 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { |
6660 return this._createSubscription$4(onData, onError, onDone, true === canc
elOnError); | 6669 return this._controller._subscribe$4(onData, onError, onDone, true === c
ancelOnError); |
6661 }, | 6670 }, |
6662 listen$1: function(onData) { | 6671 listen$1: function(onData) { |
6663 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, nu
ll); | 6672 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, nu
ll); |
6664 }, | 6673 }, |
| 6674 listen$3$onDone$onError: function(onData, onDone, onError) { |
| 6675 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); |
| 6676 }, |
6665 listen$2$onDone: function(onData, onDone) { | 6677 listen$2$onDone: function(onData, onDone) { |
6666 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
null); | 6678 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
null); |
6667 }, | 6679 }, |
6668 listen$3$onDone$onError: function(onData, onDone, onError) { | 6680 listen$3$onDone$onError: function(onData, onDone, onError) { |
6669 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); | 6681 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); |
6670 }, | |
6671 listen$3$onDone$onError: function(onData, onDone, onError) { | |
6672 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); | |
6673 }, | |
6674 _createSubscription$4: function(onData, onError, onDone, cancelOnError) { | |
6675 return P._BufferingStreamSubscription$(onData, onError, onDone, cancelOn
Error, H.getTypeArgumentByIndex(this, 0)); | |
6676 } | 6682 } |
6677 }, | 6683 }, |
6678 _DelayedEvent: { | 6684 _DelayedEvent: { |
6679 "^": "Object;next@" | 6685 "^": "Object;next@" |
6680 }, | 6686 }, |
6681 _DelayedData: { | 6687 _DelayedData: { |
6682 "^": "_DelayedEvent;value,next", | 6688 "^": "_DelayedEvent;value,next", |
6683 perform$1: function(dispatch) { | 6689 perform$1: function(dispatch) { |
6684 dispatch._sendData$1(this.value); | 6690 dispatch._sendData$1(this.value); |
6685 } | 6691 } |
(...skipping 28 matching lines...) Expand all Loading... |
6714 } | 6720 } |
6715 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch
)); | 6721 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch
)); |
6716 this._state = 1; | 6722 this._state = 1; |
6717 }, | 6723 }, |
6718 cancelSchedule$0: function() { | 6724 cancelSchedule$0: function() { |
6719 if (this._state === 1) | 6725 if (this._state === 1) |
6720 this._state = 3; | 6726 this._state = 3; |
6721 } | 6727 } |
6722 }, | 6728 }, |
6723 _PendingEvents_schedule_closure: { | 6729 _PendingEvents_schedule_closure: { |
6724 "^": "Closure:1;_async$_captured_this_0,_captured_dispatch_1", | 6730 "^": "Closure:1;$this,dispatch", |
6725 call$0: [function() { | 6731 call$0: [function() { |
6726 var t1, oldState; | 6732 var t1, oldState, $event, t2; |
6727 t1 = this._async$_captured_this_0; | 6733 t1 = this.$this; |
6728 oldState = t1._state; | 6734 oldState = t1._state; |
6729 t1._state = 0; | 6735 t1._state = 0; |
6730 if (oldState === 3) | 6736 if (oldState === 3) |
6731 return; | 6737 return; |
6732 t1.handleNext$1(this._captured_dispatch_1); | 6738 $event = t1.firstPendingEvent; |
| 6739 t2 = $event.get$next(); |
| 6740 t1.firstPendingEvent = t2; |
| 6741 if (t2 == null) |
| 6742 t1.lastPendingEvent = null; |
| 6743 $event.perform$1(this.dispatch); |
6733 }, null, null, 0, 0, null, "call"] | 6744 }, null, null, 0, 0, null, "call"] |
6734 }, | 6745 }, |
6735 _StreamImplEvents: { | 6746 _StreamImplEvents: { |
6736 "^": "_PendingEvents;firstPendingEvent,lastPendingEvent,_state", | 6747 "^": "_PendingEvents;firstPendingEvent,lastPendingEvent,_state", |
6737 get$isEmpty: function(_) { | 6748 get$isEmpty: function(_) { |
6738 return this.lastPendingEvent == null; | 6749 return this.lastPendingEvent == null; |
6739 }, | 6750 }, |
6740 add$1: function(_, $event) { | 6751 add$1: function(_, $event) { |
6741 var t1 = this.lastPendingEvent; | 6752 var t1 = this.lastPendingEvent; |
6742 if (t1 == null) { | 6753 if (t1 == null) { |
6743 this.lastPendingEvent = $event; | 6754 this.lastPendingEvent = $event; |
6744 this.firstPendingEvent = $event; | 6755 this.firstPendingEvent = $event; |
6745 } else { | 6756 } else { |
6746 t1.set$next($event); | 6757 t1.set$next($event); |
6747 this.lastPendingEvent = $event; | 6758 this.lastPendingEvent = $event; |
6748 } | 6759 } |
| 6760 } |
| 6761 }, |
| 6762 _DoneStreamSubscription: { |
| 6763 "^": "Object;_zone<,_state,_onDone", |
| 6764 get$isPaused: function() { |
| 6765 return this._state >= 4; |
6749 }, | 6766 }, |
6750 handleNext$1: function(dispatch) { | 6767 _schedule$0: function() { |
6751 var $event, t1; | 6768 if ((this._state & 2) !== 0) |
6752 $event = this.firstPendingEvent; | 6769 return; |
6753 t1 = $event.get$next(); | 6770 this._zone.scheduleMicrotask$1(this.get$_sendDone()); |
6754 this.firstPendingEvent = t1; | 6771 this._state = (this._state | 2) >>> 0; |
6755 if (t1 == null) | 6772 }, |
6756 this.lastPendingEvent = null; | 6773 pause$1: function(_, resumeSignal) { |
6757 $event.perform$1(dispatch); | 6774 this._state += 4; |
6758 } | 6775 }, |
| 6776 pause$0: function($receiver) { |
| 6777 return this.pause$1($receiver, null); |
| 6778 }, |
| 6779 resume$0: function() { |
| 6780 var t1 = this._state; |
| 6781 if (t1 >= 4) { |
| 6782 t1 -= 4; |
| 6783 this._state = t1; |
| 6784 if (t1 < 4 && (t1 & 1) === 0) |
| 6785 this._schedule$0(); |
| 6786 } |
| 6787 }, |
| 6788 cancel$0: function() { |
| 6789 return; |
| 6790 }, |
| 6791 _sendDone$0: [function() { |
| 6792 var t1 = (this._state & 4294967293) >>> 0; |
| 6793 this._state = t1; |
| 6794 if (t1 >= 4) |
| 6795 return; |
| 6796 this._state = (t1 | 1) >>> 0; |
| 6797 t1 = this._onDone; |
| 6798 if (t1 != null) |
| 6799 this._zone.runGuarded$1(t1); |
| 6800 }, "call$0", "get$_sendDone", 0, 0, 2] |
6759 }, | 6801 }, |
6760 _StreamIteratorImpl: { | 6802 _StreamIteratorImpl: { |
6761 "^": "Object;_subscription,_async$_current,_futureOrPrefetch,_state", | 6803 "^": "Object;_subscription,_async$_current,_futureOrPrefetch,_state", |
6762 _clear$0: function(_) { | 6804 _clear$0: function(_) { |
6763 this._subscription = null; | 6805 this._subscription = null; |
6764 this._futureOrPrefetch = null; | 6806 this._futureOrPrefetch = null; |
6765 this._async$_current = null; | 6807 this._async$_current = null; |
6766 this._state = 1; | 6808 this._state = 1; |
6767 }, | 6809 }, |
6768 _async$_onData$1: [function(data) { | 6810 _async$_onData$1: [function(data) { |
6769 var hasNext; | 6811 var hasNext; |
6770 if (this._state === 2) { | 6812 if (this._state === 2) { |
6771 this._async$_current = data; | 6813 this._async$_current = data; |
6772 hasNext = this._futureOrPrefetch; | 6814 hasNext = this._futureOrPrefetch; |
6773 this._futureOrPrefetch = null; | 6815 this._futureOrPrefetch = null; |
6774 this._state = 0; | 6816 this._state = 0; |
6775 hasNext._complete$1(true); | 6817 hasNext._complete$1(true); |
6776 return; | 6818 return; |
6777 } | 6819 } |
6778 this._subscription.pause$0(0); | 6820 this._subscription.pause$0(0); |
6779 this._futureOrPrefetch = data; | 6821 this._futureOrPrefetch = data; |
6780 this._state = 3; | 6822 this._state = 3; |
6781 }, "call$1", "get$_async$_onData", 2, 0, function() { | 6823 }, "call$1", "get$_async$_onData", 2, 0, function() { |
6782 return H.computeSignature(function(T) { | 6824 return H.computeSignature(function(T) { |
6783 return {func: 1, void: true, args: [T]}; | 6825 return {func: 1, v: true, args: [T]}; |
6784 }, this.$receiver, "_StreamIteratorImpl"); | 6826 }, this.$receiver, "_StreamIteratorImpl"); |
6785 }, 12], | 6827 }, 15], |
6786 _onError$2: [function(error, stackTrace) { | 6828 _onError$2: [function(error, stackTrace) { |
6787 var hasNext; | 6829 var hasNext; |
6788 if (this._state === 2) { | 6830 if (this._state === 2) { |
6789 hasNext = this._futureOrPrefetch; | 6831 hasNext = this._futureOrPrefetch; |
6790 this._clear$0(0); | 6832 this._clear$0(0); |
6791 hasNext._completeError$2(error, stackTrace); | 6833 hasNext._completeError$2(error, stackTrace); |
6792 return; | 6834 return; |
6793 } | 6835 } |
6794 this._subscription.pause$0(0); | 6836 this._subscription.pause$0(0); |
6795 this._futureOrPrefetch = new P.AsyncError(error, stackTrace); | 6837 this._futureOrPrefetch = new P.AsyncError(error, stackTrace); |
6796 this._state = 4; | 6838 this._state = 4; |
6797 }, function(error) { | 6839 }, function(error) { |
6798 return this._onError$2(error, null); | 6840 return this._onError$2(error, null); |
6799 }, "_onError$1", "call$2", "call$1", "get$_onError", 2, 2, 11, 5, 3, 4], | 6841 }, "_onError$1", "call$2", "call$1", "get$_onError", 2, 2, 10, 5, 1, 2], |
6800 _onDone$0: [function() { | 6842 _onDone$0: [function() { |
6801 if (this._state === 2) { | 6843 if (this._state === 2) { |
6802 var hasNext = this._futureOrPrefetch; | 6844 var hasNext = this._futureOrPrefetch; |
6803 this._clear$0(0); | 6845 this._clear$0(0); |
6804 hasNext._complete$1(false); | 6846 hasNext._complete$1(false); |
6805 return; | 6847 return; |
6806 } | 6848 } |
6807 this._subscription.pause$0(0); | 6849 this._subscription.pause$0(0); |
6808 this._futureOrPrefetch = null; | 6850 this._futureOrPrefetch = null; |
6809 this._state = 5; | 6851 this._state = 5; |
6810 }, "call$0", "get$_onDone", 0, 0, 2] | 6852 }, "call$0", "get$_onDone", 0, 0, 2] |
6811 }, | 6853 }, |
| 6854 _EmptyStream: { |
| 6855 "^": "Stream;", |
| 6856 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { |
| 6857 var t1 = new P._DoneStreamSubscription($.Zone__current, 0, onDone); |
| 6858 t1._schedule$0(); |
| 6859 return t1; |
| 6860 }, |
| 6861 listen$1: function(onData) { |
| 6862 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, nu
ll); |
| 6863 }, |
| 6864 listen$3$onDone$onError: function(onData, onDone, onError) { |
| 6865 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); |
| 6866 } |
| 6867 }, |
6812 _cancelAndError_closure: { | 6868 _cancelAndError_closure: { |
6813 "^": "Closure:1;_captured_future_0,_captured_error_1,_captured_stackTrace_
2", | 6869 "^": "Closure:1;future,error,stackTrace", |
6814 call$0: [function() { | 6870 call$0: [function() { |
6815 return this._captured_future_0._completeError$2(this._captured_error_1,
this._captured_stackTrace_2); | 6871 return this.future._completeError$2(this.error, this.stackTrace); |
6816 }, null, null, 0, 0, null, "call"] | 6872 }, null, null, 0, 0, null, "call"] |
6817 }, | 6873 }, |
6818 _cancelAndErrorClosure_closure: { | 6874 _cancelAndErrorClosure_closure: { |
6819 "^": "Closure:4;_captured_subscription_0,_captured_future_1", | 6875 "^": "Closure:5;subscription,future", |
6820 call$2: function(error, stackTrace) { | 6876 call$2: function(error, stackTrace) { |
6821 return P._cancelAndError(this._captured_subscription_0, this._captured_f
uture_1, error, stackTrace); | 6877 return P._cancelAndError(this.subscription, this.future, error, stackTra
ce); |
6822 } | 6878 } |
6823 }, | 6879 }, |
6824 _cancelAndValue_closure: { | 6880 _cancelAndValue_closure: { |
6825 "^": "Closure:1;_captured_future_0,_captured_value_1", | 6881 "^": "Closure:1;future,value", |
6826 call$0: [function() { | 6882 call$0: [function() { |
6827 return this._captured_future_0._complete$1(this._captured_value_1); | 6883 return this.future._complete$1(this.value); |
6828 }, null, null, 0, 0, null, "call"] | 6884 }, null, null, 0, 0, null, "call"] |
6829 }, | 6885 }, |
6830 _ForwardingStream: { | 6886 _ForwardingStream: { |
6831 "^": "Stream;", | 6887 "^": "Stream;", |
6832 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { | 6888 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { |
6833 return this._createSubscription$4(onData, onError, onDone, true === canc
elOnError); | 6889 return this._createSubscription$4(onData, onError, onDone, true === canc
elOnError); |
6834 }, | 6890 }, |
| 6891 listen$1: function(onData) { |
| 6892 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, nu
ll); |
| 6893 }, |
6835 listen$3$onDone$onError: function(onData, onDone, onError) { | 6894 listen$3$onDone$onError: function(onData, onDone, onError) { |
6836 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); | 6895 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); |
6837 }, | 6896 }, |
6838 _createSubscription$4: function(onData, onError, onDone, cancelOnError) { | 6897 _createSubscription$4: function(onData, onError, onDone, cancelOnError) { |
6839 return P._ForwardingStreamSubscription$(this, onData, onError, onDone, c
ancelOnError, H.getRuntimeTypeArgument(this, "_ForwardingStream", 0), H.getRunti
meTypeArgument(this, "_ForwardingStream", 1)); | 6898 return P._ForwardingStreamSubscription$(this, onData, onError, onDone, c
ancelOnError, H.getRuntimeTypeArgument(this, "_ForwardingStream", 0), H.getRunti
meTypeArgument(this, "_ForwardingStream", 1)); |
6840 }, | 6899 }, |
6841 _handleData$2: function(data, sink) { | 6900 _handleData$2: function(data, sink) { |
6842 sink._async$_add$1(data); | 6901 sink._async$_add$1(data); |
6843 }, | 6902 }, |
6844 $asStream: function($S, $T) { | 6903 $asStream: function($S, $T) { |
6845 return [$T]; | 6904 return [$T]; |
6846 } | 6905 } |
6847 }, | 6906 }, |
6848 _ForwardingStreamSubscription: { | 6907 _ForwardingStreamSubscription: { |
6849 "^": "_BufferingStreamSubscription;_stream,_subscription,_async$_onData,_o
nError,_onDone,_zone,_state,_cancelFuture,_pending", | 6908 "^": "_BufferingStreamSubscription;_stream,_subscription,_async$_onData,_o
nError,_onDone,_zone,_state,_cancelFuture,_pending", |
6850 _async$_add$1: function(data) { | 6909 _async$_add$1: function(data) { |
6851 if ((this._state & 2) !== 0) | 6910 if ((this._state & 2) !== 0) |
6852 return; | 6911 return; |
6853 this.super$_BufferingStreamSubscription$_add(data); | 6912 this.super$_BufferingStreamSubscription$_add(data); |
6854 }, | 6913 }, |
6855 _addError$2: function(error, stackTrace) { | 6914 _async$_addError$2: function(error, stackTrace) { |
6856 if ((this._state & 2) !== 0) | 6915 if ((this._state & 2) !== 0) |
6857 return; | 6916 return; |
6858 this.super$_BufferingStreamSubscription$_addError(error, stackTrace); | 6917 this.super$_BufferingStreamSubscription$_addError(error, stackTrace); |
6859 }, | 6918 }, |
6860 _onPause$0: [function() { | 6919 _onPause$0: [function() { |
6861 var t1 = this._subscription; | 6920 var t1 = this._subscription; |
6862 if (t1 == null) | 6921 if (t1 == null) |
6863 return; | 6922 return; |
6864 t1.pause$0(0); | 6923 t1.pause$0(0); |
6865 }, "call$0", "get$_onPause", 0, 0, 2], | 6924 }, "call$0", "get$_onPause", 0, 0, 2], |
6866 _onResume$0: [function() { | 6925 _onResume$0: [function() { |
6867 var t1 = this._subscription; | 6926 var t1 = this._subscription; |
6868 if (t1 == null) | 6927 if (t1 == null) |
6869 return; | 6928 return; |
6870 t1.resume$0(); | 6929 t1.resume$0(); |
6871 }, "call$0", "get$_onResume", 0, 0, 2], | 6930 }, "call$0", "get$_onResume", 0, 0, 2], |
6872 _onCancel$0: function() { | 6931 _onCancel$0: function() { |
6873 var t1 = this._subscription; | 6932 var t1 = this._subscription; |
6874 if (t1 != null) { | 6933 if (t1 != null) { |
6875 this._subscription = null; | 6934 this._subscription = null; |
6876 t1.cancel$0(); | 6935 return t1.cancel$0(); |
6877 } | 6936 } |
6878 return; | 6937 return; |
6879 }, | 6938 }, |
6880 _handleData$1: [function(data) { | 6939 _handleData$1: [function(data) { |
6881 this._stream._handleData$2(data, this); | 6940 this._stream._handleData$2(data, this); |
6882 }, "call$1", "get$_handleData", 2, 0, function() { | 6941 }, "call$1", "get$_handleData", 2, 0, function() { |
6883 return H.computeSignature(function(S, T) { | 6942 return H.computeSignature(function(S, T) { |
6884 return {func: 1, void: true, args: [S]}; | 6943 return {func: 1, v: true, args: [S]}; |
6885 }, this.$receiver, "_ForwardingStreamSubscription"); | 6944 }, this.$receiver, "_ForwardingStreamSubscription"); |
6886 }, 12], | 6945 }, 15], |
6887 _handleError$2: [function(error, stackTrace) { | 6946 _handleError$2: [function(error, stackTrace) { |
6888 this._addError$2(error, stackTrace); | 6947 this._async$_addError$2(error, stackTrace); |
6889 }, "call$2", "get$_handleError", 4, 0, 18, 3, 4], | 6948 }, "call$2", "get$_handleError", 4, 0, 11, 1, 2], |
6890 _handleDone$0: [function() { | 6949 _handleDone$0: [function() { |
6891 this._close$0(); | 6950 this._close$0(); |
6892 }, "call$0", "get$_handleDone", 0, 0, 2], | 6951 }, "call$0", "get$_handleDone", 0, 0, 2], |
6893 _ForwardingStreamSubscription$5: function(_stream, onData, onError, onDone
, cancelOnError, $S, $T) { | 6952 _ForwardingStreamSubscription$5: function(_stream, onData, onError, onDone
, cancelOnError, $S, $T) { |
6894 var t1, t2; | 6953 var t1, t2; |
6895 t1 = this.get$_handleData(); | 6954 t1 = this.get$_handleData(); |
6896 t2 = this.get$_handleError(); | 6955 t2 = this.get$_handleError(); |
6897 this._subscription = this._stream._async$_source.listen$3$onDone$onError
(t1, this.get$_handleDone(), t2); | 6956 this._subscription = this._stream._async$_source.listen$3$onDone$onError
(t1, this.get$_handleDone(), t2); |
6898 }, | 6957 }, |
6899 $as_BufferingStreamSubscription: function($S, $T) { | 6958 $as_BufferingStreamSubscription: function($S, $T) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6931 "^": "Object;" | 6990 "^": "Object;" |
6932 }, | 6991 }, |
6933 AsyncError: { | 6992 AsyncError: { |
6934 "^": "Object;error>,stackTrace<", | 6993 "^": "Object;error>,stackTrace<", |
6935 toString$0: function(_) { | 6994 toString$0: function(_) { |
6936 return H.S(this.error); | 6995 return H.S(this.error); |
6937 }, | 6996 }, |
6938 $isError: 1 | 6997 $isError: 1 |
6939 }, | 6998 }, |
6940 _ZoneFunction: { | 6999 _ZoneFunction: { |
6941 "^": "Object;zone<,$function" | 7000 "^": "Object;zone,$function" |
6942 }, | 7001 }, |
6943 ZoneSpecification: { | 7002 ZoneSpecification: { |
6944 "^": "Object;" | 7003 "^": "Object;" |
6945 }, | 7004 }, |
6946 _ZoneSpecification: { | 7005 _ZoneSpecification: { |
6947 "^": "Object;handleUncaughtError<,run<,runUnary<,runBinary<,registerCallba
ck<,registerUnaryCallback<,registerBinaryCallback<,errorCallback<,scheduleMicrot
ask<,createTimer<,createPeriodicTimer<,print>,fork<", | 7006 "^": "Object;handleUncaughtError<,run<,runUnary<,runBinary<,registerCallba
ck<,registerUnaryCallback<,registerBinaryCallback<,errorCallback<,scheduleMicrot
ask<,createTimer<,createPeriodicTimer<,print>,fork<", |
6948 handleUncaughtError$2: function(arg0, arg1) { | 7007 handleUncaughtError$2: function(arg0, arg1) { |
6949 return this.handleUncaughtError.call$2(arg0, arg1); | 7008 return this.handleUncaughtError.call$2(arg0, arg1); |
6950 }, | 7009 }, |
6951 handleUncaughtError$3: function(arg0, arg1, arg2) { | 7010 handleUncaughtError$3: function(arg0, arg1, arg2) { |
(...skipping 19 matching lines...) Expand all Loading... |
6971 }, | 7030 }, |
6972 errorCallback$2: function(arg0, arg1) { | 7031 errorCallback$2: function(arg0, arg1) { |
6973 return this.errorCallback.call$2(arg0, arg1); | 7032 return this.errorCallback.call$2(arg0, arg1); |
6974 }, | 7033 }, |
6975 scheduleMicrotask$1: function(arg0) { | 7034 scheduleMicrotask$1: function(arg0) { |
6976 return this.scheduleMicrotask.call$1(arg0); | 7035 return this.scheduleMicrotask.call$1(arg0); |
6977 }, | 7036 }, |
6978 createTimer$2: function(arg0, arg1) { | 7037 createTimer$2: function(arg0, arg1) { |
6979 return this.createTimer.call$2(arg0, arg1); | 7038 return this.createTimer.call$2(arg0, arg1); |
6980 }, | 7039 }, |
| 7040 createPeriodicTimer$2: function(arg0, arg1) { |
| 7041 return this.createPeriodicTimer.call$2(arg0, arg1); |
| 7042 }, |
6981 print$1: function($receiver, arg0) { | 7043 print$1: function($receiver, arg0) { |
6982 return this.print.call$1(arg0); | 7044 return this.print.call$1(arg0); |
6983 }, | 7045 }, |
6984 fork$2$specification$zoneValues: function(arg0, arg1) { | 7046 fork$2$specification$zoneValues: function(arg0, arg1) { |
6985 return this.fork.call$2$specification$zoneValues(arg0, arg1); | 7047 return this.fork.call$2$specification$zoneValues(arg0, arg1); |
6986 } | 7048 } |
6987 }, | 7049 }, |
6988 ZoneDelegate: { | 7050 ZoneDelegate: { |
6989 "^": "Object;" | 7051 "^": "Object;" |
6990 }, | 7052 }, |
6991 Zone: { | 7053 Zone: { |
6992 "^": "Object;" | 7054 "^": "Object;" |
6993 }, | 7055 }, |
6994 _ZoneDelegate: { | 7056 _ZoneDelegate: { |
6995 "^": "Object;_delegationTarget", | 7057 "^": "Object;_delegationTarget", |
6996 handleUncaughtError$3: [function(zone, error, stackTrace) { | 7058 handleUncaughtError$3: [function(zone, error, stackTrace) { |
6997 var implementation, implZone; | 7059 var implementation, implZone; |
6998 implementation = this._delegationTarget.get$_handleUncaughtError(); | 7060 implementation = this._delegationTarget.get$_handleUncaughtError(); |
6999 implZone = implementation.zone; | 7061 implZone = implementation.zone; |
7000 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, error, stackTrace); | 7062 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, error, stackTrace); |
7001 }, "call$3", "get$handleUncaughtError", 6, 0, 49], | 7063 }, "call$3", "get$handleUncaughtError", 6, 0, 36], |
7002 run$2: [function(zone, f) { | 7064 run$2: [function(zone, f) { |
7003 var implementation, implZone; | 7065 var implementation, implZone; |
7004 implementation = this._delegationTarget.get$_run(); | 7066 implementation = this._delegationTarget.get$_run(); |
7005 implZone = implementation.zone; | 7067 implZone = implementation.zone; |
7006 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); | 7068 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); |
7007 }, "call$2", "get$run", 4, 0, 38], | 7069 }, "call$2", "get$run", 4, 0, 35], |
7008 runUnary$3: [function(zone, f, arg) { | 7070 runUnary$3: [function(zone, f, arg) { |
7009 var implementation, implZone; | 7071 var implementation, implZone; |
7010 implementation = this._delegationTarget.get$_runUnary(); | 7072 implementation = this._delegationTarget.get$_runUnary(); |
7011 implZone = implementation.zone; | 7073 implZone = implementation.zone; |
7012 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, f, arg); | 7074 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, f, arg); |
7013 }, "call$3", "get$runUnary", 6, 0, 37], | 7075 }, "call$3", "get$runUnary", 6, 0, 34], |
7014 runBinary$4: [function(zone, f, arg1, arg2) { | 7076 runBinary$4: [function(zone, f, arg1, arg2) { |
7015 var implementation, implZone; | 7077 var implementation, implZone; |
7016 implementation = this._delegationTarget.get$_runBinary(); | 7078 implementation = this._delegationTarget.get$_runBinary(); |
7017 implZone = implementation.zone; | 7079 implZone = implementation.zone; |
7018 return implementation.$function.call$6(implZone, P._parentDelegate(implZ
one), zone, f, arg1, arg2); | 7080 return implementation.$function.call$6(implZone, P._parentDelegate(implZ
one), zone, f, arg1, arg2); |
7019 }, "call$4", "get$runBinary", 8, 0, 36], | 7081 }, "call$4", "get$runBinary", 8, 0, 32], |
7020 registerCallback$2: [function(zone, f) { | 7082 registerCallback$2: [function(zone, f) { |
7021 var implementation, implZone; | 7083 var implementation, implZone; |
7022 implementation = this._delegationTarget.get$_registerCallback(); | 7084 implementation = this._delegationTarget.get$_registerCallback(); |
7023 implZone = implementation.zone; | 7085 implZone = implementation.zone; |
7024 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); | 7086 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); |
7025 }, "call$2", "get$registerCallback", 4, 0, 35], | 7087 }, "call$2", "get$registerCallback", 4, 0, 31], |
7026 registerUnaryCallback$2: [function(zone, f) { | 7088 registerUnaryCallback$2: [function(zone, f) { |
7027 var implementation, implZone; | 7089 var implementation, implZone; |
7028 implementation = this._delegationTarget.get$_registerUnaryCallback(); | 7090 implementation = this._delegationTarget.get$_registerUnaryCallback(); |
7029 implZone = implementation.zone; | 7091 implZone = implementation.zone; |
7030 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); | 7092 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); |
7031 }, "call$2", "get$registerUnaryCallback", 4, 0, 33], | 7093 }, "call$2", "get$registerUnaryCallback", 4, 0, 30], |
7032 registerBinaryCallback$2: [function(zone, f) { | 7094 registerBinaryCallback$2: [function(zone, f) { |
7033 var implementation, implZone; | 7095 var implementation, implZone; |
7034 implementation = this._delegationTarget.get$_registerBinaryCallback(); | 7096 implementation = this._delegationTarget.get$_registerBinaryCallback(); |
7035 implZone = implementation.zone; | 7097 implZone = implementation.zone; |
7036 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); | 7098 return implementation.$function.call$4(implZone, P._parentDelegate(implZ
one), zone, f); |
7037 }, "call$2", "get$registerBinaryCallback", 4, 0, 32], | 7099 }, "call$2", "get$registerBinaryCallback", 4, 0, 33], |
7038 errorCallback$3: [function(zone, error, stackTrace) { | 7100 errorCallback$3: [function(zone, error, stackTrace) { |
7039 var implementation, implZone; | 7101 var implementation, implZone; |
7040 implementation = this._delegationTarget.get$_errorCallback(); | 7102 implementation = this._delegationTarget.get$_errorCallback(); |
7041 implZone = implementation.zone; | 7103 implZone = implementation.zone; |
7042 if (implZone === C.C__RootZone) | 7104 if (implZone === C.C__RootZone) |
7043 return; | 7105 return; |
7044 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, error, stackTrace); | 7106 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, error, stackTrace); |
7045 }, "call$3", "get$errorCallback", 6, 0, 31], | 7107 }, "call$3", "get$errorCallback", 6, 0, 23], |
7046 scheduleMicrotask$2: [function(zone, f) { | 7108 scheduleMicrotask$2: [function(zone, f) { |
7047 var implementation, implZone; | 7109 var implementation, implZone; |
7048 implementation = this._delegationTarget.get$_scheduleMicrotask(); | 7110 implementation = this._delegationTarget.get$_scheduleMicrotask(); |
7049 implZone = implementation.zone; | 7111 implZone = implementation.zone; |
7050 implementation.$function.call$4(implZone, P._parentDelegate(implZone), z
one, f); | 7112 implementation.$function.call$4(implZone, P._parentDelegate(implZone), z
one, f); |
7051 }, "call$2", "get$scheduleMicrotask", 4, 0, 34], | 7113 }, "call$2", "get$scheduleMicrotask", 4, 0, 24], |
7052 createTimer$3: [function(zone, duration, f) { | 7114 createTimer$3: [function(zone, duration, f) { |
7053 var implementation, implZone; | 7115 var implementation, implZone; |
7054 implementation = this._delegationTarget.get$_createTimer(); | 7116 implementation = this._delegationTarget.get$_createTimer(); |
7055 implZone = implementation.zone; | 7117 implZone = implementation.zone; |
7056 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, duration, f); | 7118 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, duration, f); |
7057 }, "call$3", "get$createTimer", 6, 0, 29], | 7119 }, "call$3", "get$createTimer", 6, 0, 25], |
7058 createPeriodicTimer$3: [function(zone, period, f) { | 7120 createPeriodicTimer$3: [function(zone, period, f) { |
7059 var implementation, implZone; | 7121 var implementation, implZone; |
7060 implementation = this._delegationTarget.get$_createPeriodicTimer(); | 7122 implementation = this._delegationTarget.get$_createPeriodicTimer(); |
7061 implZone = implementation.zone; | 7123 implZone = implementation.zone; |
7062 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, period, f); | 7124 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, period, f); |
7063 }, "call$3", "get$createPeriodicTimer", 6, 0, 28], | 7125 }, "call$3", "get$createPeriodicTimer", 6, 0, 26], |
7064 print$2: [function(_, zone, line) { | 7126 print$2: [function(_, zone, line) { |
7065 var implementation, implZone; | 7127 var implementation, implZone; |
7066 implementation = this._delegationTarget.get$_print(); | 7128 implementation = this._delegationTarget.get$_print(); |
7067 implZone = implementation.zone; | 7129 implZone = implementation.zone; |
7068 implementation.$function.call$4(implZone, P._parentDelegate(implZone), z
one, line); | 7130 implementation.$function.call$4(implZone, P._parentDelegate(implZone), z
one, line); |
7069 }, "call$2", "get$print", 4, 0, 26], | 7131 }, "call$2", "get$print", 4, 0, 27], |
7070 fork$3: [function(zone, specification, zoneValues) { | 7132 fork$3: [function(zone, specification, zoneValues) { |
7071 var implementation, implZone; | 7133 var implementation, implZone; |
7072 implementation = this._delegationTarget.get$_fork(); | 7134 implementation = this._delegationTarget.get$_fork(); |
7073 implZone = implementation.zone; | 7135 implZone = implementation.zone; |
7074 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, specification, zoneValues); | 7136 return implementation.$function.call$5(implZone, P._parentDelegate(implZ
one), zone, specification, zoneValues); |
7075 }, "call$3", "get$fork", 6, 0, 27] | 7137 }, "call$3", "get$fork", 6, 0, 28] |
7076 }, | 7138 }, |
7077 _Zone: { | 7139 _Zone: { |
7078 "^": "Object;", | 7140 "^": "Object;", |
7079 inSameErrorZone$1: function(otherZone) { | 7141 inSameErrorZone$1: function(otherZone) { |
7080 return this === otherZone || this.get$errorZone() === otherZone.get$erro
rZone(); | 7142 return this === otherZone || this.get$errorZone() === otherZone.get$erro
rZone(); |
7081 } | 7143 } |
7082 }, | 7144 }, |
7083 _CustomZone: { | 7145 _CustomZone: { |
7084 "^": "_Zone;_runUnary<,_run<,_runBinary<,_registerCallback<,_registerUnary
Callback<,_registerBinaryCallback<,_errorCallback<,_scheduleMicrotask<,_createTi
mer<,_createPeriodicTimer<,_print<,_fork<,_handleUncaughtError<,_delegateCache,p
arent>,_map<", | 7146 "^": "_Zone;_runUnary<,_run<,_runBinary<,_registerCallback<,_registerUnary
Callback<,_registerBinaryCallback<,_errorCallback<,_scheduleMicrotask<,_createTi
mer<,_createPeriodicTimer<,_print<,_fork<,_handleUncaughtError<,_delegateCache,p
arent>,_async$_map<", |
7085 get$_delegate: function() { | 7147 get$_delegate: function() { |
7086 var t1 = this._delegateCache; | 7148 var t1 = this._delegateCache; |
7087 if (t1 != null) | 7149 if (t1 != null) |
7088 return t1; | 7150 return t1; |
7089 t1 = new P._ZoneDelegate(this); | 7151 t1 = new P._ZoneDelegate(this); |
7090 this._delegateCache = t1; | 7152 this._delegateCache = t1; |
7091 return t1; | 7153 return t1; |
7092 }, | 7154 }, |
7093 get$errorZone: function() { | 7155 get$errorZone: function() { |
7094 return this._handleUncaughtError.zone; | 7156 return this._handleUncaughtError.zone; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7134 if (runGuarded) | 7196 if (runGuarded) |
7135 return new P._CustomZone_bindCallback_closure(this, registered); | 7197 return new P._CustomZone_bindCallback_closure(this, registered); |
7136 else | 7198 else |
7137 return new P._CustomZone_bindCallback_closure0(this, registered); | 7199 return new P._CustomZone_bindCallback_closure0(this, registered); |
7138 }, | 7200 }, |
7139 bindCallback$1: function(f) { | 7201 bindCallback$1: function(f) { |
7140 return this.bindCallback$2$runGuarded(f, true); | 7202 return this.bindCallback$2$runGuarded(f, true); |
7141 }, | 7203 }, |
7142 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | 7204 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { |
7143 var registered = this.registerUnaryCallback$1(f); | 7205 var registered = this.registerUnaryCallback$1(f); |
7144 if (runGuarded) | 7206 return new P._CustomZone_bindUnaryCallback_closure(this, registered); |
7145 return new P._CustomZone_bindUnaryCallback_closure(this, registered); | |
7146 else | |
7147 return new P._CustomZone_bindUnaryCallback_closure0(this, registered); | |
7148 }, | 7207 }, |
7149 bindUnaryCallback$1: function(f) { | 7208 bindUnaryCallback$1: function(f) { |
7150 return this.bindUnaryCallback$2$runGuarded(f, true); | 7209 return this.bindUnaryCallback$2$runGuarded(f, true); |
7151 }, | 7210 }, |
7152 $index: function(_, key) { | 7211 $index: function(_, key) { |
7153 var t1, result, t2, value; | 7212 var t1, result, t2, value; |
7154 t1 = this._map; | 7213 t1 = this._async$_map; |
7155 result = t1.$index(0, key); | 7214 result = t1.$index(0, key); |
7156 if (result != null || t1.containsKey$1(key)) | 7215 if (result != null || t1.containsKey$1(key)) |
7157 return result; | 7216 return result; |
7158 t2 = this.parent; | 7217 t2 = this.parent; |
7159 if (t2 != null) { | 7218 if (t2 != null) { |
7160 value = J.$index$asx(t2, key); | 7219 value = J.$index$asx(t2, key); |
7161 if (value != null) | 7220 if (value != null) |
7162 t1.$indexSet(0, key, value); | 7221 t1.$indexSet(0, key, value); |
7163 return value; | 7222 return value; |
7164 } | 7223 } |
7165 return; | 7224 return; |
7166 }, | 7225 }, |
7167 handleUncaughtError$2: [function(error, stackTrace) { | 7226 handleUncaughtError$2: [function(error, stackTrace) { |
7168 var implementation, t1, parentDelegate; | 7227 var implementation, t1, parentDelegate; |
7169 implementation = this._handleUncaughtError; | 7228 implementation = this._handleUncaughtError; |
7170 t1 = implementation.zone; | 7229 t1 = implementation.zone; |
7171 parentDelegate = P._parentDelegate(t1); | 7230 parentDelegate = P._parentDelegate(t1); |
7172 return implementation.$function.call$5(t1, parentDelegate, this, error,
stackTrace); | 7231 return implementation.$function.call$5(t1, parentDelegate, this, error,
stackTrace); |
7173 }, "call$2", "get$handleUncaughtError", 4, 0, 4], | 7232 }, "call$2", "get$handleUncaughtError", 4, 0, 5], |
7174 fork$2$specification$zoneValues: [function(specification, zoneValues) { | 7233 fork$2$specification$zoneValues: [function(specification, zoneValues) { |
7175 var implementation, t1, parentDelegate; | 7234 var implementation, t1, parentDelegate; |
7176 implementation = this._fork; | 7235 implementation = this._fork; |
7177 t1 = implementation.zone; | 7236 t1 = implementation.zone; |
7178 parentDelegate = P._parentDelegate(t1); | 7237 parentDelegate = P._parentDelegate(t1); |
7179 return implementation.$function.call$5(t1, parentDelegate, this, specifi
cation, zoneValues); | 7238 return implementation.$function.call$5(t1, parentDelegate, this, specifi
cation, zoneValues); |
7180 }, function() { | 7239 }, function() { |
7181 return this.fork$2$specification$zoneValues(null, null); | 7240 return this.fork$2$specification$zoneValues(null, null); |
7182 }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5
, 25, 5, 5], | 7241 }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5
, 22, 5, 5], |
7183 run$1: [function(f) { | 7242 run$1: [function(f) { |
7184 var implementation, t1, parentDelegate; | 7243 var implementation, t1, parentDelegate; |
7185 implementation = this._run; | 7244 implementation = this._run; |
7186 t1 = implementation.zone; | 7245 t1 = implementation.zone; |
7187 parentDelegate = P._parentDelegate(t1); | 7246 parentDelegate = P._parentDelegate(t1); |
7188 return implementation.$function.call$4(t1, parentDelegate, this, f); | 7247 return implementation.$function.call$4(t1, parentDelegate, this, f); |
7189 }, "call$1", "get$run", 2, 0, 24], | 7248 }, "call$1", "get$run", 2, 0, 21], |
7190 runUnary$2: [function(f, arg) { | 7249 runUnary$2: [function(f, arg) { |
7191 var implementation, t1, parentDelegate; | 7250 var implementation, t1, parentDelegate; |
7192 implementation = this._runUnary; | 7251 implementation = this._runUnary; |
7193 t1 = implementation.zone; | 7252 t1 = implementation.zone; |
7194 parentDelegate = P._parentDelegate(t1); | 7253 parentDelegate = P._parentDelegate(t1); |
7195 return implementation.$function.call$5(t1, parentDelegate, this, f, arg)
; | 7254 return implementation.$function.call$5(t1, parentDelegate, this, f, arg)
; |
7196 }, "call$2", "get$runUnary", 4, 0, 23], | 7255 }, "call$2", "get$runUnary", 4, 0, 20], |
7197 runBinary$3: [function(f, arg1, arg2) { | 7256 runBinary$3: [function(f, arg1, arg2) { |
7198 var implementation, t1, parentDelegate; | 7257 var implementation, t1, parentDelegate; |
7199 implementation = this._runBinary; | 7258 implementation = this._runBinary; |
7200 t1 = implementation.zone; | 7259 t1 = implementation.zone; |
7201 parentDelegate = P._parentDelegate(t1); | 7260 parentDelegate = P._parentDelegate(t1); |
7202 return implementation.$function.call$6(t1, parentDelegate, this, f, arg1
, arg2); | 7261 return implementation.$function.call$6(t1, parentDelegate, this, f, arg1
, arg2); |
7203 }, "call$3", "get$runBinary", 6, 0, 22], | 7262 }, "call$3", "get$runBinary", 6, 0, 19], |
7204 registerCallback$1: [function(f) { | 7263 registerCallback$1: [function(f) { |
7205 var implementation, t1, parentDelegate; | 7264 var implementation, t1, parentDelegate; |
7206 implementation = this._registerCallback; | 7265 implementation = this._registerCallback; |
7207 t1 = implementation.zone; | 7266 t1 = implementation.zone; |
7208 parentDelegate = P._parentDelegate(t1); | 7267 parentDelegate = P._parentDelegate(t1); |
7209 return implementation.$function.call$4(t1, parentDelegate, this, f); | 7268 return implementation.$function.call$4(t1, parentDelegate, this, f); |
7210 }, "call$1", "get$registerCallback", 2, 0, 21], | 7269 }, "call$1", "get$registerCallback", 2, 0, 8], |
7211 registerUnaryCallback$1: [function(f) { | 7270 registerUnaryCallback$1: [function(f) { |
7212 var implementation, t1, parentDelegate; | 7271 var implementation, t1, parentDelegate; |
7213 implementation = this._registerUnaryCallback; | 7272 implementation = this._registerUnaryCallback; |
7214 t1 = implementation.zone; | 7273 t1 = implementation.zone; |
7215 parentDelegate = P._parentDelegate(t1); | 7274 parentDelegate = P._parentDelegate(t1); |
7216 return implementation.$function.call$4(t1, parentDelegate, this, f); | 7275 return implementation.$function.call$4(t1, parentDelegate, this, f); |
7217 }, "call$1", "get$registerUnaryCallback", 2, 0, 20], | 7276 }, "call$1", "get$registerUnaryCallback", 2, 0, 18], |
7218 registerBinaryCallback$1: [function(f) { | 7277 registerBinaryCallback$1: [function(f) { |
7219 var implementation, t1, parentDelegate; | 7278 var implementation, t1, parentDelegate; |
7220 implementation = this._registerBinaryCallback; | 7279 implementation = this._registerBinaryCallback; |
7221 t1 = implementation.zone; | 7280 t1 = implementation.zone; |
7222 parentDelegate = P._parentDelegate(t1); | 7281 parentDelegate = P._parentDelegate(t1); |
7223 return implementation.$function.call$4(t1, parentDelegate, this, f); | 7282 return implementation.$function.call$4(t1, parentDelegate, this, f); |
7224 }, "call$1", "get$registerBinaryCallback", 2, 0, 10], | 7283 }, "call$1", "get$registerBinaryCallback", 2, 0, 17], |
7225 errorCallback$2: [function(error, stackTrace) { | 7284 errorCallback$2: [function(error, stackTrace) { |
7226 var implementation, implementationZone, parentDelegate; | 7285 var implementation, implementationZone, parentDelegate; |
7227 implementation = this._errorCallback; | 7286 implementation = this._errorCallback; |
7228 implementationZone = implementation.zone; | 7287 implementationZone = implementation.zone; |
7229 if (implementationZone === C.C__RootZone) | 7288 if (implementationZone === C.C__RootZone) |
7230 return; | 7289 return; |
7231 parentDelegate = P._parentDelegate(implementationZone); | 7290 parentDelegate = P._parentDelegate(implementationZone); |
7232 return implementation.$function.call$5(implementationZone, parentDelegat
e, this, error, stackTrace); | 7291 return implementation.$function.call$5(implementationZone, parentDelegat
e, this, error, stackTrace); |
7233 }, "call$2", "get$errorCallback", 4, 0, 19], | 7292 }, "call$2", "get$errorCallback", 4, 0, 16], |
7234 scheduleMicrotask$1: [function(f) { | 7293 scheduleMicrotask$1: [function(f) { |
7235 var implementation, t1, parentDelegate; | 7294 var implementation, t1, parentDelegate; |
7236 implementation = this._scheduleMicrotask; | 7295 implementation = this._scheduleMicrotask; |
7237 t1 = implementation.zone; | 7296 t1 = implementation.zone; |
7238 parentDelegate = P._parentDelegate(t1); | 7297 parentDelegate = P._parentDelegate(t1); |
7239 return implementation.$function.call$4(t1, parentDelegate, this, f); | 7298 return implementation.$function.call$4(t1, parentDelegate, this, f); |
7240 }, "call$1", "get$scheduleMicrotask", 2, 0, 5], | 7299 }, "call$1", "get$scheduleMicrotask", 2, 0, 4], |
7241 createTimer$2: [function(duration, f) { | 7300 createTimer$2: [function(duration, f) { |
7242 var implementation, t1, parentDelegate; | 7301 var implementation, t1, parentDelegate; |
7243 implementation = this._createTimer; | 7302 implementation = this._createTimer; |
7244 t1 = implementation.zone; | 7303 t1 = implementation.zone; |
7245 parentDelegate = P._parentDelegate(t1); | 7304 parentDelegate = P._parentDelegate(t1); |
7246 return implementation.$function.call$5(t1, parentDelegate, this, duratio
n, f); | 7305 return implementation.$function.call$5(t1, parentDelegate, this, duratio
n, f); |
7247 }, "call$2", "get$createTimer", 4, 0, 17], | 7306 }, "call$2", "get$createTimer", 4, 0, 14], |
7248 createPeriodicTimer$2: [function(duration, f) { | 7307 createPeriodicTimer$2: [function(duration, f) { |
7249 var implementation, t1, parentDelegate; | 7308 var implementation, t1, parentDelegate; |
7250 implementation = this._createPeriodicTimer; | 7309 implementation = this._createPeriodicTimer; |
7251 t1 = implementation.zone; | 7310 t1 = implementation.zone; |
7252 parentDelegate = P._parentDelegate(t1); | 7311 parentDelegate = P._parentDelegate(t1); |
7253 return implementation.$function.call$5(t1, parentDelegate, this, duratio
n, f); | 7312 return implementation.$function.call$5(t1, parentDelegate, this, duratio
n, f); |
7254 }, "call$2", "get$createPeriodicTimer", 4, 0, 16], | 7313 }, "call$2", "get$createPeriodicTimer", 4, 0, 13], |
7255 print$1: [function(_, line) { | 7314 print$1: [function(_, line) { |
7256 var implementation, t1, parentDelegate; | 7315 var implementation, t1, parentDelegate; |
7257 implementation = this._print; | 7316 implementation = this._print; |
7258 t1 = implementation.zone; | 7317 t1 = implementation.zone; |
7259 parentDelegate = P._parentDelegate(t1); | 7318 parentDelegate = P._parentDelegate(t1); |
7260 return implementation.$function.call$4(t1, parentDelegate, this, line); | 7319 return implementation.$function.call$4(t1, parentDelegate, this, line); |
7261 }, "call$1", "get$print", 2, 0, 6] | 7320 }, "call$1", "get$print", 2, 0, 7] |
7262 }, | 7321 }, |
7263 _CustomZone_bindCallback_closure: { | 7322 _CustomZone_bindCallback_closure: { |
7264 "^": "Closure:1;_async$_captured_this_0,_captured_registered_1", | 7323 "^": "Closure:1;$this,registered", |
7265 call$0: [function() { | 7324 call$0: [function() { |
7266 return this._async$_captured_this_0.runGuarded$1(this._captured_register
ed_1); | 7325 return this.$this.runGuarded$1(this.registered); |
7267 }, null, null, 0, 0, null, "call"] | 7326 }, null, null, 0, 0, null, "call"] |
7268 }, | 7327 }, |
7269 _CustomZone_bindCallback_closure0: { | 7328 _CustomZone_bindCallback_closure0: { |
7270 "^": "Closure:1;_async$_captured_this_2,_captured_registered_3", | 7329 "^": "Closure:1;$this,registered", |
7271 call$0: [function() { | 7330 call$0: [function() { |
7272 return this._async$_captured_this_2.run$1(this._captured_registered_3); | 7331 return this.$this.run$1(this.registered); |
7273 }, null, null, 0, 0, null, "call"] | 7332 }, null, null, 0, 0, null, "call"] |
7274 }, | 7333 }, |
7275 _CustomZone_bindUnaryCallback_closure: { | 7334 _CustomZone_bindUnaryCallback_closure: { |
7276 "^": "Closure:0;_async$_captured_this_0,_captured_registered_1", | 7335 "^": "Closure:0;$this,registered", |
7277 call$1: [function(arg) { | 7336 call$1: [function(arg) { |
7278 return this._async$_captured_this_0.runUnaryGuarded$2(this._captured_reg
istered_1, arg); | 7337 return this.$this.runUnaryGuarded$2(this.registered, arg); |
7279 }, null, null, 2, 0, null, 9, "call"] | 7338 }, null, null, 2, 0, null, 13, "call"] |
7280 }, | |
7281 _CustomZone_bindUnaryCallback_closure0: { | |
7282 "^": "Closure:0;_async$_captured_this_2,_captured_registered_3", | |
7283 call$1: [function(arg) { | |
7284 return this._async$_captured_this_2.runUnary$2(this._captured_registered
_3, arg); | |
7285 }, null, null, 2, 0, null, 9, "call"] | |
7286 }, | 7339 }, |
7287 _rootHandleUncaughtError_closure: { | 7340 _rootHandleUncaughtError_closure: { |
7288 "^": "Closure:1;_captured_error_0,_captured_stackTrace_1", | 7341 "^": "Closure:1;_box_0,stackTrace", |
7289 call$0: function() { | 7342 call$0: function() { |
7290 var t1 = this._captured_error_0; | 7343 var t1, t2, error; |
7291 throw H.wrapException(new P._UncaughtAsyncError(t1, P._UncaughtAsyncErro
r__getBestStackTrace(t1, this._captured_stackTrace_1))); | 7344 t1 = this._box_0; |
| 7345 t2 = t1.error; |
| 7346 if (t2 == null) { |
| 7347 error = new P.NullThrownError(); |
| 7348 t1.error = error; |
| 7349 t1 = error; |
| 7350 } else |
| 7351 t1 = t2; |
| 7352 t2 = this.stackTrace; |
| 7353 if (t2 == null) |
| 7354 throw H.wrapException(t1); |
| 7355 error = H.wrapException(t1); |
| 7356 error.stack = J.toString$0$(t2); |
| 7357 throw error; |
7292 } | 7358 } |
7293 }, | 7359 }, |
7294 _RootZone: { | 7360 _RootZone: { |
7295 "^": "_Zone;", | 7361 "^": "_Zone;", |
7296 get$_run: function() { | 7362 get$_run: function() { |
7297 return C._ZoneFunction__RootZone__rootRun; | 7363 return C._ZoneFunction__RootZone__rootRun; |
7298 }, | 7364 }, |
7299 get$_runUnary: function() { | 7365 get$_runUnary: function() { |
7300 return C._ZoneFunction__RootZone__rootRunUnary; | 7366 return C._ZoneFunction__RootZone__rootRunUnary; |
7301 }, | 7367 }, |
(...skipping 26 matching lines...) Expand all Loading... |
7328 }, | 7394 }, |
7329 get$_fork: function() { | 7395 get$_fork: function() { |
7330 return C._ZoneFunction__RootZone__rootFork; | 7396 return C._ZoneFunction__RootZone__rootFork; |
7331 }, | 7397 }, |
7332 get$_handleUncaughtError: function() { | 7398 get$_handleUncaughtError: function() { |
7333 return C._ZoneFunction_NMc; | 7399 return C._ZoneFunction_NMc; |
7334 }, | 7400 }, |
7335 get$parent: function(_) { | 7401 get$parent: function(_) { |
7336 return; | 7402 return; |
7337 }, | 7403 }, |
7338 get$_map: function() { | 7404 get$_async$_map: function() { |
7339 return $.$get$_RootZone__rootMap(); | 7405 return $.$get$_RootZone__rootMap(); |
7340 }, | 7406 }, |
7341 get$_delegate: function() { | 7407 get$_delegate: function() { |
7342 var t1 = $._RootZone__rootDelegate; | 7408 var t1 = $._RootZone__rootDelegate; |
7343 if (t1 != null) | 7409 if (t1 != null) |
7344 return t1; | 7410 return t1; |
7345 t1 = new P._ZoneDelegate(this); | 7411 t1 = new P._ZoneDelegate(this); |
7346 $._RootZone__rootDelegate = t1; | 7412 $._RootZone__rootDelegate = t1; |
7347 return t1; | 7413 return t1; |
7348 }, | 7414 }, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7400 bindCallback$2$runGuarded: function(f, runGuarded) { | 7466 bindCallback$2$runGuarded: function(f, runGuarded) { |
7401 if (runGuarded) | 7467 if (runGuarded) |
7402 return new P._RootZone_bindCallback_closure(this, f); | 7468 return new P._RootZone_bindCallback_closure(this, f); |
7403 else | 7469 else |
7404 return new P._RootZone_bindCallback_closure0(this, f); | 7470 return new P._RootZone_bindCallback_closure0(this, f); |
7405 }, | 7471 }, |
7406 bindCallback$1: function(f) { | 7472 bindCallback$1: function(f) { |
7407 return this.bindCallback$2$runGuarded(f, true); | 7473 return this.bindCallback$2$runGuarded(f, true); |
7408 }, | 7474 }, |
7409 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | 7475 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { |
7410 if (runGuarded) | 7476 return new P._RootZone_bindUnaryCallback_closure(this, f); |
7411 return new P._RootZone_bindUnaryCallback_closure(this, f); | |
7412 else | |
7413 return new P._RootZone_bindUnaryCallback_closure0(this, f); | |
7414 }, | 7477 }, |
7415 bindUnaryCallback$1: function(f) { | 7478 bindUnaryCallback$1: function(f) { |
7416 return this.bindUnaryCallback$2$runGuarded(f, true); | 7479 return this.bindUnaryCallback$2$runGuarded(f, true); |
7417 }, | 7480 }, |
7418 $index: function(_, key) { | 7481 $index: function(_, key) { |
7419 return; | 7482 return; |
7420 }, | 7483 }, |
7421 handleUncaughtError$2: [function(error, stackTrace) { | 7484 handleUncaughtError$2: [function(error, stackTrace) { |
7422 return P._rootHandleUncaughtError(null, null, this, error, stackTrace); | 7485 return P._rootHandleUncaughtError(null, null, this, error, stackTrace); |
7423 }, "call$2", "get$handleUncaughtError", 4, 0, 4], | 7486 }, "call$2", "get$handleUncaughtError", 4, 0, 5], |
7424 fork$2$specification$zoneValues: [function(specification, zoneValues) { | 7487 fork$2$specification$zoneValues: [function(specification, zoneValues) { |
7425 return P._rootFork(null, null, this, specification, zoneValues); | 7488 return P._rootFork(null, null, this, specification, zoneValues); |
7426 }, function() { | 7489 }, function() { |
7427 return this.fork$2$specification$zoneValues(null, null); | 7490 return this.fork$2$specification$zoneValues(null, null); |
7428 }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5
, 25, 5, 5], | 7491 }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5
, 22, 5, 5], |
7429 run$1: [function(f) { | 7492 run$1: [function(f) { |
7430 if ($.Zone__current === C.C__RootZone) | 7493 if ($.Zone__current === C.C__RootZone) |
7431 return f.call$0(); | 7494 return f.call$0(); |
7432 return P._rootRun(null, null, this, f); | 7495 return P._rootRun(null, null, this, f); |
7433 }, "call$1", "get$run", 2, 0, 24], | 7496 }, "call$1", "get$run", 2, 0, 21], |
7434 runUnary$2: [function(f, arg) { | 7497 runUnary$2: [function(f, arg) { |
7435 if ($.Zone__current === C.C__RootZone) | 7498 if ($.Zone__current === C.C__RootZone) |
7436 return f.call$1(arg); | 7499 return f.call$1(arg); |
7437 return P._rootRunUnary(null, null, this, f, arg); | 7500 return P._rootRunUnary(null, null, this, f, arg); |
7438 }, "call$2", "get$runUnary", 4, 0, 23], | 7501 }, "call$2", "get$runUnary", 4, 0, 20], |
7439 runBinary$3: [function(f, arg1, arg2) { | 7502 runBinary$3: [function(f, arg1, arg2) { |
7440 if ($.Zone__current === C.C__RootZone) | 7503 if ($.Zone__current === C.C__RootZone) |
7441 return f.call$2(arg1, arg2); | 7504 return f.call$2(arg1, arg2); |
7442 return P._rootRunBinary(null, null, this, f, arg1, arg2); | 7505 return P._rootRunBinary(null, null, this, f, arg1, arg2); |
7443 }, "call$3", "get$runBinary", 6, 0, 22], | 7506 }, "call$3", "get$runBinary", 6, 0, 19], |
7444 registerCallback$1: [function(f) { | 7507 registerCallback$1: [function(f) { |
7445 return f; | 7508 return f; |
7446 }, "call$1", "get$registerCallback", 2, 0, 21], | 7509 }, "call$1", "get$registerCallback", 2, 0, 8], |
7447 registerUnaryCallback$1: [function(f) { | 7510 registerUnaryCallback$1: [function(f) { |
7448 return f; | 7511 return f; |
7449 }, "call$1", "get$registerUnaryCallback", 2, 0, 20], | 7512 }, "call$1", "get$registerUnaryCallback", 2, 0, 18], |
7450 registerBinaryCallback$1: [function(f) { | 7513 registerBinaryCallback$1: [function(f) { |
7451 return f; | 7514 return f; |
7452 }, "call$1", "get$registerBinaryCallback", 2, 0, 10], | 7515 }, "call$1", "get$registerBinaryCallback", 2, 0, 17], |
7453 errorCallback$2: [function(error, stackTrace) { | 7516 errorCallback$2: [function(error, stackTrace) { |
7454 return; | 7517 return; |
7455 }, "call$2", "get$errorCallback", 4, 0, 19], | 7518 }, "call$2", "get$errorCallback", 4, 0, 16], |
7456 scheduleMicrotask$1: [function(f) { | 7519 scheduleMicrotask$1: [function(f) { |
7457 P._rootScheduleMicrotask(null, null, this, f); | 7520 P._rootScheduleMicrotask(null, null, this, f); |
7458 }, "call$1", "get$scheduleMicrotask", 2, 0, 5], | 7521 }, "call$1", "get$scheduleMicrotask", 2, 0, 4], |
7459 createTimer$2: [function(duration, f) { | 7522 createTimer$2: [function(duration, f) { |
7460 return P.Timer__createTimer(duration, f); | 7523 return P.Timer__createTimer(duration, f); |
7461 }, "call$2", "get$createTimer", 4, 0, 17], | 7524 }, "call$2", "get$createTimer", 4, 0, 14], |
7462 createPeriodicTimer$2: [function(duration, f) { | 7525 createPeriodicTimer$2: [function(duration, f) { |
7463 return P.Timer__createPeriodicTimer(duration, f); | 7526 return P.Timer__createPeriodicTimer(duration, f); |
7464 }, "call$2", "get$createPeriodicTimer", 4, 0, 16], | 7527 }, "call$2", "get$createPeriodicTimer", 4, 0, 13], |
7465 print$1: [function(_, line) { | 7528 print$1: [function(_, line) { |
7466 H.printString(line); | 7529 H.printString(line); |
7467 }, "call$1", "get$print", 2, 0, 6] | 7530 }, "call$1", "get$print", 2, 0, 7] |
7468 }, | 7531 }, |
7469 _RootZone_bindCallback_closure: { | 7532 _RootZone_bindCallback_closure: { |
7470 "^": "Closure:1;_async$_captured_this_0,_captured_f_1", | 7533 "^": "Closure:1;$this,f", |
7471 call$0: [function() { | 7534 call$0: [function() { |
7472 return this._async$_captured_this_0.runGuarded$1(this._captured_f_1); | 7535 return this.$this.runGuarded$1(this.f); |
7473 }, null, null, 0, 0, null, "call"] | 7536 }, null, null, 0, 0, null, "call"] |
7474 }, | 7537 }, |
7475 _RootZone_bindCallback_closure0: { | 7538 _RootZone_bindCallback_closure0: { |
7476 "^": "Closure:1;_async$_captured_this_2,_captured_f_3", | 7539 "^": "Closure:1;$this,f", |
7477 call$0: [function() { | 7540 call$0: [function() { |
7478 return this._async$_captured_this_2.run$1(this._captured_f_3); | 7541 return this.$this.run$1(this.f); |
7479 }, null, null, 0, 0, null, "call"] | 7542 }, null, null, 0, 0, null, "call"] |
7480 }, | 7543 }, |
7481 _RootZone_bindUnaryCallback_closure: { | 7544 _RootZone_bindUnaryCallback_closure: { |
7482 "^": "Closure:0;_async$_captured_this_0,_captured_f_1", | 7545 "^": "Closure:0;$this,f", |
7483 call$1: [function(arg) { | 7546 call$1: [function(arg) { |
7484 return this._async$_captured_this_0.runUnaryGuarded$2(this._captured_f_1
, arg); | 7547 return this.$this.runUnaryGuarded$2(this.f, arg); |
7485 }, null, null, 2, 0, null, 9, "call"] | 7548 }, null, null, 2, 0, null, 13, "call"] |
7486 }, | |
7487 _RootZone_bindUnaryCallback_closure0: { | |
7488 "^": "Closure:0;_async$_captured_this_2,_captured_f_3", | |
7489 call$1: [function(arg) { | |
7490 return this._async$_captured_this_2.runUnary$2(this._captured_f_3, arg); | |
7491 }, null, null, 2, 0, null, 9, "call"] | |
7492 }, | 7549 }, |
7493 runZoned_closure: { | 7550 runZoned_closure: { |
7494 "^": "Closure:40;_captured_onError_0", | 7551 "^": "Closure:41;onError", |
7495 call$5: [function($self, $parent, zone, error, stackTrace) { | 7552 call$5: [function($self, $parent, zone, error, stackTrace) { |
7496 var e, s, t1, t2, exception; | 7553 var e, s, t1, t2, exception; |
7497 try { | 7554 try { |
7498 t1 = this._captured_onError_0; | 7555 t1 = this.onError; |
7499 t2 = H.getDynamicRuntimeType(); | 7556 t2 = H.getDynamicRuntimeType(); |
7500 t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1); | 7557 t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1); |
7501 if (t2) { | 7558 if (t2) { |
7502 t1 = J.get$parent$x($self).runBinary$3(t1, error, stackTrace); | 7559 t1 = J.get$parent$x($self).runBinary$3(t1, error, stackTrace); |
7503 return t1; | 7560 return t1; |
7504 } | 7561 } |
7505 t1 = J.get$parent$x($self).runUnary$2(t1, error); | 7562 t1 = J.get$parent$x($self).runUnary$2(t1, error); |
7506 return t1; | 7563 return t1; |
7507 } catch (exception) { | 7564 } catch (exception) { |
7508 t1 = H.unwrapException(exception); | 7565 t1 = H.unwrapException(exception); |
7509 e = t1; | 7566 e = t1; |
7510 s = H.getTraceFromException(exception); | 7567 s = H.getTraceFromException(exception); |
7511 t1 = e; | 7568 t1 = e; |
7512 t2 = error; | 7569 t2 = error; |
7513 if (t1 == null ? t2 == null : t1 === t2) | 7570 if (t1 == null ? t2 == null : t1 === t2) |
7514 return $parent.handleUncaughtError$3(zone, error, stackTrace); | 7571 return $parent.handleUncaughtError$3(zone, error, stackTrace); |
7515 else | 7572 else |
7516 return $parent.handleUncaughtError$3(zone, e, s); | 7573 return $parent.handleUncaughtError$3(zone, e, s); |
7517 } | 7574 } |
7518 }, null, null, 10, 0, null, 0, 1, 2, 3, 4, "call"] | 7575 }, null, null, 10, 0, null, 0, 3, 4, 1, 2, "call"] |
7519 } | 7576 } |
7520 }], ["dart.collection", "dart:collection",, P, { | 7577 }], ["dart.collection", "dart:collection",, P, { |
7521 "^": "", | 7578 "^": "", |
| 7579 LinkedHashMap_LinkedHashMap$_empty: function($K, $V) { |
| 7580 return H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, nul
l, null, 0), [$K, $V]); |
| 7581 }, |
7522 LinkedHashMap__makeEmpty: function() { | 7582 LinkedHashMap__makeEmpty: function() { |
7523 return H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, nul
l, null, 0), [null, null]); | 7583 return H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, nul
l, null, 0), [null, null]); |
7524 }, | 7584 }, |
7525 LinkedHashMap__makeLiteral: function(keyValuePairs) { | 7585 LinkedHashMap__makeLiteral: function(keyValuePairs) { |
7526 return H.fillLiteralMap(keyValuePairs, H.setRuntimeTypeInfo(new H.JsLinked
HashMap(0, null, null, null, null, null, 0), [null, null])); | 7586 return H.fillLiteralMap(keyValuePairs, H.setRuntimeTypeInfo(new H.JsLinked
HashMap(0, null, null, null, null, null, 0), [null, null])); |
7527 }, | 7587 }, |
7528 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | 7588 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { |
7529 return H.setRuntimeTypeInfo(new P._HashMap(0, null, null, null, null), [$K
, $V]); | 7589 return H.setRuntimeTypeInfo(new P._HashMap(0, null, null, null, null), [$K
, $V]); |
7530 }, | 7590 }, |
7531 HashMap_HashMap$from: function(other, $K, $V) { | 7591 HashMap_HashMap$from: function(other, $K, $V) { |
7532 var result = P.HashMap_HashMap(null, null, null, $K, $V); | 7592 var result = P.HashMap_HashMap(null, null, null, $K, $V); |
7533 J.forEach$1$ax(other, new P.HashMap_HashMap$from_closure(result)); | 7593 J.forEach$1$ax(other, new P.closure5(result)); |
7534 return result; | 7594 return result; |
7535 }, | 7595 }, |
7536 IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightD
elimiter) { | 7596 IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightD
elimiter) { |
7537 var parts, t1; | 7597 var parts, t1; |
7538 if (P._isToStringVisiting(iterable)) { | 7598 if (P._isToStringVisiting(iterable)) { |
7539 if (leftDelimiter === "(" && rightDelimiter === ")") | 7599 if (leftDelimiter === "(" && rightDelimiter === ")") |
7540 return "(...)"; | 7600 return "(...)"; |
7541 return leftDelimiter + "..." + rightDelimiter; | 7601 return leftDelimiter + "..." + rightDelimiter; |
7542 } | 7602 } |
7543 parts = []; | 7603 parts = []; |
7544 t1 = $.$get$_toStringVisiting(); | 7604 t1 = $.$get$_toStringVisiting(); |
7545 t1.push(iterable); | 7605 t1.push(iterable); |
7546 try { | 7606 try { |
7547 P._iterablePartsToStrings(iterable, parts); | 7607 P._iterablePartsToStrings(iterable, parts); |
7548 } finally { | 7608 } finally { |
7549 if (0 >= t1.length) | 7609 if (0 >= t1.length) |
7550 return H.ioore(t1, 0); | 7610 return H.ioore(t1, -1); |
7551 t1.pop(); | 7611 t1.pop(); |
7552 } | 7612 } |
7553 t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter
; | 7613 t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter
; |
7554 return t1.charCodeAt(0) == 0 ? t1 : t1; | 7614 return t1.charCodeAt(0) == 0 ? t1 : t1; |
7555 }, | 7615 }, |
7556 IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDe
limiter) { | 7616 IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDe
limiter) { |
7557 var buffer, t1, t2; | 7617 var buffer, t1, t2; |
7558 if (P._isToStringVisiting(iterable)) | 7618 if (P._isToStringVisiting(iterable)) |
7559 return leftDelimiter + "..." + rightDelimiter; | 7619 return leftDelimiter + "..." + rightDelimiter; |
7560 buffer = new P.StringBuffer(leftDelimiter); | 7620 buffer = new P.StringBuffer(leftDelimiter); |
7561 t1 = $.$get$_toStringVisiting(); | 7621 t1 = $.$get$_toStringVisiting(); |
7562 t1.push(iterable); | 7622 t1.push(iterable); |
7563 try { | 7623 try { |
7564 t2 = buffer; | 7624 t2 = buffer; |
7565 t2.set$_contents(P.StringBuffer__writeAll(t2.get$_contents(), iterable,
", ")); | 7625 t2.set$_contents(P.StringBuffer__writeAll(t2.get$_contents(), iterable,
", ")); |
7566 } finally { | 7626 } finally { |
7567 if (0 >= t1.length) | 7627 if (0 >= t1.length) |
7568 return H.ioore(t1, 0); | 7628 return H.ioore(t1, -1); |
7569 t1.pop(); | 7629 t1.pop(); |
7570 } | 7630 } |
7571 t1 = buffer; | 7631 t1 = buffer; |
7572 t1.set$_contents(t1.get$_contents() + rightDelimiter); | 7632 t1.set$_contents(t1.get$_contents() + rightDelimiter); |
7573 t1 = buffer.get$_contents(); | 7633 t1 = buffer.get$_contents(); |
7574 return t1.charCodeAt(0) == 0 ? t1 : t1; | 7634 return t1.charCodeAt(0) == 0 ? t1 : t1; |
7575 }, | 7635 }, |
7576 _isToStringVisiting: function(o) { | 7636 _isToStringVisiting: function(o) { |
7577 var i, t1; | 7637 var i, t1; |
7578 for (i = 0; t1 = $.$get$_toStringVisiting(), i < t1.length; ++i) { | 7638 for (i = 0; t1 = $.$get$_toStringVisiting(), i < t1.length; ++i) { |
(...skipping 15 matching lines...) Expand all Loading... |
7594 return; | 7654 return; |
7595 next = H.S(it.get$current()); | 7655 next = H.S(it.get$current()); |
7596 parts.push(next); | 7656 parts.push(next); |
7597 $length += next.length + 2; | 7657 $length += next.length + 2; |
7598 ++count; | 7658 ++count; |
7599 } | 7659 } |
7600 if (!it.moveNext$0()) { | 7660 if (!it.moveNext$0()) { |
7601 if (count <= 5) | 7661 if (count <= 5) |
7602 return; | 7662 return; |
7603 if (0 >= parts.length) | 7663 if (0 >= parts.length) |
7604 return H.ioore(parts, 0); | 7664 return H.ioore(parts, -1); |
7605 ultimateString = parts.pop(); | 7665 ultimateString = parts.pop(); |
7606 if (0 >= parts.length) | 7666 if (0 >= parts.length) |
7607 return H.ioore(parts, 0); | 7667 return H.ioore(parts, -1); |
7608 penultimateString = parts.pop(); | 7668 penultimateString = parts.pop(); |
7609 } else { | 7669 } else { |
7610 penultimate = it.get$current(); | 7670 penultimate = it.get$current(); |
7611 ++count; | 7671 ++count; |
7612 if (!it.moveNext$0()) { | 7672 if (!it.moveNext$0()) { |
7613 if (count <= 4) { | 7673 if (count <= 4) { |
7614 parts.push(H.S(penultimate)); | 7674 parts.push(H.S(penultimate)); |
7615 return; | 7675 return; |
7616 } | 7676 } |
7617 ultimateString = H.S(penultimate); | 7677 ultimateString = H.S(penultimate); |
7618 if (0 >= parts.length) | 7678 if (0 >= parts.length) |
7619 return H.ioore(parts, 0); | 7679 return H.ioore(parts, -1); |
7620 penultimateString = parts.pop(); | 7680 penultimateString = parts.pop(); |
7621 $length += ultimateString.length + 2; | 7681 $length += ultimateString.length + 2; |
7622 } else { | 7682 } else { |
7623 ultimate = it.get$current(); | 7683 ultimate = it.get$current(); |
7624 ++count; | 7684 ++count; |
7625 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0)
{ | 7685 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0)
{ |
7626 ultimate0 = it.get$current(); | 7686 ultimate0 = it.get$current(); |
7627 ++count; | 7687 ++count; |
7628 if (count > 100) { | 7688 if (count > 100) { |
7629 while (true) { | 7689 while (true) { |
7630 if (!($length > 75 && count > 3)) | 7690 if (!($length > 75 && count > 3)) |
7631 break; | 7691 break; |
7632 if (0 >= parts.length) | 7692 if (0 >= parts.length) |
7633 return H.ioore(parts, 0); | 7693 return H.ioore(parts, -1); |
7634 $length -= parts.pop().length + 2; | 7694 $length -= parts.pop().length + 2; |
7635 --count; | 7695 --count; |
7636 } | 7696 } |
7637 parts.push("..."); | 7697 parts.push("..."); |
7638 return; | 7698 return; |
7639 } | 7699 } |
7640 } | 7700 } |
7641 penultimateString = H.S(penultimate); | 7701 penultimateString = H.S(penultimate); |
7642 ultimateString = H.S(ultimate); | 7702 ultimateString = H.S(ultimate); |
7643 $length += ultimateString.length + penultimateString.length + 4; | 7703 $length += ultimateString.length + penultimateString.length + 4; |
7644 } | 7704 } |
7645 } | 7705 } |
7646 if (count > parts.length + 2) { | 7706 if (count > parts.length + 2) { |
7647 $length += 5; | 7707 $length += 5; |
7648 elision = "..."; | 7708 elision = "..."; |
7649 } else | 7709 } else |
7650 elision = null; | 7710 elision = null; |
7651 while (true) { | 7711 while (true) { |
7652 if (!($length > 80 && parts.length > 3)) | 7712 if (!($length > 80 && parts.length > 3)) |
7653 break; | 7713 break; |
7654 if (0 >= parts.length) | 7714 if (0 >= parts.length) |
7655 return H.ioore(parts, 0); | 7715 return H.ioore(parts, -1); |
7656 $length -= parts.pop().length + 2; | 7716 $length -= parts.pop().length + 2; |
7657 if (elision == null) { | 7717 if (elision == null) { |
7658 $length += 5; | 7718 $length += 5; |
7659 elision = "..."; | 7719 elision = "..."; |
7660 } | 7720 } |
7661 } | 7721 } |
7662 if (elision != null) | 7722 if (elision != null) |
7663 parts.push(elision); | 7723 parts.push(elision); |
7664 parts.push(penultimateString); | 7724 parts.push(penultimateString); |
7665 parts.push(ultimateString); | 7725 parts.push(ultimateString); |
7666 }, | 7726 }, |
7667 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V)
{ | |
7668 return H.setRuntimeTypeInfo(new H.JsLinkedHashMap(0, null, null, null, nul
l, null, 0), [$K, $V]); | |
7669 }, | |
7670 LinkedHashMap_LinkedHashMap$identity: function($K, $V) { | |
7671 return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V); | |
7672 }, | |
7673 LinkedHashSet_LinkedHashSet: function(equals, hashCode, isValidKey, $E) { | 7727 LinkedHashSet_LinkedHashSet: function(equals, hashCode, isValidKey, $E) { |
7674 return H.setRuntimeTypeInfo(new P._LinkedHashSet(0, null, null, null, null
, null, 0), [$E]); | 7728 return H.setRuntimeTypeInfo(new P._LinkedHashSet(0, null, null, null, null
, null, 0), [$E]); |
7675 }, | 7729 }, |
7676 Maps_mapToString: function(m) { | 7730 Maps_mapToString: function(m) { |
7677 var t1, result, t2; | 7731 var t1, result, t2; |
7678 t1 = {}; | 7732 t1 = {}; |
7679 if (P._isToStringVisiting(m)) | 7733 if (P._isToStringVisiting(m)) |
7680 return "{...}"; | 7734 return "{...}"; |
7681 result = new P.StringBuffer(""); | 7735 result = new P.StringBuffer(""); |
7682 try { | 7736 try { |
7683 $.$get$_toStringVisiting().push(m); | 7737 $.$get$_toStringVisiting().push(m); |
7684 t2 = result; | 7738 t2 = result; |
7685 t2.set$_contents(t2.get$_contents() + "{"); | 7739 t2.set$_contents(t2.get$_contents() + "{"); |
7686 t1._captured_first_0 = true; | 7740 t1.first = true; |
7687 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); | 7741 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); |
7688 t1 = result; | 7742 t1 = result; |
7689 t1.set$_contents(t1.get$_contents() + "}"); | 7743 t1.set$_contents(t1.get$_contents() + "}"); |
7690 } finally { | 7744 } finally { |
7691 t1 = $.$get$_toStringVisiting(); | 7745 t1 = $.$get$_toStringVisiting(); |
7692 if (0 >= t1.length) | 7746 if (0 >= t1.length) |
7693 return H.ioore(t1, 0); | 7747 return H.ioore(t1, -1); |
7694 t1.pop(); | 7748 t1.pop(); |
7695 } | 7749 } |
7696 t1 = result.get$_contents(); | 7750 t1 = result.get$_contents(); |
7697 return t1.charCodeAt(0) == 0 ? t1 : t1; | 7751 return t1.charCodeAt(0) == 0 ? t1 : t1; |
7698 }, | 7752 }, |
7699 _HashMap: { | 7753 _HashMap: { |
7700 "^": "Object;_collection$_length,_collection$_strings,_collection$_nums,_c
ollection$_rest,_keys", | 7754 "^": "Object;_collection$_length,_collection$_strings,_collection$_nums,_c
ollection$_rest,_keys", |
7701 get$length: function(_) { | 7755 get$length: function(_) { |
7702 return this._collection$_length; | 7756 return this._collection$_length; |
7703 }, | 7757 }, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7807 action.call$2(key, this.$index(0, key)); | 7861 action.call$2(key, this.$index(0, key)); |
7808 if (keys !== this._keys) | 7862 if (keys !== this._keys) |
7809 throw H.wrapException(new P.ConcurrentModificationError(this)); | 7863 throw H.wrapException(new P.ConcurrentModificationError(this)); |
7810 } | 7864 } |
7811 }, | 7865 }, |
7812 _collection$_computeKeys$0: function() { | 7866 _collection$_computeKeys$0: function() { |
7813 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $
length, i0; | 7867 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $
length, i0; |
7814 t1 = this._keys; | 7868 t1 = this._keys; |
7815 if (t1 != null) | 7869 if (t1 != null) |
7816 return t1; | 7870 return t1; |
7817 result = Array(this._collection$_length); | 7871 result = new Array(this._collection$_length); |
7818 result.fixed$length = Array; | 7872 result.fixed$length = Array; |
7819 strings = this._collection$_strings; | 7873 strings = this._collection$_strings; |
7820 if (strings != null) { | 7874 if (strings != null) { |
7821 names = Object.getOwnPropertyNames(strings); | 7875 names = Object.getOwnPropertyNames(strings); |
7822 entries = names.length; | 7876 entries = names.length; |
7823 for (index = 0, i = 0; i < entries; ++i) { | 7877 for (index = 0, i = 0; i < entries; ++i) { |
7824 result[index] = names[i]; | 7878 result[index] = names[i]; |
7825 ++index; | 7879 ++index; |
7826 } | 7880 } |
7827 } else | 7881 } else |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7901 } | 7955 } |
7902 return -1; | 7956 return -1; |
7903 }, | 7957 }, |
7904 static: {_LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $
V) { | 7958 static: {_LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $
V) { |
7905 return H.setRuntimeTypeInfo(new P._LinkedIdentityHashMap(0, null, null
, null, null, null, 0), [$K, $V]); | 7959 return H.setRuntimeTypeInfo(new P._LinkedIdentityHashMap(0, null, null
, null, null, null, 0), [$K, $V]); |
7906 }} | 7960 }} |
7907 }, | 7961 }, |
7908 _LinkedHashSet: { | 7962 _LinkedHashSet: { |
7909 "^": "_HashSetBase;_collection$_length,_collection$_strings,_collection$_n
ums,_collection$_rest,_collection$_first,_collection$_last,_collection$_modifica
tions", | 7963 "^": "_HashSetBase;_collection$_length,_collection$_strings,_collection$_n
ums,_collection$_rest,_collection$_first,_collection$_last,_collection$_modifica
tions", |
7910 get$iterator: function(_) { | 7964 get$iterator: function(_) { |
7911 var t1 = new P.LinkedHashSetIterator(this, this._collection$_modificatio
ns, null, null); | 7965 var t1 = new P._LinkedHashSetIterator(this, this._collection$_modificati
ons, null, null); |
7912 t1._collection$_cell = this._collection$_first; | 7966 t1._collection$_cell = this._collection$_first; |
7913 return t1; | 7967 return t1; |
7914 }, | 7968 }, |
7915 get$length: function(_) { | 7969 get$length: function(_) { |
7916 return this._collection$_length; | 7970 return this._collection$_length; |
7917 }, | 7971 }, |
7918 get$isEmpty: function(_) { | 7972 get$isEmpty: function(_) { |
7919 return this._collection$_length === 0; | 7973 return this._collection$_length === 0; |
7920 }, | 7974 }, |
7921 get$isNotEmpty: function(_) { | 7975 get$isNotEmpty: function(_) { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8067 return false; | 8121 return false; |
8068 cell = table[element]; | 8122 cell = table[element]; |
8069 if (cell == null) | 8123 if (cell == null) |
8070 return false; | 8124 return false; |
8071 this._collection$_unlinkCell$1(cell); | 8125 this._collection$_unlinkCell$1(cell); |
8072 delete table[element]; | 8126 delete table[element]; |
8073 return true; | 8127 return true; |
8074 }, | 8128 }, |
8075 _collection$_newLinkedCell$1: function(element) { | 8129 _collection$_newLinkedCell$1: function(element) { |
8076 var cell, last; | 8130 var cell, last; |
8077 cell = new P.LinkedHashSetCell(element, null, null); | 8131 cell = new P._LinkedHashSetCell(element, null, null); |
8078 if (this._collection$_first == null) { | 8132 if (this._collection$_first == null) { |
8079 this._collection$_last = cell; | 8133 this._collection$_last = cell; |
8080 this._collection$_first = cell; | 8134 this._collection$_first = cell; |
8081 } else { | 8135 } else { |
8082 last = this._collection$_last; | 8136 last = this._collection$_last; |
8083 cell._collection$_previous = last; | 8137 cell._collection$_previous = last; |
8084 last._collection$_next = cell; | 8138 last._collection$_next = cell; |
8085 this._collection$_last = cell; | 8139 this._collection$_last = cell; |
8086 } | 8140 } |
8087 ++this._collection$_length; | 8141 ++this._collection$_length; |
(...skipping 29 matching lines...) Expand all Loading... |
8117 return -1; | 8171 return -1; |
8118 }, | 8172 }, |
8119 $isEfficientLength: 1, | 8173 $isEfficientLength: 1, |
8120 static: {_LinkedHashSet__newHashTable: function() { | 8174 static: {_LinkedHashSet__newHashTable: function() { |
8121 var table = Object.create(null); | 8175 var table = Object.create(null); |
8122 table["<non-identifier-key>"] = table; | 8176 table["<non-identifier-key>"] = table; |
8123 delete table["<non-identifier-key>"]; | 8177 delete table["<non-identifier-key>"]; |
8124 return table; | 8178 return table; |
8125 }} | 8179 }} |
8126 }, | 8180 }, |
8127 LinkedHashSetCell: { | 8181 _LinkedHashSetCell: { |
8128 "^": "Object;_element<,_collection$_next<,_collection$_previous@" | 8182 "^": "Object;_element<,_collection$_next<,_collection$_previous@" |
8129 }, | 8183 }, |
8130 LinkedHashSetIterator: { | 8184 _LinkedHashSetIterator: { |
8131 "^": "Object;_set,_collection$_modifications,_collection$_cell,_collection
$_current", | 8185 "^": "Object;_set,_collection$_modifications,_collection$_cell,_collection
$_current", |
8132 get$current: function() { | 8186 get$current: function() { |
8133 return this._collection$_current; | 8187 return this._collection$_current; |
8134 }, | 8188 }, |
8135 moveNext$0: function() { | 8189 moveNext$0: function() { |
8136 var t1 = this._set; | 8190 var t1 = this._set; |
8137 if (this._collection$_modifications !== t1._collection$_modifications) | 8191 if (this._collection$_modifications !== t1._collection$_modifications) |
8138 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 8192 throw H.wrapException(new P.ConcurrentModificationError(t1)); |
8139 else { | 8193 else { |
8140 t1 = this._collection$_cell; | 8194 t1 = this._collection$_cell; |
(...skipping 13 matching lines...) Expand all Loading... |
8154 get$length: function(_) { | 8208 get$length: function(_) { |
8155 return this._collection$_source.length; | 8209 return this._collection$_source.length; |
8156 }, | 8210 }, |
8157 $index: function(_, index) { | 8211 $index: function(_, index) { |
8158 var t1 = this._collection$_source; | 8212 var t1 = this._collection$_source; |
8159 if (index >>> 0 !== index || index >= t1.length) | 8213 if (index >>> 0 !== index || index >= t1.length) |
8160 return H.ioore(t1, index); | 8214 return H.ioore(t1, index); |
8161 return t1[index]; | 8215 return t1[index]; |
8162 } | 8216 } |
8163 }, | 8217 }, |
8164 HashMap_HashMap$from_closure: { | 8218 closure5: { |
8165 "^": "Closure:3;_captured_result_0", | 8219 "^": "Closure:3;result", |
8166 call$2: [function(k, v) { | 8220 call$2: [function(k, v) { |
8167 this._captured_result_0.$indexSet(0, k, v); | 8221 this.result.$indexSet(0, k, v); |
8168 }, null, null, 4, 0, null, 34, 35, "call"] | 8222 }, null, null, 4, 0, null, 35, 36, "call"] |
8169 }, | 8223 }, |
8170 _HashSetBase: { | 8224 _HashSetBase: { |
8171 "^": "SetBase;" | 8225 "^": "SetBase;" |
8172 }, | 8226 }, |
8173 IterableBase: { | 8227 IterableBase: { |
8174 "^": "Iterable;" | 8228 "^": "Iterable;" |
8175 }, | 8229 }, |
8176 ListBase: { | 8230 ListBase: { |
8177 "^": "Object_ListMixin;" | 8231 "^": "Object_ListMixin;" |
8178 }, | 8232 }, |
(...skipping 24 matching lines...) Expand all Loading... |
8203 return this.get$length(receiver) === 0; | 8257 return this.get$length(receiver) === 0; |
8204 }, | 8258 }, |
8205 get$isNotEmpty: function(receiver) { | 8259 get$isNotEmpty: function(receiver) { |
8206 return !this.get$isEmpty(receiver); | 8260 return !this.get$isEmpty(receiver); |
8207 }, | 8261 }, |
8208 get$last: function(receiver) { | 8262 get$last: function(receiver) { |
8209 if (this.get$length(receiver) === 0) | 8263 if (this.get$length(receiver) === 0) |
8210 throw H.wrapException(H.IterableElementError_noElement()); | 8264 throw H.wrapException(H.IterableElementError_noElement()); |
8211 return this.$index(receiver, this.get$length(receiver) - 1); | 8265 return this.$index(receiver, this.get$length(receiver) - 1); |
8212 }, | 8266 }, |
| 8267 get$single: function(receiver) { |
| 8268 if (this.get$length(receiver) === 0) |
| 8269 throw H.wrapException(H.IterableElementError_noElement()); |
| 8270 if (this.get$length(receiver) > 1) |
| 8271 throw H.wrapException(H.IterableElementError_tooMany()); |
| 8272 return this.$index(receiver, 0); |
| 8273 }, |
8213 contains$1: function(receiver, element) { | 8274 contains$1: function(receiver, element) { |
8214 var $length, i; | 8275 var $length, i; |
8215 $length = this.get$length(receiver); | 8276 $length = this.get$length(receiver); |
8216 for (i = 0; i < this.get$length(receiver); ++i) { | 8277 for (i = 0; i < this.get$length(receiver); ++i) { |
8217 if (J.$eq$(this.$index(receiver, i), element)) | 8278 if (J.$eq$(this.$index(receiver, i), element)) |
8218 return true; | 8279 return true; |
8219 if ($length !== this.get$length(receiver)) | 8280 if ($length !== this.get$length(receiver)) |
8220 throw H.wrapException(new P.ConcurrentModificationError(receiver)); | 8281 throw H.wrapException(new P.ConcurrentModificationError(receiver)); |
8221 } | 8282 } |
8222 return false; | 8283 return false; |
8223 }, | 8284 }, |
8224 map$1: function(receiver, f) { | 8285 map$1: function(receiver, f) { |
8225 return H.setRuntimeTypeInfo(new H.MappedListIterable(receiver, f), [null
, null]); | 8286 return H.setRuntimeTypeInfo(new H.MappedListIterable(receiver, f), [null
, null]); |
8226 }, | 8287 }, |
8227 skip$1: function(receiver, count) { | 8288 skip$1: function(receiver, count) { |
8228 return H.SubListIterable$(receiver, count, null, H.getRuntimeTypeArgumen
t(receiver, "ListMixin", 0)); | 8289 return H.SubListIterable$(receiver, count, null, H.getRuntimeTypeArgumen
t(receiver, "ListMixin", 0)); |
8229 }, | 8290 }, |
8230 add$1: function(receiver, element) { | 8291 add$1: function(receiver, element) { |
8231 var t1 = this.get$length(receiver); | 8292 var t1 = this.get$length(receiver); |
8232 this.set$length(receiver, t1 + 1); | 8293 this.set$length(receiver, t1 + 1); |
8233 this.$indexSet(receiver, t1, element); | 8294 this.$indexSet(receiver, t1, element); |
8234 }, | 8295 }, |
8235 setRange$4: ["super$ListMixin$setRange", function(receiver, start, end, it
erable, skipCount) { | 8296 setRange$4: ["super$ListMixin$setRange", function(receiver, start, end, it
erable, skipCount) { |
8236 var $length, t1, i; | 8297 var $length, t1, otherStart, otherList, i; |
8237 P.RangeError_checkValidRange(start, end, this.get$length(receiver), null
, null, null); | 8298 P.RangeError_checkValidRange(start, end, this.get$length(receiver), null
, null, null); |
8238 $length = end - start; | 8299 $length = end - start; |
8239 if ($length === 0) | 8300 if ($length === 0) |
8240 return; | 8301 return; |
8241 t1 = J.getInterceptor$asx(iterable); | 8302 t1 = J.getInterceptor(iterable); |
8242 if (skipCount + $length > t1.get$length(iterable)) | 8303 if (!!t1.$isList) { |
| 8304 otherStart = skipCount; |
| 8305 otherList = iterable; |
| 8306 } else { |
| 8307 otherList = t1.skip$1(iterable, skipCount).toList$1$growable(0, false)
; |
| 8308 otherStart = 0; |
| 8309 } |
| 8310 t1 = J.getInterceptor$asx(otherList); |
| 8311 if (otherStart + $length > t1.get$length(otherList)) |
8243 throw H.wrapException(H.IterableElementError_tooFew()); | 8312 throw H.wrapException(H.IterableElementError_tooFew()); |
8244 if (skipCount < start) | 8313 if (otherStart < start) |
8245 for (i = $length - 1; i >= 0; --i) | 8314 for (i = $length - 1; i >= 0; --i) |
8246 this.$indexSet(receiver, start + i, t1.$index(iterable, skipCount +
i)); | 8315 this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart
+ i)); |
8247 else | 8316 else |
8248 for (i = 0; i < $length; ++i) | 8317 for (i = 0; i < $length; ++i) |
8249 this.$indexSet(receiver, start + i, t1.$index(iterable, skipCount +
i)); | 8318 this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart
+ i)); |
8250 }, function($receiver, start, end, iterable) { | 8319 }, function($receiver, start, end, iterable) { |
8251 return this.setRange$4($receiver, start, end, iterable, 0); | 8320 return this.setRange$4($receiver, start, end, iterable, 0); |
8252 }, "setRange$3", null, null, "get$setRange", 6, 2, null, 36], | 8321 }, "setRange$3", null, null, "get$setRange", 6, 2, null, 37], |
8253 replaceRange$3: function(receiver, start, end, newContents) { | 8322 replaceRange$3: function(receiver, start, end, newContents) { |
8254 var removeLength, insertLength, insertEnd, delta, newLength; | 8323 var removeLength, insertLength, insertEnd, delta, newLength; |
8255 P.RangeError_checkValidRange(start, end, this.get$length(receiver), null
, null, null); | 8324 P.RangeError_checkValidRange(start, end, this.get$length(receiver), null
, null, null); |
8256 newContents = C.JSString_methods.toList$0(newContents); | 8325 newContents = C.JSString_methods.toList$0(newContents); |
8257 removeLength = end - start; | 8326 removeLength = end - start; |
8258 insertLength = newContents.length; | 8327 insertLength = newContents.length; |
8259 insertEnd = start + insertLength; | 8328 insertEnd = start + insertLength; |
8260 if (removeLength >= insertLength) { | 8329 if (removeLength >= insertLength) { |
8261 delta = removeLength - insertLength; | 8330 delta = removeLength - insertLength; |
8262 newLength = this.get$length(receiver) - delta; | 8331 newLength = this.get$length(receiver) - delta; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8300 _UnmodifiableMapMixin: { | 8369 _UnmodifiableMapMixin: { |
8301 "^": "Object;", | 8370 "^": "Object;", |
8302 $indexSet: function(_, key, value) { | 8371 $indexSet: function(_, key, value) { |
8303 throw H.wrapException(new P.UnsupportedError("Cannot modify unmodifiable
map")); | 8372 throw H.wrapException(new P.UnsupportedError("Cannot modify unmodifiable
map")); |
8304 }, | 8373 }, |
8305 $isMap: 1 | 8374 $isMap: 1 |
8306 }, | 8375 }, |
8307 MapView: { | 8376 MapView: { |
8308 "^": "Object;", | 8377 "^": "Object;", |
8309 $index: function(_, key) { | 8378 $index: function(_, key) { |
8310 return J.$index$asx(this._collection$_map, key); | 8379 return J.$index$asx(this._map, key); |
8311 }, | 8380 }, |
8312 $indexSet: function(_, key, value) { | 8381 $indexSet: function(_, key, value) { |
8313 J.$indexSet$ax(this._collection$_map, key, value); | 8382 J.$indexSet$ax(this._map, key, value); |
8314 }, | 8383 }, |
8315 forEach$1: function(_, action) { | 8384 forEach$1: function(_, action) { |
8316 J.forEach$1$ax(this._collection$_map, action); | 8385 J.forEach$1$ax(this._map, action); |
8317 }, | 8386 }, |
8318 get$isEmpty: function(_) { | 8387 get$isEmpty: function(_) { |
8319 return J.get$isEmpty$asx(this._collection$_map); | 8388 return J.get$isEmpty$asx(this._map); |
8320 }, | 8389 }, |
8321 get$isNotEmpty: function(_) { | 8390 get$isNotEmpty: function(_) { |
8322 return J.get$isNotEmpty$asx(this._collection$_map); | 8391 return J.get$isNotEmpty$asx(this._map); |
8323 }, | 8392 }, |
8324 get$length: function(_) { | 8393 get$length: function(_) { |
8325 return J.get$length$asx(this._collection$_map); | 8394 return J.get$length$asx(this._map); |
8326 }, | 8395 }, |
8327 toString$0: function(_) { | 8396 toString$0: function(_) { |
8328 return J.toString$0$(this._collection$_map); | 8397 return J.toString$0$(this._map); |
8329 }, | 8398 }, |
8330 $isMap: 1 | 8399 $isMap: 1 |
8331 }, | 8400 }, |
8332 UnmodifiableMapView: { | 8401 UnmodifiableMapView: { |
8333 "^": "MapView+_UnmodifiableMapMixin;_collection$_map", | 8402 "^": "MapView+_UnmodifiableMapMixin;_map", |
8334 $isMap: 1 | 8403 $isMap: 1 |
8335 }, | 8404 }, |
8336 Maps_mapToString_closure: { | 8405 Maps_mapToString_closure: { |
8337 "^": "Closure:3;_collection$_box_0,_captured_result_1", | 8406 "^": "Closure:3;_box_0,result", |
8338 call$2: function(k, v) { | 8407 call$2: function(k, v) { |
8339 var t1, t2; | 8408 var t1, t2; |
8340 t1 = this._collection$_box_0; | 8409 t1 = this._box_0; |
8341 if (!t1._captured_first_0) | 8410 if (!t1.first) |
8342 this._captured_result_1._contents += ", "; | 8411 this.result._contents += ", "; |
8343 t1._captured_first_0 = false; | 8412 t1.first = false; |
8344 t1 = this._captured_result_1; | 8413 t1 = this.result; |
8345 t2 = t1._contents += H.S(k); | 8414 t2 = t1._contents += H.S(k); |
8346 t1._contents = t2 + ": "; | 8415 t1._contents = t2 + ": "; |
8347 t1._contents += H.S(v); | 8416 t1._contents += H.S(v); |
8348 } | 8417 } |
8349 }, | 8418 }, |
8350 ListQueue: { | 8419 ListQueue: { |
8351 "^": "Iterable;_table,_head,_tail,_modificationCount", | 8420 "^": "Iterable;_table,_head,_tail,_modificationCount", |
8352 get$iterator: function(_) { | 8421 get$iterator: function(_) { |
8353 return new P._ListQueueIterator(this, this._tail, this._modificationCoun
t, this._head, null); | 8422 return new P._ListQueueIterator(this, this._tail, this._modificationCoun
t, this._head, null); |
8354 }, | 8423 }, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8428 return H.ioore(t1, t2); | 8497 return H.ioore(t1, t2); |
8429 t1[t2] = element; | 8498 t1[t2] = element; |
8430 t3 = (t2 + 1 & t3 - 1) >>> 0; | 8499 t3 = (t2 + 1 & t3 - 1) >>> 0; |
8431 this._tail = t3; | 8500 this._tail = t3; |
8432 if (this._head === t3) | 8501 if (this._head === t3) |
8433 this._grow$0(); | 8502 this._grow$0(); |
8434 ++this._modificationCount; | 8503 ++this._modificationCount; |
8435 }, | 8504 }, |
8436 _grow$0: function() { | 8505 _grow$0: function() { |
8437 var t1, newTable, t2, split; | 8506 var t1, newTable, t2, split; |
8438 t1 = Array(this._table.length * 2); | 8507 t1 = new Array(this._table.length * 2); |
8439 t1.fixed$length = Array; | 8508 t1.fixed$length = Array; |
8440 newTable = H.setRuntimeTypeInfo(t1, [H.getTypeArgumentByIndex(this, 0)])
; | 8509 newTable = H.setRuntimeTypeInfo(t1, [H.getTypeArgumentByIndex(this, 0)])
; |
8441 t1 = this._table; | 8510 t1 = this._table; |
8442 t2 = this._head; | 8511 t2 = this._head; |
8443 split = t1.length - t2; | 8512 split = t1.length - t2; |
8444 C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2); | 8513 C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2); |
8445 C.JSArray_methods.setRange$4(newTable, split, split + this._head, this._
table, 0); | 8514 C.JSArray_methods.setRange$4(newTable, split, split + this._head, this._
table, 0); |
8446 this._head = 0; | 8515 this._head = 0; |
8447 this._tail = this._table.length; | 8516 this._tail = this._table.length; |
8448 this._table = newTable; | 8517 this._table = newTable; |
8449 }, | 8518 }, |
8450 ListQueue$1: function(initialCapacity, $E) { | 8519 ListQueue$1: function(initialCapacity, $E) { |
8451 var t1 = Array(8); | 8520 var t1 = new Array(8); |
8452 t1.fixed$length = Array; | 8521 t1.fixed$length = Array; |
8453 this._table = H.setRuntimeTypeInfo(t1, [$E]); | 8522 this._table = H.setRuntimeTypeInfo(t1, [$E]); |
8454 }, | 8523 }, |
8455 $isEfficientLength: 1, | 8524 $isEfficientLength: 1, |
8456 static: {ListQueue$: function(initialCapacity, $E) { | 8525 static: {ListQueue$: function(initialCapacity, $E) { |
8457 var t1 = H.setRuntimeTypeInfo(new P.ListQueue(null, 0, 0, 0), [$E]); | 8526 var t1 = H.setRuntimeTypeInfo(new P.ListQueue(null, 0, 0, 0), [$E]); |
8458 t1.ListQueue$1(initialCapacity, $E); | 8527 t1.ListQueue$1(initialCapacity, $E); |
8459 return t1; | 8528 return t1; |
8460 }} | 8529 }} |
8461 }, | 8530 }, |
(...skipping 17 matching lines...) Expand all Loading... |
8479 if (t2 >= t3) | 8548 if (t2 >= t3) |
8480 return H.ioore(t1, t2); | 8549 return H.ioore(t1, t2); |
8481 this._collection$_current = t1[t2]; | 8550 this._collection$_current = t1[t2]; |
8482 this._collection$_position = (t2 + 1 & t3 - 1) >>> 0; | 8551 this._collection$_position = (t2 + 1 & t3 - 1) >>> 0; |
8483 return true; | 8552 return true; |
8484 } | 8553 } |
8485 }, | 8554 }, |
8486 SetMixin: { | 8555 SetMixin: { |
8487 "^": "Object;", | 8556 "^": "Object;", |
8488 get$isEmpty: function(_) { | 8557 get$isEmpty: function(_) { |
8489 return this.get$length(this) === 0; | 8558 return this._collection$_length === 0; |
8490 }, | 8559 }, |
8491 get$isNotEmpty: function(_) { | 8560 get$isNotEmpty: function(_) { |
8492 return this.get$length(this) !== 0; | 8561 return this._collection$_length !== 0; |
8493 }, | 8562 }, |
8494 map$1: function(_, f) { | 8563 map$1: function(_, f) { |
8495 return H.setRuntimeTypeInfo(new H.EfficientLengthMappedIterable(this, f)
, [H.getTypeArgumentByIndex(this, 0), null]); | 8564 return H.setRuntimeTypeInfo(new H.EfficientLengthMappedIterable(this, f)
, [H.getTypeArgumentByIndex(this, 0), null]); |
8496 }, | 8565 }, |
8497 toString$0: function(_) { | 8566 toString$0: function(_) { |
8498 return P.IterableBase_iterableToFullString(this, "{", "}"); | 8567 return P.IterableBase_iterableToFullString(this, "{", "}"); |
8499 }, | 8568 }, |
8500 forEach$1: function(_, f) { | 8569 forEach$1: function(_, f) { |
8501 var t1; | 8570 var t1; |
8502 for (t1 = this.get$iterator(this); t1.moveNext$0();) | 8571 for (t1 = new P._LinkedHashSetIterator(this, this._collection$_modificat
ions, null, null), t1._collection$_cell = this._collection$_first; t1.moveNext$0
();) |
8503 f.call$1(t1._collection$_current); | 8572 f.call$1(t1._collection$_current); |
8504 }, | 8573 }, |
8505 get$last: function(_) { | 8574 get$last: function(_) { |
8506 var it, result; | 8575 var it, result; |
8507 it = this.get$iterator(this); | 8576 it = new P._LinkedHashSetIterator(this, this._collection$_modifications,
null, null); |
| 8577 it._collection$_cell = this._collection$_first; |
8508 if (!it.moveNext$0()) | 8578 if (!it.moveNext$0()) |
8509 throw H.wrapException(H.IterableElementError_noElement()); | 8579 throw H.wrapException(H.IterableElementError_noElement()); |
8510 do | 8580 do |
8511 result = it._collection$_current; | 8581 result = it._collection$_current; |
8512 while (it.moveNext$0()); | 8582 while (it.moveNext$0()); |
8513 return result; | 8583 return result; |
8514 }, | 8584 }, |
8515 $isEfficientLength: 1 | 8585 $isEfficientLength: 1 |
8516 }, | 8586 }, |
8517 SetBase: { | 8587 SetBase: { |
(...skipping 23 matching lines...) Expand all Loading... |
8541 parsed = JSON.parse(source); | 8611 parsed = JSON.parse(source); |
8542 } catch (exception) { | 8612 } catch (exception) { |
8543 t1 = H.unwrapException(exception); | 8613 t1 = H.unwrapException(exception); |
8544 e = t1; | 8614 e = t1; |
8545 throw H.wrapException(new P.FormatException(String(e), null, null)); | 8615 throw H.wrapException(new P.FormatException(String(e), null, null)); |
8546 } | 8616 } |
8547 return P._convertJsonToDartLazy(parsed); | 8617 return P._convertJsonToDartLazy(parsed); |
8548 }, | 8618 }, |
8549 _defaultToEncodable: [function(object) { | 8619 _defaultToEncodable: [function(object) { |
8550 return object.toJson$0(); | 8620 return object.toJson$0(); |
8551 }, "call$1", "convert___defaultToEncodable$closure", 2, 0, 13, 20], | 8621 }, "call$1", "convert___defaultToEncodable$closure", 2, 0, 12, 19], |
8552 _JsonMap: { | 8622 _JsonMap: { |
8553 "^": "Object;_original,_processed,_data", | 8623 "^": "Object;_original,_processed,_data", |
8554 $index: function(_, key) { | 8624 $index: function(_, key) { |
8555 var t1, result; | 8625 var t1, result; |
8556 t1 = this._processed; | 8626 t1 = this._processed; |
8557 if (t1 == null) | 8627 if (t1 == null) |
8558 return this._data.$index(0, key); | 8628 return this._data.$index(0, key); |
8559 else if (typeof key !== "string") | 8629 else if (typeof key !== "string") |
8560 return; | 8630 return; |
8561 else { | 8631 else { |
(...skipping 21 matching lines...) Expand all Loading... |
8583 }, | 8653 }, |
8584 get$isNotEmpty: function(_) { | 8654 get$isNotEmpty: function(_) { |
8585 var t1; | 8655 var t1; |
8586 if (this._processed == null) { | 8656 if (this._processed == null) { |
8587 t1 = this._data; | 8657 t1 = this._data; |
8588 t1 = t1.get$length(t1); | 8658 t1 = t1.get$length(t1); |
8589 } else | 8659 } else |
8590 t1 = this._computeKeys$0().length; | 8660 t1 = this._computeKeys$0().length; |
8591 return t1 > 0; | 8661 return t1 > 0; |
8592 }, | 8662 }, |
| 8663 get$values: function(_) { |
| 8664 var t1; |
| 8665 if (this._processed == null) { |
| 8666 t1 = this._data; |
| 8667 return t1.get$values(t1); |
| 8668 } |
| 8669 return H.MappedIterable_MappedIterable(this._computeKeys$0(), new P._Jso
nMap_values_closure(this), null, null); |
| 8670 }, |
8593 $indexSet: function(_, key, value) { | 8671 $indexSet: function(_, key, value) { |
8594 var processed, original; | 8672 var processed, original; |
8595 if (this._processed == null) | 8673 if (this._processed == null) |
8596 this._data.$indexSet(0, key, value); | 8674 this._data.$indexSet(0, key, value); |
8597 else if (this.containsKey$1(key)) { | 8675 else if (this.containsKey$1(key)) { |
8598 processed = this._processed; | 8676 processed = this._processed; |
8599 processed[key] = value; | 8677 processed[key] = value; |
8600 original = this._original; | 8678 original = this._original; |
8601 if (original == null ? processed != null : original !== processed) | 8679 if (original == null ? processed != null : original !== processed) |
8602 original[key] = null; | 8680 original[key] = null; |
8603 } else | 8681 } else |
8604 this._upgrade$0().$indexSet(0, key, value); | 8682 this._upgrade$0().$indexSet(0, key, value); |
8605 }, | 8683 }, |
8606 containsKey$1: function(key) { | 8684 containsKey$1: function(key) { |
8607 if (this._processed == null) | 8685 if (this._processed == null) |
8608 return this._data.containsKey$1(key); | 8686 return this._data.containsKey$1(key); |
8609 if (typeof key !== "string") | 8687 if (typeof key !== "string") |
8610 return false; | 8688 return false; |
8611 return Object.prototype.hasOwnProperty.call(this._original, key); | 8689 return Object.prototype.hasOwnProperty.call(this._original, key); |
8612 }, | 8690 }, |
| 8691 remove$1: function(_, key) { |
| 8692 if (this._processed != null && !this.containsKey$1(key)) |
| 8693 return; |
| 8694 return this._upgrade$0().remove$1(0, key); |
| 8695 }, |
| 8696 clear$0: function(_) { |
| 8697 var t1; |
| 8698 if (this._processed == null) |
| 8699 this._data.clear$0(0); |
| 8700 else { |
| 8701 t1 = this._data; |
| 8702 if (t1 != null) |
| 8703 J.clear$0$ax(t1); |
| 8704 this._processed = null; |
| 8705 this._original = null; |
| 8706 this._data = P.LinkedHashMap__makeEmpty(); |
| 8707 } |
| 8708 }, |
8613 forEach$1: function(_, f) { | 8709 forEach$1: function(_, f) { |
8614 var keys, i, key, value; | 8710 var keys, i, key, value; |
8615 if (this._processed == null) | 8711 if (this._processed == null) |
8616 return this._data.forEach$1(0, f); | 8712 return this._data.forEach$1(0, f); |
8617 keys = this._computeKeys$0(); | 8713 keys = this._computeKeys$0(); |
8618 for (i = 0; i < keys.length; ++i) { | 8714 for (i = 0; i < keys.length; ++i) { |
8619 key = keys[i]; | 8715 key = keys[i]; |
8620 value = this._processed[key]; | 8716 value = this._processed[key]; |
8621 if (typeof value == "undefined") { | 8717 if (typeof value == "undefined") { |
8622 value = P._convertJsonToDartLazy(this._original[key]); | 8718 value = P._convertJsonToDartLazy(this._original[key]); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8660 _process$1: function(key) { | 8756 _process$1: function(key) { |
8661 var result; | 8757 var result; |
8662 if (!Object.prototype.hasOwnProperty.call(this._original, key)) | 8758 if (!Object.prototype.hasOwnProperty.call(this._original, key)) |
8663 return; | 8759 return; |
8664 result = P._convertJsonToDartLazy(this._original[key]); | 8760 result = P._convertJsonToDartLazy(this._original[key]); |
8665 return this._processed[key] = result; | 8761 return this._processed[key] = result; |
8666 }, | 8762 }, |
8667 $isMap: 1, | 8763 $isMap: 1, |
8668 $asMap: Isolate.functionThatReturnsNull | 8764 $asMap: Isolate.functionThatReturnsNull |
8669 }, | 8765 }, |
| 8766 _JsonMap_values_closure: { |
| 8767 "^": "Closure:0;$this", |
| 8768 call$1: [function(each) { |
| 8769 return this.$this.$index(0, each); |
| 8770 }, null, null, 2, 0, null, 22, "call"] |
| 8771 }, |
8670 Codec: { | 8772 Codec: { |
8671 "^": "Object;" | 8773 "^": "Object;" |
8672 }, | 8774 }, |
8673 Converter: { | 8775 Converter: { |
8674 "^": "Object;" | 8776 "^": "Object;" |
8675 }, | 8777 }, |
8676 Encoding: { | 8778 Encoding: { |
8677 "^": "Codec;" | 8779 "^": "Codec;" |
8678 }, | 8780 }, |
8679 JsonUnsupportedObjectError: { | 8781 JsonUnsupportedObjectError: { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8779 }, | 8881 }, |
8780 _checkCycle$1: function(object) { | 8882 _checkCycle$1: function(object) { |
8781 var t1, t2, i, t3; | 8883 var t1, t2, i, t3; |
8782 for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) { | 8884 for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) { |
8783 t3 = t1[i]; | 8885 t3 = t1[i]; |
8784 if (object == null ? t3 == null : object === t3) | 8886 if (object == null ? t3 == null : object === t3) |
8785 throw H.wrapException(new P.JsonCyclicError(object, null)); | 8887 throw H.wrapException(new P.JsonCyclicError(object, null)); |
8786 } | 8888 } |
8787 t1.push(object); | 8889 t1.push(object); |
8788 }, | 8890 }, |
8789 _removeSeen$1: function(object) { | |
8790 var t1 = this._seen; | |
8791 if (0 >= t1.length) | |
8792 return H.ioore(t1, 0); | |
8793 t1.pop(); | |
8794 }, | |
8795 writeObject$1: function(object) { | 8891 writeObject$1: function(object) { |
8796 var customJson, e, t1, exception; | 8892 var customJson, e, t1, exception; |
8797 if (this.writeJsonValue$1(object)) | 8893 if (this.writeJsonValue$1(object)) |
8798 return; | 8894 return; |
8799 this._checkCycle$1(object); | 8895 this._checkCycle$1(object); |
8800 try { | 8896 try { |
8801 customJson = this._toEncodable$1(object); | 8897 customJson = this._toEncodable$1(object); |
8802 if (!this.writeJsonValue$1(customJson)) | 8898 if (!this.writeJsonValue$1(customJson)) |
8803 throw H.wrapException(new P.JsonUnsupportedObjectError(object, null)
); | 8899 throw H.wrapException(new P.JsonUnsupportedObjectError(object, null)
); |
8804 t1 = this._seen; | 8900 t1 = this._seen; |
8805 if (0 >= t1.length) | 8901 if (0 >= t1.length) |
8806 return H.ioore(t1, 0); | 8902 return H.ioore(t1, -1); |
8807 t1.pop(); | 8903 t1.pop(); |
8808 } catch (exception) { | 8904 } catch (exception) { |
8809 t1 = H.unwrapException(exception); | 8905 t1 = H.unwrapException(exception); |
8810 e = t1; | 8906 e = t1; |
8811 throw H.wrapException(new P.JsonUnsupportedObjectError(object, e)); | 8907 throw H.wrapException(new P.JsonUnsupportedObjectError(object, e)); |
8812 } | 8908 } |
8813 }, | 8909 }, |
8814 writeJsonValue$1: function(object) { | 8910 writeJsonValue$1: function(object) { |
8815 var t1, success; | 8911 var t1, success; |
8816 if (typeof object === "number") { | 8912 if (typeof object === "number") { |
8817 if (!C.JSNumber_methods.get$isFinite(object)) | 8913 if (!isFinite(object)) |
8818 return false; | 8914 return false; |
8819 this.writeNumber$1(object); | 8915 this.writeNumber$1(object); |
8820 return true; | 8916 return true; |
8821 } else if (object === true) { | 8917 } else if (object === true) { |
8822 this.writeString$1("true"); | 8918 this.writeString$1("true"); |
8823 return true; | 8919 return true; |
8824 } else if (object === false) { | 8920 } else if (object === false) { |
8825 this.writeString$1("false"); | 8921 this.writeString$1("false"); |
8826 return true; | 8922 return true; |
8827 } else if (object == null) { | 8923 } else if (object == null) { |
8828 this.writeString$1("null"); | 8924 this.writeString$1("null"); |
8829 return true; | 8925 return true; |
8830 } else if (typeof object === "string") { | 8926 } else if (typeof object === "string") { |
8831 this.writeString$1("\""); | 8927 this.writeString$1("\""); |
8832 this.writeStringContent$1(object); | 8928 this.writeStringContent$1(object); |
8833 this.writeString$1("\""); | 8929 this.writeString$1("\""); |
8834 return true; | 8930 return true; |
8835 } else { | 8931 } else { |
8836 t1 = J.getInterceptor(object); | 8932 t1 = J.getInterceptor(object); |
8837 if (!!t1.$isList) { | 8933 if (!!t1.$isList) { |
8838 this._checkCycle$1(object); | 8934 this._checkCycle$1(object); |
8839 this.writeList$1(object); | 8935 this.writeList$1(object); |
8840 this._removeSeen$1(object); | 8936 t1 = this._seen; |
| 8937 if (0 >= t1.length) |
| 8938 return H.ioore(t1, -1); |
| 8939 t1.pop(); |
8841 return true; | 8940 return true; |
8842 } else if (!!t1.$isMap) { | 8941 } else if (!!t1.$isMap) { |
8843 this._checkCycle$1(object); | 8942 this._checkCycle$1(object); |
8844 success = this.writeMap$1(object); | 8943 success = this.writeMap$1(object); |
8845 this._removeSeen$1(object); | 8944 t1 = this._seen; |
| 8945 if (0 >= t1.length) |
| 8946 return H.ioore(t1, -1); |
| 8947 t1.pop(); |
8846 return success; | 8948 return success; |
8847 } else | 8949 } else |
8848 return false; | 8950 return false; |
8849 } | 8951 } |
8850 }, | 8952 }, |
8851 writeList$1: function(list) { | 8953 writeList$1: function(list) { |
8852 var t1, i; | 8954 var t1, i; |
8853 this.writeString$1("["); | 8955 this.writeString$1("["); |
8854 t1 = J.getInterceptor$asx(list); | 8956 t1 = J.getInterceptor$asx(list); |
8855 if (t1.get$length(list) > 0) { | 8957 if (t1.get$length(list) > 0) { |
8856 this.writeObject$1(t1.$index(list, 0)); | 8958 this.writeObject$1(t1.$index(list, 0)); |
8857 for (i = 1; i < t1.get$length(list); ++i) { | 8959 for (i = 1; i < t1.get$length(list); ++i) { |
8858 this.writeString$1(","); | 8960 this.writeString$1(","); |
8859 this.writeObject$1(t1.$index(list, i)); | 8961 this.writeObject$1(t1.$index(list, i)); |
8860 } | 8962 } |
8861 } | 8963 } |
8862 this.writeString$1("]"); | 8964 this.writeString$1("]"); |
8863 }, | 8965 }, |
8864 writeMap$1: function(map) { | 8966 writeMap$1: function(map) { |
8865 var t1, t2, keyValueList, separator, i; | 8967 var t1, t2, keyValueList, separator, i; |
8866 t1 = {}; | 8968 t1 = {}; |
8867 if (map.get$isEmpty(map) === true) { | 8969 if (map.get$isEmpty(map) === true) { |
8868 this.writeString$1("{}"); | 8970 this.writeString$1("{}"); |
8869 return true; | 8971 return true; |
8870 } | 8972 } |
8871 t2 = J.$mul$ns(map.get$length(map), 2); | 8973 t2 = J.$mul$ns(map.get$length(map), 2); |
8872 if (typeof t2 !== "number") | 8974 if (typeof t2 !== "number") |
8873 return H.iae(t2); | 8975 return H.iae(t2); |
8874 keyValueList = Array(t2); | 8976 keyValueList = new Array(t2); |
8875 t1._captured_i_0 = 0; | 8977 t1.i = 0; |
8876 t1._captured_allStringKeys_1 = true; | 8978 t1.allStringKeys = true; |
8877 map.forEach$1(0, new P._JsonStringifier_writeMap_closure(t1, keyValueLis
t)); | 8979 map.forEach$1(0, new P._JsonStringifier_writeMap_closure(t1, keyValueLis
t)); |
8878 if (!t1._captured_allStringKeys_1) | 8980 if (!t1.allStringKeys) |
8879 return false; | 8981 return false; |
8880 this.writeString$1("{"); | 8982 this.writeString$1("{"); |
8881 for (t1 = keyValueList.length, separator = "\"", i = 0; i < t1; i += 2,
separator = ",\"") { | 8983 for (t1 = keyValueList.length, separator = "\"", i = 0; i < t1; i += 2,
separator = ",\"") { |
8882 this.writeString$1(separator); | 8984 this.writeString$1(separator); |
8883 this.writeStringContent$1(keyValueList[i]); | 8985 this.writeStringContent$1(keyValueList[i]); |
8884 this.writeString$1("\":"); | 8986 this.writeString$1("\":"); |
8885 t2 = i + 1; | 8987 t2 = i + 1; |
8886 if (t2 >= t1) | 8988 if (t2 >= t1) |
8887 return H.ioore(keyValueList, t2); | 8989 return H.ioore(keyValueList, t2); |
8888 this.writeObject$1(keyValueList[t2]); | 8990 this.writeObject$1(keyValueList[t2]); |
8889 } | 8991 } |
8890 this.writeString$1("}"); | 8992 this.writeString$1("}"); |
8891 return true; | 8993 return true; |
8892 }, | 8994 }, |
8893 _toEncodable$1: function(arg0) { | 8995 _toEncodable$1: function(arg0) { |
8894 return this._toEncodable.call$1(arg0); | 8996 return this._toEncodable.call$1(arg0); |
8895 } | 8997 } |
8896 }, | 8998 }, |
8897 _JsonStringifier_writeMap_closure: { | 8999 _JsonStringifier_writeMap_closure: { |
8898 "^": "Closure:3;_convert$_box_0,_captured_keyValueList_1", | 9000 "^": "Closure:3;_box_0,keyValueList", |
8899 call$2: [function(key, value) { | 9001 call$2: [function(key, value) { |
8900 var t1, t2, t3, i, t4; | 9002 var t1, t2, t3, i, t4; |
8901 if (typeof key !== "string") | 9003 if (typeof key !== "string") |
8902 this._convert$_box_0._captured_allStringKeys_1 = false; | 9004 this._box_0.allStringKeys = false; |
8903 t1 = this._captured_keyValueList_1; | 9005 t1 = this.keyValueList; |
8904 t2 = this._convert$_box_0; | 9006 t2 = this._box_0; |
8905 t3 = t2._captured_i_0; | 9007 t3 = t2.i; |
8906 i = t3 + 1; | 9008 i = t3 + 1; |
8907 t2._captured_i_0 = i; | 9009 t2.i = i; |
8908 t4 = t1.length; | 9010 t4 = t1.length; |
8909 if (t3 >= t4) | 9011 if (t3 >= t4) |
8910 return H.ioore(t1, t3); | 9012 return H.ioore(t1, t3); |
8911 t1[t3] = key; | 9013 t1[t3] = key; |
8912 t2._captured_i_0 = i + 1; | 9014 t2.i = i + 1; |
8913 if (i >= t4) | 9015 if (i >= t4) |
8914 return H.ioore(t1, i); | 9016 return H.ioore(t1, i); |
8915 t1[i] = value; | 9017 t1[i] = value; |
8916 }, null, null, 4, 0, null, 13, 8, "call"] | 9018 }, null, null, 4, 0, null, 17, 6, "call"] |
8917 }, | 9019 }, |
8918 _JsonStringStringifier: { | 9020 _JsonStringStringifier: { |
8919 "^": "_JsonStringifier;_sink,_seen,_toEncodable", | 9021 "^": "_JsonStringifier;_convert$_sink,_seen,_toEncodable", |
8920 writeNumber$1: function(number) { | 9022 writeNumber$1: function(number) { |
8921 this._sink._contents += C.JSNumber_methods.toString$0(number); | 9023 this._convert$_sink.write$1(C.JSNumber_methods.toString$0(number)); |
8922 }, | 9024 }, |
8923 writeString$1: function(string) { | 9025 writeString$1: function(string) { |
8924 this._sink._contents += H.S(string); | 9026 this._convert$_sink.write$1(string); |
8925 }, | 9027 }, |
8926 writeStringSlice$3: function(string, start, end) { | 9028 writeStringSlice$3: function(string, start, end) { |
8927 this._sink._contents += J.substring$2$s(string, start, end); | 9029 this._convert$_sink.write$1(J.substring$2$s(string, start, end)); |
8928 }, | 9030 }, |
8929 writeCharCode$1: function(charCode) { | 9031 writeCharCode$1: function(charCode) { |
8930 this._sink._contents += H.Primitives_stringFromCharCode(charCode); | 9032 this._convert$_sink.writeCharCode$1(charCode); |
8931 }, | 9033 }, |
8932 static: {_JsonStringStringifier_stringify: function(object, toEncodable, i
ndent) { | 9034 static: {_JsonStringStringifier_stringify: function(object, toEncodable, i
ndent) { |
8933 var output, t1, stringifier; | 9035 var output, t1; |
8934 output = new P.StringBuffer(""); | 9036 output = new P.StringBuffer(""); |
| 9037 P._JsonStringStringifier_printOn(object, output, toEncodable, indent); |
| 9038 t1 = output._contents; |
| 9039 return t1.charCodeAt(0) == 0 ? t1 : t1; |
| 9040 }, _JsonStringStringifier_printOn: function(object, output, toEncodable,
indent) { |
| 9041 var t1, stringifier; |
8935 t1 = P.convert___defaultToEncodable$closure(); | 9042 t1 = P.convert___defaultToEncodable$closure(); |
8936 stringifier = new P._JsonStringStringifier(output, [], t1); | 9043 stringifier = new P._JsonStringStringifier(output, [], t1); |
8937 stringifier.writeObject$1(object); | 9044 stringifier.writeObject$1(object); |
8938 t1 = output._contents; | |
8939 return t1.charCodeAt(0) == 0 ? t1 : t1; | |
8940 }} | 9045 }} |
8941 }, | 9046 }, |
8942 Utf8Codec: { | 9047 Utf8Codec: { |
8943 "^": "Encoding;_allowMalformed", | 9048 "^": "Encoding;_allowMalformed", |
8944 get$encoder: function() { | 9049 get$encoder: function() { |
8945 return new P.Utf8Encoder(); | 9050 return C.C_Utf8Encoder; |
8946 } | 9051 } |
8947 }, | 9052 }, |
8948 Utf8Encoder: { | 9053 Utf8Encoder: { |
8949 "^": "Converter;", | 9054 "^": "Converter;", |
8950 convert$3: function(string, start, end) { | 9055 convert$3: function(string, start, end) { |
8951 var t1, stringLength, t2, $length, t3, encoder; | 9056 var t1, stringLength, t2, $length, t3, encoder; |
8952 t1 = J.getInterceptor$asx(string); | 9057 t1 = J.getInterceptor$asx(string); |
8953 stringLength = t1.get$length(string); | 9058 stringLength = t1.get$length(string); |
8954 P.RangeError_checkValidRange(start, end, stringLength, null, null, null)
; | 9059 P.RangeError_checkValidRange(start, end, stringLength, null, null, null)
; |
8955 t2 = J.getInterceptor$n(stringLength); | 9060 t2 = J.getInterceptor$n(stringLength); |
8956 $length = t2.$sub(stringLength, start); | 9061 $length = t2.$sub(stringLength, start); |
8957 t3 = J.getInterceptor($length); | 9062 t3 = J.getInterceptor($length); |
8958 if (t3.$eq($length, 0)) | 9063 if (t3.$eq($length, 0)) |
8959 return new Uint8Array(0); | 9064 return new Uint8Array(0); |
8960 t3 = t3.$mul($length, 3); | 9065 t3 = t3.$mul($length, 3); |
8961 if (typeof t3 !== "number" || Math.floor(t3) !== t3) | 9066 if (typeof t3 !== "number" || Math.floor(t3) !== t3) |
8962 H.throwExpression(P.ArgumentError$("Invalid length " + H.S(t3))); | 9067 H.throwExpression(P.ArgumentError$("Invalid length " + H.S(t3))); |
8963 t3 = new Uint8Array(t3); | 9068 t3 = new Uint8Array(t3); |
8964 encoder = new P._Utf8Encoder(0, 0, t3); | 9069 encoder = new P._Utf8Encoder(0, 0, t3); |
8965 if (encoder._fillBuffer$3(string, start, stringLength) !== stringLength) | 9070 if (encoder._fillBuffer$3(string, start, stringLength) !== stringLength) |
8966 encoder._writeSurrogate$2(t1.codeUnitAt$1(string, t2.$sub(stringLength
, 1)), 0); | 9071 encoder._writeSurrogate$2(t1.codeUnitAt$1(string, t2.$sub(stringLength
, 1)), 0); |
8967 return new Uint8Array(t3.subarray(0, C.NativeUint8List_methods._checkSub
listArguments$3(t3, 0, encoder._bufferIndex, t3.length))); | 9072 return C.NativeUint8List_methods.sublist$2(t3, 0, encoder._bufferIndex); |
8968 }, | 9073 }, |
8969 convert$1: function(string) { | 9074 convert$1: function(string) { |
8970 return this.convert$3(string, 0, null); | 9075 return this.convert$3(string, 0, null); |
8971 } | 9076 } |
8972 }, | 9077 }, |
8973 _Utf8Encoder: { | 9078 _Utf8Encoder: { |
8974 "^": "Object;_carry,_bufferIndex,_buffer", | 9079 "^": "Object;_carry,_bufferIndex,_buffer", |
8975 _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) { | 9080 _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) { |
8976 var t1, t2, rune, t3, t4; | 9081 var t1, t2, rune, t3, t4; |
8977 t1 = this._buffer; | 9082 t1 = this._buffer; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9076 return stringIndex; | 9181 return stringIndex; |
9077 } | 9182 } |
9078 }, | 9183 }, |
9079 Utf8Decoder: { | 9184 Utf8Decoder: { |
9080 "^": "Converter;_allowMalformed", | 9185 "^": "Converter;_allowMalformed", |
9081 convert$3: function(codeUnits, start, end) { | 9186 convert$3: function(codeUnits, start, end) { |
9082 var $length, buffer, decoder, t1; | 9187 var $length, buffer, decoder, t1; |
9083 $length = J.get$length$asx(codeUnits); | 9188 $length = J.get$length$asx(codeUnits); |
9084 P.RangeError_checkValidRange(start, end, $length, null, null, null); | 9189 P.RangeError_checkValidRange(start, end, $length, null, null, null); |
9085 buffer = new P.StringBuffer(""); | 9190 buffer = new P.StringBuffer(""); |
9086 decoder = new P._Utf8Decoder(this._allowMalformed, buffer, true, 0, 0, 0
); | 9191 decoder = new P._Utf8Decoder(false, buffer, true, 0, 0, 0); |
9087 decoder.convert$3(codeUnits, start, $length); | 9192 decoder.convert$3(codeUnits, start, $length); |
9088 decoder.flush$0(); | 9193 decoder.flush$0(); |
9089 t1 = buffer._contents; | 9194 t1 = buffer._contents; |
9090 return t1.charCodeAt(0) == 0 ? t1 : t1; | 9195 return t1.charCodeAt(0) == 0 ? t1 : t1; |
9091 }, | 9196 }, |
9092 convert$1: function(codeUnits) { | 9197 convert$1: function(codeUnits) { |
9093 return this.convert$3(codeUnits, 0, null); | 9198 return this.convert$3(codeUnits, 0, null); |
9094 } | 9199 } |
9095 }, | 9200 }, |
9096 _Utf8Decoder: { | 9201 _Utf8Decoder: { |
9097 "^": "Object;_allowMalformed,_stringSink,_isFirstCharacter,_convert$_value
,_expectedUnits,_extraUnits", | 9202 "^": "Object;_allowMalformed,_stringSink,_isFirstCharacter,_value,_expecte
dUnits,_extraUnits", |
9098 close$0: function(_) { | |
9099 this.flush$0(); | |
9100 }, | |
9101 flush$0: function() { | 9203 flush$0: function() { |
9102 if (this._expectedUnits > 0) { | 9204 if (this._expectedUnits > 0) |
9103 if (!this._allowMalformed) | 9205 throw H.wrapException(new P.FormatException("Unfinished UTF-8 octet se
quence", null, null)); |
9104 throw H.wrapException(new P.FormatException("Unfinished UTF-8 octet
sequence", null, null)); | |
9105 this._stringSink._contents += H.Primitives_stringFromCharCode(65533); | |
9106 this._convert$_value = 0; | |
9107 this._expectedUnits = 0; | |
9108 this._extraUnits = 0; | |
9109 } | |
9110 }, | 9206 }, |
9111 convert$3: function(codeUnits, startIndex, endIndex) { | 9207 convert$3: function(codeUnits, startIndex, endIndex) { |
9112 var value, expectedUnits, extraUnits, t1, t2, t3, t4, t5, i, unit, t6, o
neBytes, i0; | 9208 var value, expectedUnits, extraUnits, t1, t2, t3, t4, i, unit, t5, oneBy
tes, i0, i1, t6; |
9113 value = this._convert$_value; | 9209 value = this._value; |
9114 expectedUnits = this._expectedUnits; | 9210 expectedUnits = this._expectedUnits; |
9115 extraUnits = this._extraUnits; | 9211 extraUnits = this._extraUnits; |
9116 this._convert$_value = 0; | 9212 this._value = 0; |
9117 this._expectedUnits = 0; | 9213 this._expectedUnits = 0; |
9118 this._extraUnits = 0; | 9214 this._extraUnits = 0; |
9119 t1 = new P._Utf8Decoder_convert_scanOneByteCharacters(endIndex); | 9215 t1 = new P._Utf8Decoder_convert_scanOneByteCharacters(endIndex); |
9120 t2 = new P._Utf8Decoder_convert_addSingleBytes(this, codeUnits, startInd
ex, endIndex); | 9216 t2 = new P._Utf8Decoder_convert_addSingleBytes(this, codeUnits, startInd
ex, endIndex); |
9121 $loop$0: | 9217 $loop$0: |
9122 for (t3 = this._stringSink, t4 = !this._allowMalformed, t5 = J.getInte
rceptor$asx(codeUnits), i = startIndex; true; i = i0) { | 9218 for (t3 = J.getInterceptor$asx(codeUnits), t4 = this._stringSink, i =
startIndex; true; i = i1) { |
9123 $multibyte$2: | 9219 $multibyte$2: |
9124 if (expectedUnits > 0) { | 9220 if (expectedUnits > 0) { |
9125 do { | 9221 do { |
9126 if (i === endIndex) | 9222 if (i === endIndex) |
9127 break $loop$0; | 9223 break $loop$0; |
9128 unit = t5.$index(codeUnits, i); | 9224 unit = t3.$index(codeUnits, i); |
9129 t6 = J.getInterceptor$n(unit); | 9225 t5 = J.getInterceptor$n(unit); |
9130 if (t6.$and(unit, 192) !== 128) { | 9226 if (t5.$and(unit, 192) !== 128) |
9131 if (t4) | 9227 throw H.wrapException(new P.FormatException("Bad UTF-8 encod
ing 0x" + t5.toRadixString$1(unit, 16), null, null)); |
9132 throw H.wrapException(new P.FormatException("Bad UTF-8 enc
oding 0x" + t6.toRadixString$1(unit, 16), null, null)); | 9228 else { |
9133 this._isFirstCharacter = false; | 9229 value = (value << 6 | t5.$and(unit, 63)) >>> 0; |
9134 t3._contents += H.Primitives_stringFromCharCode(65533); | |
9135 expectedUnits = 0; | |
9136 break $multibyte$2; | |
9137 } else { | |
9138 value = (value << 6 | t6.$and(unit, 63)) >>> 0; | |
9139 --expectedUnits; | 9230 --expectedUnits; |
9140 ++i; | 9231 ++i; |
9141 } | 9232 } |
9142 } while (expectedUnits > 0); | 9233 } while (expectedUnits > 0); |
9143 t6 = extraUnits - 1; | 9234 t5 = extraUnits - 1; |
9144 if (t6 < 0 || t6 >= 4) | 9235 if (t5 < 0 || t5 >= 4) |
9145 return H.ioore(C.List_127_2047_65535_1114111, t6); | 9236 return H.ioore(C.List_127_2047_65535_1114111, t5); |
9146 if (value <= C.List_127_2047_65535_1114111[t6]) { | 9237 if (value <= C.List_127_2047_65535_1114111[t5]) |
9147 if (t4) | 9238 throw H.wrapException(new P.FormatException("Overlong encoding
of 0x" + C.JSInt_methods.toRadixString$1(value, 16), null, null)); |
9148 throw H.wrapException(new P.FormatException("Overlong encodi
ng of 0x" + C.JSInt_methods.toRadixString$1(value, 16), null, null)); | 9239 if (value > 1114111) |
9149 value = 65533; | 9240 throw H.wrapException(new P.FormatException("Character outside
valid Unicode range: 0x" + C.JSInt_methods.toRadixString$1(value, 16), null, nu
ll)); |
9150 expectedUnits = 0; | |
9151 extraUnits = 0; | |
9152 } | |
9153 if (value > 1114111) { | |
9154 if (t4) | |
9155 throw H.wrapException(new P.FormatException("Character outsi
de valid Unicode range: 0x" + C.JSInt_methods.toRadixString$1(value, 16), null,
null)); | |
9156 value = 65533; | |
9157 } | |
9158 if (!this._isFirstCharacter || value !== 65279) | 9241 if (!this._isFirstCharacter || value !== 65279) |
9159 t3._contents += H.Primitives_stringFromCharCode(value); | 9242 t4._contents += H.Primitives_stringFromCharCode(value); |
9160 this._isFirstCharacter = false; | 9243 this._isFirstCharacter = false; |
9161 } | 9244 } |
9162 for (; i < endIndex; i = i0) { | 9245 for (t5 = i < endIndex; t5;) { |
9163 oneBytes = t1.call$2(codeUnits, i); | 9246 oneBytes = t1.call$2(codeUnits, i); |
9164 if (J.$gt$n(oneBytes, 0)) { | 9247 if (J.$gt$n(oneBytes, 0)) { |
9165 this._isFirstCharacter = false; | 9248 this._isFirstCharacter = false; |
9166 if (typeof oneBytes !== "number") | 9249 if (typeof oneBytes !== "number") |
9167 return H.iae(oneBytes); | 9250 return H.iae(oneBytes); |
9168 i0 = i + oneBytes; | 9251 i0 = i + oneBytes; |
9169 t2.call$2(i, i0); | 9252 t2.call$2(i, i0); |
9170 if (i0 === endIndex) | 9253 if (i0 === endIndex) |
9171 break; | 9254 break; |
9172 i = i0; | 9255 } else |
9173 } | 9256 i0 = i; |
9174 i0 = i + 1; | 9257 i1 = i0 + 1; |
9175 unit = t5.$index(codeUnits, i); | 9258 unit = t3.$index(codeUnits, i0); |
9176 t6 = J.getInterceptor$n(unit); | 9259 t6 = J.getInterceptor$n(unit); |
9177 if (t6.$lt(unit, 0)) { | 9260 if (t6.$lt(unit, 0)) |
9178 if (t4) | 9261 throw H.wrapException(new P.FormatException("Negative UTF-8 code
unit: -0x" + J.toRadixString$1$n(t6.$negate(unit), 16), null, null)); |
9179 throw H.wrapException(new P.FormatException("Negative UTF-8 co
de unit: -0x" + J.toRadixString$1$n(t6.$negate(unit), 16), null, null)); | 9262 else { |
9180 t3._contents += H.Primitives_stringFromCharCode(65533); | |
9181 } else { | |
9182 if (t6.$and(unit, 224) === 192) { | 9263 if (t6.$and(unit, 224) === 192) { |
9183 value = t6.$and(unit, 31); | 9264 value = t6.$and(unit, 31); |
9184 expectedUnits = 1; | 9265 expectedUnits = 1; |
9185 extraUnits = 1; | 9266 extraUnits = 1; |
9186 continue $loop$0; | 9267 continue $loop$0; |
9187 } | 9268 } |
9188 if (t6.$and(unit, 240) === 224) { | 9269 if (t6.$and(unit, 240) === 224) { |
9189 value = t6.$and(unit, 15); | 9270 value = t6.$and(unit, 15); |
9190 expectedUnits = 2; | 9271 expectedUnits = 2; |
9191 extraUnits = 2; | 9272 extraUnits = 2; |
9192 continue $loop$0; | 9273 continue $loop$0; |
9193 } | 9274 } |
9194 if (t6.$and(unit, 248) === 240 && t6.$lt(unit, 245)) { | 9275 if (t6.$and(unit, 248) === 240 && t6.$lt(unit, 245)) { |
9195 value = t6.$and(unit, 7); | 9276 value = t6.$and(unit, 7); |
9196 expectedUnits = 3; | 9277 expectedUnits = 3; |
9197 extraUnits = 3; | 9278 extraUnits = 3; |
9198 continue $loop$0; | 9279 continue $loop$0; |
9199 } | 9280 } |
9200 if (t4) | 9281 throw H.wrapException(new P.FormatException("Bad UTF-8 encoding
0x" + t6.toRadixString$1(unit, 16), null, null)); |
9201 throw H.wrapException(new P.FormatException("Bad UTF-8 encodin
g 0x" + t6.toRadixString$1(unit, 16), null, null)); | |
9202 this._isFirstCharacter = false; | |
9203 t3._contents += H.Primitives_stringFromCharCode(65533); | |
9204 value = 65533; | |
9205 expectedUnits = 0; | |
9206 extraUnits = 0; | |
9207 } | 9282 } |
9208 } | 9283 } |
9209 break $loop$0; | 9284 break $loop$0; |
9210 } | 9285 } |
9211 if (expectedUnits > 0) { | 9286 if (expectedUnits > 0) { |
9212 this._convert$_value = value; | 9287 this._value = value; |
9213 this._expectedUnits = expectedUnits; | 9288 this._expectedUnits = expectedUnits; |
9214 this._extraUnits = extraUnits; | 9289 this._extraUnits = extraUnits; |
9215 } | 9290 } |
9216 } | 9291 } |
9217 }, | 9292 }, |
9218 _Utf8Decoder_convert_scanOneByteCharacters: { | 9293 _Utf8Decoder_convert_scanOneByteCharacters: { |
9219 "^": "Closure:42;_captured_endIndex_0", | 9294 "^": "Closure:43;endIndex", |
9220 call$2: function(units, from) { | 9295 call$2: function(units, from) { |
9221 var to, t1, i, unit; | 9296 var to, t1, i, unit; |
9222 to = this._captured_endIndex_0; | 9297 to = this.endIndex; |
9223 for (t1 = J.getInterceptor$asx(units), i = from; i < to; ++i) { | 9298 for (t1 = J.getInterceptor$asx(units), i = from; i < to; ++i) { |
9224 unit = t1.$index(units, i); | 9299 unit = t1.$index(units, i); |
9225 if (J.$and$n(unit, 127) !== unit) | 9300 if (J.$and$n(unit, 127) !== unit) |
9226 return i - from; | 9301 return i - from; |
9227 } | 9302 } |
9228 return to - from; | 9303 return to - from; |
9229 } | 9304 } |
9230 }, | 9305 }, |
9231 _Utf8Decoder_convert_addSingleBytes: { | 9306 _Utf8Decoder_convert_addSingleBytes: { |
9232 "^": "Closure:43;_convert$_captured_this_1,_captured_codeUnits_2,_captured
_startIndex_3,_captured_endIndex_4", | 9307 "^": "Closure:67;$this,codeUnits,startIndex,endIndex", |
9233 call$2: function(from, to) { | 9308 call$2: function(from, to) { |
9234 this._convert$_captured_this_1._stringSink._contents += P.String_String$
fromCharCodes(this._captured_codeUnits_2, from, to); | 9309 this.$this._stringSink._contents += P.String_String$fromCharCodes(this.c
odeUnits, from, to); |
9235 } | 9310 } |
9236 } | 9311 } |
9237 }], ["dart.core", "dart:core",, P, { | 9312 }], ["dart.core", "dart:core",, P, { |
9238 "^": "", | 9313 "^": "", |
9239 String__stringFromIterable: function(charCodes, start, end) { | 9314 String__stringFromIterable: function(charCodes, start, end) { |
9240 var t1, it, i, list; | 9315 var t1, it, i, list; |
9241 if (start < 0) | 9316 if (start < 0) |
9242 throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(char
Codes), null, null)); | 9317 throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(char
Codes), null, null)); |
9243 t1 = end == null; | 9318 t1 = end == null; |
9244 if (!t1 && end < start) | 9319 if (!t1 && J.$lt$n(end, start)) |
9245 throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(ch
arCodes), null, null)); | 9320 throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(ch
arCodes), null, null)); |
9246 it = J.get$iterator$ax(charCodes); | 9321 it = J.get$iterator$ax(charCodes); |
9247 for (i = 0; i < start; ++i) | 9322 for (i = 0; i < start; ++i) |
9248 if (!it.moveNext$0()) | 9323 if (!it.moveNext$0()) |
9249 throw H.wrapException(P.RangeError$range(start, 0, i, null, null)); | 9324 throw H.wrapException(P.RangeError$range(start, 0, i, null, null)); |
9250 list = []; | 9325 list = []; |
9251 if (t1) | 9326 if (t1) |
9252 for (; it.moveNext$0();) | 9327 for (; it.moveNext$0();) |
9253 list.push(it.get$current()); | 9328 list.push(it.get$current()); |
9254 else | 9329 else { |
9255 for (i = start; i < end; ++i) { | 9330 if (typeof end !== "number") |
| 9331 return H.iae(end); |
| 9332 i = start; |
| 9333 for (; i < end; ++i) { |
9256 if (!it.moveNext$0()) | 9334 if (!it.moveNext$0()) |
9257 throw H.wrapException(P.RangeError$range(end, start, i, null, null))
; | 9335 throw H.wrapException(P.RangeError$range(end, start, i, null, null))
; |
9258 list.push(it.get$current()); | 9336 list.push(it.get$current()); |
9259 } | 9337 } |
| 9338 } |
9260 return H.Primitives_stringFromCharCodes(list); | 9339 return H.Primitives_stringFromCharCodes(list); |
9261 }, | 9340 }, |
9262 Error_safeToString: function(object) { | 9341 Error_safeToString: function(object) { |
9263 if (typeof object === "number" || typeof object === "boolean" || null == o
bject) | 9342 if (typeof object === "number" || typeof object === "boolean" || null == o
bject) |
9264 return J.toString$0$(object); | 9343 return J.toString$0$(object); |
9265 if (typeof object === "string") | 9344 if (typeof object === "string") |
9266 return JSON.stringify(object); | 9345 return JSON.stringify(object); |
9267 return P.Error__objectToString(object); | 9346 return P.Error__objectToString(object); |
9268 }, | 9347 }, |
9269 Error__objectToString: function(object) { | 9348 Error__objectToString: function(object) { |
9270 var t1 = J.getInterceptor(object); | 9349 var t1 = J.getInterceptor(object); |
9271 if (!!t1.$isClosure) | 9350 if (!!t1.$isClosure) |
9272 return t1.toString$0(object); | 9351 return t1.toString$0(object); |
9273 return H.Primitives_objectToHumanReadableString(object); | 9352 return H.Primitives_objectToHumanReadableString(object); |
9274 }, | 9353 }, |
9275 Exception_Exception: function(message) { | 9354 Exception_Exception: function(message) { |
9276 return new P._Exception(message); | 9355 return new P._Exception(message); |
9277 }, | 9356 }, |
9278 List_List$filled: function($length, fill, $E) { | 9357 List_List$filled: function($length, fill, growable, $E) { |
9279 var result, t1, i; | 9358 var result, t1, i; |
9280 result = J.JSArray_JSArray$fixed($length, $E); | 9359 result = J.JSArray_JSArray$fixed($length, $E); |
9281 if ($length !== 0 && true) | 9360 if ($length !== 0 && true) |
9282 for (t1 = result.length, i = 0; i < t1; ++i) | 9361 for (t1 = result.length, i = 0; i < t1; ++i) |
9283 result[i] = fill; | 9362 result[i] = fill; |
9284 return result; | 9363 return result; |
9285 }, | 9364 }, |
9286 List_List$from: function(elements, growable, $E) { | 9365 List_List$from: function(elements, growable, $E) { |
9287 var list, t1; | 9366 var list, t1; |
9288 list = H.setRuntimeTypeInfo([], [$E]); | 9367 list = H.setRuntimeTypeInfo([], [$E]); |
9289 for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) | 9368 for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) |
9290 list.push(t1.get$current()); | 9369 list.push(t1.get$current()); |
9291 if (growable) | 9370 if (growable) |
9292 return list; | 9371 return list; |
9293 list.fixed$length = Array; | 9372 list.fixed$length = Array; |
9294 return list; | 9373 return list; |
9295 }, | 9374 }, |
9296 List_List$generate: function($length, generator, growable, $E) { | 9375 List_List$generate: function($length, generator, growable, $E) { |
9297 var result, t1, i; | 9376 var result, i, t1; |
9298 if (growable) { | 9377 result = H.setRuntimeTypeInfo([], [$E]); |
9299 result = H.setRuntimeTypeInfo([], [$E]); | 9378 C.JSArray_methods.set$length(result, $length); |
9300 C.JSArray_methods.set$length(result, $length); | |
9301 } else { | |
9302 t1 = Array($length); | |
9303 t1.fixed$length = Array; | |
9304 result = H.setRuntimeTypeInfo(t1, [$E]); | |
9305 } | |
9306 for (i = 0; i < $length; ++i) { | 9379 for (i = 0; i < $length; ++i) { |
9307 t1 = generator.call$1(i); | 9380 t1 = generator.call$1(i); |
9308 if (i >= result.length) | 9381 if (i >= result.length) |
9309 return H.ioore(result, i); | 9382 return H.ioore(result, i); |
9310 result[i] = t1; | 9383 result[i] = t1; |
9311 } | 9384 } |
9312 return result; | 9385 return result; |
9313 }, | 9386 }, |
9314 print: function(object) { | 9387 print: function(object) { |
9315 var line, t1; | 9388 var line, t1; |
9316 line = H.S(object); | 9389 line = H.S(object); |
9317 t1 = $.printToZone; | 9390 t1 = $.printToZone; |
9318 if (t1 == null) | 9391 if (t1 == null) |
9319 H.printString(line); | 9392 H.printString(line); |
9320 else | 9393 else |
9321 t1.call$1(line); | 9394 t1.call$1(line); |
9322 }, | 9395 }, |
9323 RegExp_RegExp: function(source, caseSensitive, multiLine) { | 9396 RegExp_RegExp: function(source, caseSensitive, multiLine) { |
9324 return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, mu
ltiLine, caseSensitive, false), null, null); | 9397 return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, mu
ltiLine, true, false), null, null); |
9325 }, | 9398 }, |
9326 String_String$fromCharCodes: function(charCodes, start, end) { | 9399 String_String$fromCharCodes: function(charCodes, start, end) { |
9327 var len; | 9400 var len; |
9328 if (charCodes.constructor === Array) { | 9401 if (charCodes.constructor === Array) { |
9329 len = charCodes.length; | 9402 len = charCodes.length; |
9330 end = P.RangeError_checkValidRange(start, end, len, null, null, null); | 9403 end = P.RangeError_checkValidRange(start, end, len, null, null, null); |
9331 return H.Primitives_stringFromCharCodes(start > 0 || J.$lt$n(end, len) ?
C.JSArray_methods.sublist$2(charCodes, start, end) : charCodes); | 9404 return H.Primitives_stringFromCharCodes(start > 0 || J.$lt$n(end, len) ?
C.JSArray_methods.sublist$2(charCodes, start, end) : charCodes); |
9332 } | 9405 } |
| 9406 if (!!J.getInterceptor(charCodes).$isNativeUint8List) |
| 9407 return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeE
rror_checkValidRange(start, end, charCodes.length, null, null, null)); |
9333 return P.String__stringFromIterable(charCodes, start, end); | 9408 return P.String__stringFromIterable(charCodes, start, end); |
9334 }, | 9409 }, |
9335 String_String$fromCharCode: function(charCode) { | 9410 String_String$fromCharCode: function(charCode) { |
9336 return H.Primitives_stringFromCharCode(charCode); | 9411 return H.Primitives_stringFromCharCode(charCode); |
9337 }, | 9412 }, |
9338 NoSuchMethodError_toString_closure: { | 9413 NoSuchMethodError_toString_closure: { |
9339 "^": "Closure:44;_box_0,_captured_sb_1", | 9414 "^": "Closure:45;_box_0,sb", |
9340 call$2: [function(key, value) { | 9415 call$2: [function(key, value) { |
9341 var t1, t2, t3; | 9416 var t1, t2, t3; |
9342 t1 = this._captured_sb_1; | 9417 t1 = this.sb; |
9343 t2 = this._box_0; | 9418 t2 = this._box_0; |
9344 t1._contents += t2._captured_comma_0; | 9419 t1._contents += t2.comma; |
9345 t3 = t1._contents += H.S(key.get$__internal$_name()); | 9420 t3 = t1._contents += H.S(key.get$__internal$_name()); |
9346 t1._contents = t3 + ": "; | 9421 t1._contents = t3 + ": "; |
9347 t1._contents += H.S(P.Error_safeToString(value)); | 9422 t1._contents += H.S(P.Error_safeToString(value)); |
9348 t2._captured_comma_0 = ", "; | 9423 t2.comma = ", "; |
9349 }, null, null, 4, 0, null, 13, 8, "call"] | 9424 }, null, null, 4, 0, null, 17, 6, "call"] |
9350 }, | 9425 }, |
9351 bool: { | 9426 bool: { |
9352 "^": "Object;" | 9427 "^": "Object;" |
9353 }, | 9428 }, |
9354 "+bool": 0, | 9429 "+bool": 0, |
9355 DateTime: { | 9430 DateTime: { |
9356 "^": "Object;millisecondsSinceEpoch,isUtc", | 9431 "^": "Object;_core$_value,isUtc", |
9357 $eq: function(_, other) { | 9432 $eq: function(_, other) { |
9358 if (other == null) | 9433 if (other == null) |
9359 return false; | 9434 return false; |
9360 if (!(other instanceof P.DateTime)) | 9435 if (!(other instanceof P.DateTime)) |
9361 return false; | 9436 return false; |
9362 return this.millisecondsSinceEpoch === other.millisecondsSinceEpoch && t
his.isUtc === other.isUtc; | 9437 return this._core$_value === other._core$_value && this.isUtc === other.
isUtc; |
9363 }, | 9438 }, |
9364 get$hashCode: function(_) { | 9439 get$hashCode: function(_) { |
9365 return this.millisecondsSinceEpoch; | 9440 var t1 = this._core$_value; |
| 9441 return (t1 ^ C.JSNumber_methods._shrOtherPositive$1(t1, 30)) & 107374182
3; |
9366 }, | 9442 }, |
9367 toString$0: function(_) { | 9443 toString$0: function(_) { |
9368 var t1, y, m, d, h, min, sec, ms; | 9444 var t1, y, m, d, h, min, sec, ms; |
9369 t1 = this.isUtc; | 9445 t1 = this.isUtc; |
9370 y = P.DateTime__fourDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCFu
llYear() + 0 : H.Primitives_lazyAsJsDate(this).getFullYear() + 0); | 9446 y = P.DateTime__fourDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCFu
llYear() + 0 : H.Primitives_lazyAsJsDate(this).getFullYear() + 0); |
9371 m = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCMon
th() + 1 : H.Primitives_lazyAsJsDate(this).getMonth() + 1); | 9447 m = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCMon
th() + 1 : H.Primitives_lazyAsJsDate(this).getMonth() + 1); |
9372 d = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCDat
e() + 0 : H.Primitives_lazyAsJsDate(this).getDate() + 0); | 9448 d = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCDat
e() + 0 : H.Primitives_lazyAsJsDate(this).getDate() + 0); |
9373 h = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCHou
rs() + 0 : H.Primitives_lazyAsJsDate(this).getHours() + 0); | 9449 h = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCHou
rs() + 0 : H.Primitives_lazyAsJsDate(this).getHours() + 0); |
9374 min = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCM
inutes() + 0 : H.Primitives_lazyAsJsDate(this).getMinutes() + 0); | 9450 min = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCM
inutes() + 0 : H.Primitives_lazyAsJsDate(this).getMinutes() + 0); |
9375 sec = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCS
econds() + 0 : H.Primitives_lazyAsJsDate(this).getSeconds() + 0); | 9451 sec = P.DateTime__twoDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTCS
econds() + 0 : H.Primitives_lazyAsJsDate(this).getSeconds() + 0); |
9376 ms = P.DateTime__threeDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTC
Milliseconds() + 0 : H.Primitives_lazyAsJsDate(this).getMilliseconds() + 0); | 9452 ms = P.DateTime__threeDigits(t1 ? H.Primitives_lazyAsJsDate(this).getUTC
Milliseconds() + 0 : H.Primitives_lazyAsJsDate(this).getMilliseconds() + 0); |
9377 if (t1) | 9453 if (t1) |
9378 return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." +
ms + "Z"; | 9454 return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." +
ms + "Z"; |
9379 else | 9455 else |
9380 return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." +
ms; | 9456 return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." +
ms; |
9381 }, | 9457 }, |
9382 add$1: function(_, duration) { | 9458 add$1: function(_, duration) { |
9383 return P.DateTime$fromMillisecondsSinceEpoch(this.millisecondsSinceEpoch
+ duration.get$inMilliseconds(), this.isUtc); | 9459 return P.DateTime$_withValue(C.JSNumber_methods.$add(this._core$_value,
duration.get$inMilliseconds()), this.isUtc); |
9384 }, | 9460 }, |
9385 DateTime$fromMillisecondsSinceEpoch$2$isUtc: function(millisecondsSinceEpo
ch, isUtc) { | 9461 get$millisecondsSinceEpoch: function() { |
9386 if (Math.abs(millisecondsSinceEpoch) > 864e13) | 9462 return this._core$_value; |
9387 throw H.wrapException(P.ArgumentError$(millisecondsSinceEpoch)); | |
9388 }, | 9463 }, |
9389 static: {DateTime$fromMillisecondsSinceEpoch: function(millisecondsSinceEp
och, isUtc) { | 9464 DateTime$_withValue$2$isUtc: function(_value, isUtc) { |
9390 var t1 = new P.DateTime(millisecondsSinceEpoch, isUtc); | 9465 var t1 = this._core$_value; |
9391 t1.DateTime$fromMillisecondsSinceEpoch$2$isUtc(millisecondsSinceEpoch,
isUtc); | 9466 if (!(Math.abs(t1) > 864e13)) { |
| 9467 if (Math.abs(t1) === 864e13) |
| 9468 ; |
| 9469 t1 = false; |
| 9470 } else |
| 9471 t1 = true; |
| 9472 if (t1) |
| 9473 throw H.wrapException(P.ArgumentError$(this.get$millisecondsSinceEpoch
())); |
| 9474 }, |
| 9475 static: {DateTime$_withValue: function(_value, isUtc) { |
| 9476 var t1 = new P.DateTime(_value, isUtc); |
| 9477 t1.DateTime$_withValue$2$isUtc(_value, isUtc); |
9392 return t1; | 9478 return t1; |
9393 }, DateTime__fourDigits: function(n) { | 9479 }, DateTime__fourDigits: function(n) { |
9394 var absN, sign; | 9480 var absN, sign; |
9395 absN = Math.abs(n); | 9481 absN = Math.abs(n); |
9396 sign = n < 0 ? "-" : ""; | 9482 sign = n < 0 ? "-" : ""; |
9397 if (absN >= 1000) | 9483 if (absN >= 1000) |
9398 return "" + n; | 9484 return "" + n; |
9399 if (absN >= 100) | 9485 if (absN >= 100) |
9400 return sign + "0" + H.S(absN); | 9486 return sign + "0" + H.S(absN); |
9401 if (absN >= 10) | 9487 if (absN >= 10) |
(...skipping 30 matching lines...) Expand all Loading... |
9432 if (quotient === 0) | 9518 if (quotient === 0) |
9433 throw H.wrapException(new P.IntegerDivisionByZeroException()); | 9519 throw H.wrapException(new P.IntegerDivisionByZeroException()); |
9434 return new P.Duration(C.JSInt_methods.$tdiv(this._duration, quotient)); | 9520 return new P.Duration(C.JSInt_methods.$tdiv(this._duration, quotient)); |
9435 }, | 9521 }, |
9436 $lt: function(_, other) { | 9522 $lt: function(_, other) { |
9437 return this._duration < other.get$_duration(); | 9523 return this._duration < other.get$_duration(); |
9438 }, | 9524 }, |
9439 $gt: function(_, other) { | 9525 $gt: function(_, other) { |
9440 return this._duration > other.get$_duration(); | 9526 return this._duration > other.get$_duration(); |
9441 }, | 9527 }, |
| 9528 $le: function(_, other) { |
| 9529 return C.JSInt_methods.$le(this._duration, other.get$_duration()); |
| 9530 }, |
9442 $ge: function(_, other) { | 9531 $ge: function(_, other) { |
9443 return this._duration >= other.get$_duration(); | 9532 return this._duration >= other.get$_duration(); |
9444 }, | 9533 }, |
9445 get$inMilliseconds: function() { | 9534 get$inMilliseconds: function() { |
9446 return C.JSInt_methods._tdivFast$1(this._duration, 1000); | 9535 return C.JSInt_methods._tdivFast$1(this._duration, 1000); |
9447 }, | 9536 }, |
9448 $eq: function(_, other) { | 9537 $eq: function(_, other) { |
9449 if (other == null) | 9538 if (other == null) |
9450 return false; | 9539 return false; |
9451 if (!(other instanceof P.Duration)) | 9540 if (!(other instanceof P.Duration)) |
9452 return false; | 9541 return false; |
9453 return this._duration === other._duration; | 9542 return this._duration === other._duration; |
9454 }, | 9543 }, |
9455 get$hashCode: function(_) { | 9544 get$hashCode: function(_) { |
9456 return this._duration & 0x1FFFFFFF; | 9545 return this._duration & 0x1FFFFFFF; |
9457 }, | 9546 }, |
9458 toString$0: function(_) { | 9547 toString$0: function(_) { |
9459 var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs; | 9548 var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs; |
9460 t1 = new P.Duration_toString_twoDigits(); | 9549 t1 = new P.Duration_toString_twoDigits(); |
9461 t2 = this._duration; | 9550 t2 = this._duration; |
9462 if (t2 < 0) | 9551 if (t2 < 0) |
9463 return "-" + new P.Duration(-t2).toString$0(0); | 9552 return "-" + new P.Duration(-t2).toString$0(0); |
9464 twoDigitMinutes = t1.call$1(C.JSInt_methods.remainder$1(C.JSInt_methods.
_tdivFast$1(t2, 60000000), 60)); | 9553 twoDigitMinutes = t1.call$1(C.JSInt_methods.remainder$1(C.JSInt_methods.
_tdivFast$1(t2, 60000000), 60)); |
9465 twoDigitSeconds = t1.call$1(C.JSInt_methods.remainder$1(C.JSInt_methods.
_tdivFast$1(t2, 1000000), 60)); | 9554 twoDigitSeconds = t1.call$1(C.JSInt_methods.remainder$1(C.JSInt_methods.
_tdivFast$1(t2, 1000000), 60)); |
9466 sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSInt_methods.
remainder$1(t2, 1000000)); | 9555 sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSInt_methods.
remainder$1(t2, 1000000)); |
9467 return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoD
igitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs); | 9556 return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoD
igitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs); |
9468 }, | 9557 }, |
9469 $negate: function(_) { | 9558 $negate: function(_) { |
9470 return new P.Duration(-this._duration); | 9559 return new P.Duration(-this._duration); |
9471 } | 9560 }, |
| 9561 static: {Duration$: function(days, hours, microseconds, milliseconds, minu
tes, seconds) { |
| 9562 return new P.Duration(864e8 * days + 3600000000 * hours + 60000000 * m
inutes + 1000000 * seconds + 1000 * milliseconds + microseconds); |
| 9563 }} |
9472 }, | 9564 }, |
9473 Duration_toString_sixDigits: { | 9565 Duration_toString_sixDigits: { |
9474 "^": "Closure:7;", | 9566 "^": "Closure:15;", |
9475 call$1: function(n) { | 9567 call$1: function(n) { |
9476 if (n >= 100000) | 9568 if (n >= 100000) |
9477 return "" + n; | 9569 return "" + n; |
9478 if (n >= 10000) | 9570 if (n >= 10000) |
9479 return "0" + n; | 9571 return "0" + n; |
9480 if (n >= 1000) | 9572 if (n >= 1000) |
9481 return "00" + n; | 9573 return "00" + n; |
9482 if (n >= 100) | 9574 if (n >= 100) |
9483 return "000" + n; | 9575 return "000" + n; |
9484 if (n >= 10) | 9576 if (n >= 10) |
9485 return "0000" + n; | 9577 return "0000" + n; |
9486 return "00000" + n; | 9578 return "00000" + n; |
9487 } | 9579 } |
9488 }, | 9580 }, |
9489 Duration_toString_twoDigits: { | 9581 Duration_toString_twoDigits: { |
9490 "^": "Closure:7;", | 9582 "^": "Closure:15;", |
9491 call$1: function(n) { | 9583 call$1: function(n) { |
9492 if (n >= 10) | 9584 if (n >= 10) |
9493 return "" + n; | 9585 return "" + n; |
9494 return "0" + n; | 9586 return "0" + n; |
9495 } | 9587 } |
9496 }, | 9588 }, |
9497 Error: { | 9589 Error: { |
9498 "^": "Object;", | 9590 "^": "Object;", |
9499 get$stackTrace: function() { | 9591 get$stackTrace: function() { |
9500 return H.getTraceFromException(this.$thrownJsError); | 9592 return H.getTraceFromException(this.$thrownJsError); |
(...skipping 24 matching lines...) Expand all Loading... |
9525 return prefix; | 9617 return prefix; |
9526 explanation = this.get$_errorExplanation(); | 9618 explanation = this.get$_errorExplanation(); |
9527 errorValue = P.Error_safeToString(this.invalidValue); | 9619 errorValue = P.Error_safeToString(this.invalidValue); |
9528 return prefix + explanation + ": " + H.S(errorValue); | 9620 return prefix + explanation + ": " + H.S(errorValue); |
9529 }, | 9621 }, |
9530 static: {ArgumentError$: function(message) { | 9622 static: {ArgumentError$: function(message) { |
9531 return new P.ArgumentError(false, null, null, message); | 9623 return new P.ArgumentError(false, null, null, message); |
9532 }, ArgumentError$value: function(value, $name, message) { | 9624 }, ArgumentError$value: function(value, $name, message) { |
9533 return new P.ArgumentError(true, value, $name, message); | 9625 return new P.ArgumentError(true, value, $name, message); |
9534 }, ArgumentError$notNull: function($name) { | 9626 }, ArgumentError$notNull: function($name) { |
9535 return new P.ArgumentError(true, null, $name, "Must not be null"); | 9627 return new P.ArgumentError(false, null, $name, "Must not be null"); |
9536 }} | 9628 }} |
9537 }, | 9629 }, |
9538 RangeError: { | 9630 RangeError: { |
9539 "^": "ArgumentError;start>,end<,_hasValue,invalidValue,name,message", | 9631 "^": "ArgumentError;start,end,_hasValue,invalidValue,name,message", |
9540 get$_errorName: function() { | 9632 get$_errorName: function() { |
9541 return "RangeError"; | 9633 return "RangeError"; |
9542 }, | 9634 }, |
9543 get$_errorExplanation: function() { | 9635 get$_errorExplanation: function() { |
9544 var t1, explanation, t2, t3; | 9636 var t1, explanation, t2, t3; |
9545 t1 = this.start; | 9637 t1 = this.start; |
9546 if (t1 == null) { | 9638 if (t1 == null) { |
9547 t1 = this.end; | 9639 t1 = this.end; |
9548 explanation = t1 != null ? ": Not less than or equal to " + H.S(t1) :
""; | 9640 explanation = t1 != null ? ": Not less than or equal to " + H.S(t1) :
""; |
9549 } else { | 9641 } else { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9590 t1 = true; | 9682 t1 = true; |
9591 if (t1) | 9683 if (t1) |
9592 throw H.wrapException(P.RangeError$range(end, start, $length, "end
", message)); | 9684 throw H.wrapException(P.RangeError$range(end, start, $length, "end
", message)); |
9593 return end; | 9685 return end; |
9594 } | 9686 } |
9595 return $length; | 9687 return $length; |
9596 }} | 9688 }} |
9597 }, | 9689 }, |
9598 IndexError: { | 9690 IndexError: { |
9599 "^": "ArgumentError;indexable,length>,_hasValue,invalidValue,name,message"
, | 9691 "^": "ArgumentError;indexable,length>,_hasValue,invalidValue,name,message"
, |
9600 get$start: function(_) { | |
9601 return 0; | |
9602 }, | |
9603 get$end: function() { | |
9604 return J.$sub$n(this.length, 1); | |
9605 }, | |
9606 get$_errorName: function() { | 9692 get$_errorName: function() { |
9607 return "RangeError"; | 9693 return "RangeError"; |
9608 }, | 9694 }, |
9609 get$_errorExplanation: function() { | 9695 get$_errorExplanation: function() { |
9610 P.Error_safeToString(this.indexable); | 9696 if (J.$lt$n(this.invalidValue, 0)) |
9611 var explanation = ": index should be less than " + H.S(this.length); | 9697 return ": index must not be negative"; |
9612 return J.$lt$n(this.invalidValue, 0) ? ": index must not be negative" :
explanation; | 9698 var t1 = this.length; |
| 9699 if (J.$eq$(t1, 0)) |
| 9700 return ": no indices are valid"; |
| 9701 return ": index should be less than " + H.S(t1); |
9613 }, | 9702 }, |
9614 static: {IndexError$: function(invalidValue, indexable, $name, message, $l
ength) { | 9703 static: {IndexError$: function(invalidValue, indexable, $name, message, $l
ength) { |
9615 var t1 = $length != null ? $length : J.get$length$asx(indexable); | 9704 var t1 = $length != null ? $length : J.get$length$asx(indexable); |
9616 return new P.IndexError(indexable, t1, true, invalidValue, $name, "Ind
ex out of range"); | 9705 return new P.IndexError(indexable, t1, true, invalidValue, $name, "Ind
ex out of range"); |
9617 }} | 9706 }} |
9618 }, | 9707 }, |
9619 NoSuchMethodError: { | 9708 NoSuchMethodError: { |
9620 "^": "Error;_core$_receiver,_memberName,_core$_arguments,_namedArguments,_
existingArgumentNames", | 9709 "^": "Error;_core$_receiver,_memberName,_core$_arguments,_namedArguments,_
existingArgumentNames", |
9621 toString$0: function(_) { | 9710 toString$0: function(_) { |
9622 var t1, sb, t2, t3, _i, argument, memberName, receiverText, actualParame
ters; | 9711 var t1, sb, t2, t3, _i, argument, receiverText, actualParameters; |
9623 t1 = {}; | 9712 t1 = {}; |
9624 sb = new P.StringBuffer(""); | 9713 sb = new P.StringBuffer(""); |
9625 t1._captured_comma_0 = ""; | 9714 t1.comma = ""; |
9626 for (t2 = this._core$_arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
{ | 9715 for (t2 = this._core$_arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
{ |
9627 argument = t2[_i]; | 9716 argument = t2[_i]; |
9628 sb._contents += t1._captured_comma_0; | 9717 sb._contents += t1.comma; |
9629 sb._contents += H.S(P.Error_safeToString(argument)); | 9718 sb._contents += H.S(P.Error_safeToString(argument)); |
9630 t1._captured_comma_0 = ", "; | 9719 t1.comma = ", "; |
9631 } | 9720 } |
9632 this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closu
re(t1, sb)); | 9721 this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closu
re(t1, sb)); |
9633 memberName = this._memberName.get$__internal$_name(); | |
9634 receiverText = P.Error_safeToString(this._core$_receiver); | 9722 receiverText = P.Error_safeToString(this._core$_receiver); |
9635 actualParameters = H.S(sb); | 9723 actualParameters = H.S(sb); |
9636 return "NoSuchMethodError: method not found: '" + H.S(memberName) + "'\n
Receiver: " + H.S(receiverText) + "\nArguments: [" + actualParameters + "]"; | 9724 return "NoSuchMethodError: method not found: '" + H.S(this._memberName._
_internal$_name) + "'\nReceiver: " + H.S(receiverText) + "\nArguments: [" + actu
alParameters + "]"; |
9637 }, | 9725 }, |
9638 static: {NoSuchMethodError$: function(receiver, memberName, positionalArgu
ments, namedArguments, existingArgumentNames) { | 9726 static: {NoSuchMethodError$: function(receiver, memberName, positionalArgu
ments, namedArguments, existingArgumentNames) { |
9639 return new P.NoSuchMethodError(receiver, memberName, positionalArgumen
ts, namedArguments, existingArgumentNames); | 9727 return new P.NoSuchMethodError(receiver, memberName, positionalArgumen
ts, namedArguments, existingArgumentNames); |
9640 }} | 9728 }} |
9641 }, | 9729 }, |
9642 UnsupportedError: { | 9730 UnsupportedError: { |
9643 "^": "Error;message>", | 9731 "^": "Error;message>", |
9644 toString$0: function(_) { | 9732 toString$0: function(_) { |
9645 return "Unsupported operation: " + this.message; | 9733 return "Unsupported operation: " + this.message; |
9646 } | 9734 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9829 }, | 9917 }, |
9830 $int: { | 9918 $int: { |
9831 "^": "num;" | 9919 "^": "num;" |
9832 }, | 9920 }, |
9833 "+int": 0, | 9921 "+int": 0, |
9834 Iterable: { | 9922 Iterable: { |
9835 "^": "Object;", | 9923 "^": "Object;", |
9836 map$1: function(_, f) { | 9924 map$1: function(_, f) { |
9837 return H.MappedIterable_MappedIterable(this, f, H.getRuntimeTypeArgument
(this, "Iterable", 0), null); | 9925 return H.MappedIterable_MappedIterable(this, f, H.getRuntimeTypeArgument
(this, "Iterable", 0), null); |
9838 }, | 9926 }, |
| 9927 where$1: ["super$Iterable$where", function(_, f) { |
| 9928 return H.setRuntimeTypeInfo(new H.WhereIterable(this, f), [H.getRuntimeT
ypeArgument(this, "Iterable", 0)]); |
| 9929 }], |
9839 contains$1: function(_, element) { | 9930 contains$1: function(_, element) { |
9840 var t1; | 9931 var t1; |
9841 for (t1 = this.get$iterator(this); t1.moveNext$0();) | 9932 for (t1 = this.get$iterator(this); t1.moveNext$0();) |
9842 if (J.$eq$(t1.get$current(), element)) | 9933 if (J.$eq$(t1.get$current(), element)) |
9843 return true; | 9934 return true; |
9844 return false; | 9935 return false; |
9845 }, | 9936 }, |
9846 forEach$1: function(_, f) { | 9937 forEach$1: function(_, f) { |
9847 var t1; | 9938 var t1; |
9848 for (t1 = this.get$iterator(this); t1.moveNext$0();) | 9939 for (t1 = this.get$iterator(this); t1.moveNext$0();) |
9849 f.call$1(t1.get$current()); | 9940 f.call$1(t1.get$current()); |
9850 }, | 9941 }, |
9851 toList$1$growable: function(_, growable) { | 9942 toList$1$growable: function(_, growable) { |
9852 return P.List_List$from(this, growable, H.getRuntimeTypeArgument(this, "
Iterable", 0)); | 9943 return P.List_List$from(this, true, H.getRuntimeTypeArgument(this, "Iter
able", 0)); |
9853 }, | 9944 }, |
9854 toList$0: function($receiver) { | 9945 toList$0: function($receiver) { |
9855 return this.toList$1$growable($receiver, true); | 9946 return this.toList$1$growable($receiver, true); |
9856 }, | 9947 }, |
9857 get$length: function(_) { | 9948 get$length: function(_) { |
9858 var it, count; | 9949 var it, count; |
9859 it = this.get$iterator(this); | 9950 it = this.get$iterator(this); |
9860 for (count = 0; it.moveNext$0();) | 9951 for (count = 0; it.moveNext$0();) |
9861 ++count; | 9952 ++count; |
9862 return count; | 9953 return count; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9933 return this === other; | 10024 return this === other; |
9934 }, | 10025 }, |
9935 get$hashCode: function(_) { | 10026 get$hashCode: function(_) { |
9936 return H.Primitives_objectHashCode(this); | 10027 return H.Primitives_objectHashCode(this); |
9937 }, | 10028 }, |
9938 toString$0: ["super$Object$toString", function(_) { | 10029 toString$0: ["super$Object$toString", function(_) { |
9939 return H.Primitives_objectToHumanReadableString(this); | 10030 return H.Primitives_objectToHumanReadableString(this); |
9940 }], | 10031 }], |
9941 noSuchMethod$1: function(_, invocation) { | 10032 noSuchMethod$1: function(_, invocation) { |
9942 throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberNa
me(), invocation.get$positionalArguments(), invocation.get$namedArguments(), nul
l)); | 10033 throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberNa
me(), invocation.get$positionalArguments(), invocation.get$namedArguments(), nul
l)); |
| 10034 }, |
| 10035 toString: function() { |
| 10036 return this.toString$0(this); |
9943 } | 10037 } |
9944 }, | 10038 }, |
9945 Match: { | 10039 Match: { |
9946 "^": "Object;" | 10040 "^": "Object;" |
9947 }, | 10041 }, |
9948 StackTrace: { | 10042 StackTrace: { |
9949 "^": "Object;" | 10043 "^": "Object;" |
9950 }, | 10044 }, |
9951 String: { | 10045 String: { |
9952 "^": "Object;" | 10046 "^": "Object;" |
9953 }, | 10047 }, |
9954 "+String": 0, | 10048 "+String": 0, |
9955 StringBuffer: { | 10049 StringBuffer: { |
9956 "^": "Object;_contents@", | 10050 "^": "Object;_contents@", |
9957 get$length: function(_) { | 10051 get$length: function(_) { |
9958 return this._contents.length; | 10052 return this._contents.length; |
9959 }, | 10053 }, |
9960 get$isEmpty: function(_) { | 10054 get$isEmpty: function(_) { |
9961 return this._contents.length === 0; | 10055 return this._contents.length === 0; |
9962 }, | 10056 }, |
9963 get$isNotEmpty: function(_) { | 10057 get$isNotEmpty: function(_) { |
9964 return this._contents.length !== 0; | 10058 return this._contents.length !== 0; |
9965 }, | 10059 }, |
| 10060 write$1: function(obj) { |
| 10061 this._contents += H.S(obj); |
| 10062 }, |
| 10063 writeCharCode$1: function(charCode) { |
| 10064 this._contents += H.Primitives_stringFromCharCode(charCode); |
| 10065 }, |
9966 toString$0: function(_) { | 10066 toString$0: function(_) { |
9967 var t1 = this._contents; | 10067 var t1 = this._contents; |
9968 return t1.charCodeAt(0) == 0 ? t1 : t1; | 10068 return t1.charCodeAt(0) == 0 ? t1 : t1; |
9969 }, | 10069 }, |
9970 static: {StringBuffer__writeAll: function(string, objects, separator) { | 10070 static: {StringBuffer__writeAll: function(string, objects, separator) { |
9971 var iterator = J.get$iterator$ax(objects); | 10071 var iterator = J.get$iterator$ax(objects); |
9972 if (!iterator.moveNext$0()) | 10072 if (!iterator.moveNext$0()) |
9973 return string; | 10073 return string; |
9974 if (separator.length === 0) { | 10074 if (separator.length === 0) { |
9975 do | 10075 do |
9976 string += H.S(iterator.get$current()); | 10076 string += H.S(iterator.get$current()); |
9977 while (iterator.moveNext$0()); | 10077 while (iterator.moveNext$0()); |
9978 } else { | 10078 } else { |
9979 string += H.S(iterator.get$current()); | 10079 string += H.S(iterator.get$current()); |
9980 for (; iterator.moveNext$0();) | 10080 for (; iterator.moveNext$0();) |
9981 string = string + separator + H.S(iterator.get$current()); | 10081 string = string + separator + H.S(iterator.get$current()); |
9982 } | 10082 } |
9983 return string; | 10083 return string; |
9984 }} | 10084 }} |
9985 }, | 10085 }, |
9986 Symbol: { | 10086 Symbol: { |
9987 "^": "Object;" | 10087 "^": "Object;" |
9988 }, | 10088 }, |
9989 Uri: { | 10089 Uri: { |
9990 "^": "Object;_host,_port,_path,scheme,_userInfo,_query,_fragment,_pathSegm
ents,_queryParameters", | 10090 "^": "Object;scheme,_userInfo,_host,_port,_path,_query,_fragment,_pathSegm
ents,_queryParameters", |
9991 get$host: function(_) { | 10091 get$host: function(_) { |
9992 var t1 = this._host; | 10092 var t1 = this._host; |
9993 if (t1 == null) | 10093 if (t1 == null) |
9994 return ""; | 10094 return ""; |
9995 if (J.getInterceptor$s(t1).startsWith$1(t1, "[")) | 10095 if (J.getInterceptor$s(t1).startsWith$1(t1, "[")) |
9996 return C.JSString_methods.substring$2(t1, 1, t1.length - 1); | 10096 return C.JSString_methods.substring$2(t1, 1, t1.length - 1); |
9997 return t1; | 10097 return t1; |
9998 }, | 10098 }, |
9999 get$port: function(_) { | 10099 get$port: function(_) { |
10000 var t1 = this._port; | 10100 var t1 = this._port; |
10001 if (t1 == null) | 10101 if (t1 == null) |
10002 return P.Uri__defaultPort(this.scheme); | 10102 return P.Uri__defaultPort(this.scheme); |
10003 return t1; | 10103 return t1; |
10004 }, | 10104 }, |
10005 get$pathSegments: function() { | 10105 get$pathSegments: function() { |
10006 var t1, pathToSplit; | 10106 var result, pathToSplit; |
10007 t1 = this._pathSegments; | 10107 result = this._pathSegments; |
10008 if (t1 == null) { | 10108 if (result != null) |
10009 pathToSplit = this._path; | 10109 return result; |
10010 if (pathToSplit.length !== 0 && C.JSString_methods.codeUnitAt$1(pathTo
Split, 0) === 47) | 10110 pathToSplit = this._path; |
10011 pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1); | 10111 if (pathToSplit.length !== 0 && C.JSString_methods.codeUnitAt$1(pathToSp
lit, 0) === 47) |
10012 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(pathToSplit === "
" ? C.List_empty : H.setRuntimeTypeInfo(new H.MappedListIterable(pathToSplit.spl
it("/"), P.core_Uri_decodeComponent$closure()), [null, null]).toList$1$growable(
0, false)), [null]); | 10112 pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1); |
10013 this._pathSegments = t1; | 10113 result = pathToSplit === "" ? C.List_empty : J.JSArray_markUnmodifiableL
ist(P.List_List$from(H.setRuntimeTypeInfo(new H.MappedListIterable(pathToSplit.s
plit("/"), P.core_Uri_decodeComponent$closure()), [null, null]), false, P.String
)); |
10014 } | 10114 this._pathSegments = result; |
10015 return t1; | 10115 return result; |
10016 }, | 10116 }, |
10017 _mergePaths$2: function(base, reference) { | 10117 _mergePaths$2: function(base, reference) { |
10018 var backCount, refStart, baseEnd, newEnd, delta, t1; | 10118 var backCount, refStart, baseEnd, newEnd, delta, t1; |
10019 for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(refere
nce, "../", refStart);) { | 10119 for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(refere
nce, "../", refStart);) { |
10020 refStart += 3; | 10120 refStart += 3; |
10021 ++backCount; | 10121 ++backCount; |
10022 } | 10122 } |
10023 baseEnd = C.JSString_methods.lastIndexOf$1(base, "/"); | 10123 baseEnd = C.JSString_methods.lastIndexOf$1(base, "/"); |
10024 while (true) { | 10124 while (true) { |
10025 if (!(baseEnd > 0 && backCount > 0)) | 10125 if (!(baseEnd > 0 && backCount > 0)) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10079 return t1; | 10179 return t1; |
10080 }, | 10180 }, |
10081 toFilePath$0: function() { | 10181 toFilePath$0: function() { |
10082 return this.toFilePath$1$windows(null); | 10182 return this.toFilePath$1$windows(null); |
10083 }, | 10183 }, |
10084 get$_isPathAbsolute: function() { | 10184 get$_isPathAbsolute: function() { |
10085 if (this._path.length === 0) | 10185 if (this._path.length === 0) |
10086 return false; | 10186 return false; |
10087 return C.JSString_methods.startsWith$1(this._path, "/"); | 10187 return C.JSString_methods.startsWith$1(this._path, "/"); |
10088 }, | 10188 }, |
| 10189 get$data: function(_) { |
| 10190 return this.scheme === "data" ? P.UriData_UriData$fromUri(this) : null; |
| 10191 }, |
10089 toString$0: function(_) { | 10192 toString$0: function(_) { |
10090 var t1, t2, t3, t4; | 10193 var t1, t2, t3, t4; |
10091 t1 = this.scheme; | 10194 t1 = this.scheme; |
10092 t2 = "" !== t1 ? t1 + ":" : ""; | 10195 t2 = "" !== t1 ? t1 + ":" : ""; |
10093 t3 = this._host; | 10196 t3 = this._host; |
10094 t4 = t3 == null; | 10197 t4 = t3 == null; |
10095 if (!t4 || C.JSString_methods.startsWith$1(this._path, "//") || t1 === "
file") { | 10198 if (!t4 || C.JSString_methods.startsWith$1(this._path, "//") || t1 === "
file") { |
10096 t1 = t2 + "//"; | 10199 t1 = t2 + "//"; |
10097 t2 = this._userInfo; | 10200 t2 = this._userInfo; |
10098 if (t2.length !== 0) | 10201 if (t2.length !== 0) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10170 var t1, t2, t3, t4, t5; | 10273 var t1, t2, t3, t4, t5; |
10171 t1 = new P.Uri_hashCode_combine(); | 10274 t1 = new P.Uri_hashCode_combine(); |
10172 t2 = this.get$host(this); | 10275 t2 = this.get$host(this); |
10173 t3 = this.get$port(this); | 10276 t3 = this.get$port(this); |
10174 t4 = this._query; | 10277 t4 = this._query; |
10175 if (t4 == null) | 10278 if (t4 == null) |
10176 t4 = ""; | 10279 t4 = ""; |
10177 t5 = this._fragment; | 10280 t5 = this._fragment; |
10178 return t1.call$2(this.scheme, t1.call$2(this._userInfo, t1.call$2(t2, t1
.call$2(t3, t1.call$2(this._path, t1.call$2(t4, t1.call$2(t5 == null ? "" : t5,
1))))))); | 10281 return t1.call$2(this.scheme, t1.call$2(this._userInfo, t1.call$2(t2, t1
.call$2(t3, t1.call$2(this._path, t1.call$2(t4, t1.call$2(t5 == null ? "" : t5,
1))))))); |
10179 }, | 10282 }, |
10180 static: {Uri__defaultPort: function(scheme) { | 10283 static: {Uri_Uri: function(fragment, host, path, pathSegments, port, query
, queryParameters, scheme, userInfo) { |
| 10284 var isFile, t1, t2; |
| 10285 scheme = P.Uri__makeScheme(scheme, 0, scheme.length); |
| 10286 userInfo = P.Uri__makeUserInfo(userInfo, 0, userInfo.length); |
| 10287 host = P.Uri__makeHost(host, 0, host == null ? 0 : J.get$length$asx(ho
st), false); |
| 10288 query = P.Uri__makeQuery(query, 0, 0, queryParameters); |
| 10289 fragment = P.Uri__makeFragment(fragment, 0, 0); |
| 10290 port = P.Uri__makePort(port, scheme); |
| 10291 isFile = scheme === "file"; |
| 10292 if (host == null) |
| 10293 t1 = userInfo.length !== 0 || port != null || isFile; |
| 10294 else |
| 10295 t1 = false; |
| 10296 if (t1) |
| 10297 host = ""; |
| 10298 t1 = host == null; |
| 10299 t2 = path == null ? 0 : path.length; |
| 10300 path = P.Uri__makePath(path, 0, t2, pathSegments, scheme, !t1); |
| 10301 return new P.Uri(scheme, userInfo, host, port, scheme.length === 0 &&
t1 && !C.JSString_methods.startsWith$1(path, "/") ? P.Uri__normalizeRelativePath
(path) : P.Uri__removeDotSegments(path), query, fragment, null, null); |
| 10302 }, Uri__defaultPort: function(scheme) { |
10181 if (scheme === "http") | 10303 if (scheme === "http") |
10182 return 80; | 10304 return 80; |
10183 if (scheme === "https") | 10305 if (scheme === "https") |
10184 return 443; | 10306 return 443; |
10185 return 0; | 10307 return 0; |
10186 }, Uri_parse: function(uri, start, end) { | 10308 }, Uri_parse: function(uri, start, end) { |
10187 var t1, pathStart, state, t2, i, t3, $char, index, path, numberSignInd
ex, t4, query, fragment; | 10309 var t1, pathStart, state, t2, i, t3, $char, index, path, numberSignInd
ex, t4, query, fragment; |
10188 t1 = {}; | 10310 t1 = {}; |
10189 t1._captured_end_0 = end; | 10311 t1.end = end; |
10190 t1._captured_scheme_1 = ""; | 10312 t1.scheme = ""; |
10191 t1._captured_userinfo_2 = ""; | 10313 t1.userinfo = ""; |
10192 t1._captured_host_3 = null; | 10314 t1.host = null; |
10193 t1._captured_port_4 = null; | 10315 t1.port = null; |
10194 t1._captured_end_0 = J.get$length$asx(uri); | 10316 t1.end = J.get$length$asx(uri); |
10195 t1._captured_index_5 = start; | 10317 t1.index = start; |
10196 t1._captured_char_6 = -1; | 10318 t1.$char = -1; |
10197 t2 = J.getInterceptor$s(uri); | 10319 t2 = J.getInterceptor$s(uri); |
10198 i = start; | 10320 i = start; |
10199 while (true) { | 10321 while (true) { |
10200 t3 = t1._captured_end_0; | 10322 t3 = t1.end; |
10201 if (typeof t3 !== "number") | 10323 if (typeof t3 !== "number") |
10202 return H.iae(t3); | 10324 return H.iae(t3); |
10203 if (!(i < t3)) { | 10325 if (!(i < t3)) { |
10204 pathStart = start; | 10326 pathStart = start; |
10205 state = 0; | 10327 state = 0; |
10206 break; | 10328 break; |
10207 } | 10329 } |
10208 $char = t2.codeUnitAt$1(uri, i); | 10330 $char = t2.codeUnitAt$1(uri, i); |
10209 t1._captured_char_6 = $char; | 10331 t1.$char = $char; |
10210 if ($char === 63 || $char === 35) { | 10332 if ($char === 63 || $char === 35) { |
10211 pathStart = start; | 10333 pathStart = start; |
10212 state = 0; | 10334 state = 0; |
10213 break; | 10335 break; |
10214 } | 10336 } |
10215 if ($char === 47) { | 10337 if ($char === 47) { |
10216 state = i === start ? 2 : 1; | 10338 state = i === start ? 2 : 1; |
10217 pathStart = start; | 10339 pathStart = start; |
10218 break; | 10340 break; |
10219 } | 10341 } |
10220 if ($char === 58) { | 10342 if ($char === 58) { |
10221 if (i === start) | 10343 if (i === start) |
10222 P.Uri__fail(uri, start, "Invalid empty scheme"); | 10344 P.Uri__fail(uri, start, "Invalid empty scheme"); |
10223 t1._captured_scheme_1 = P.Uri__makeScheme(uri, start, i); | 10345 t1.scheme = P.Uri__makeScheme(uri, start, i); |
10224 ++i; | 10346 ++i; |
10225 if (i === t1._captured_end_0) { | 10347 if (i === t1.end) { |
10226 t1._captured_char_6 = -1; | 10348 t1.$char = -1; |
10227 state = 0; | 10349 state = 0; |
10228 } else { | 10350 } else { |
10229 $char = t2.codeUnitAt$1(uri, i); | 10351 $char = t2.codeUnitAt$1(uri, i); |
10230 t1._captured_char_6 = $char; | 10352 t1.$char = $char; |
10231 if ($char === 63 || $char === 35) | 10353 if ($char === 63 || $char === 35) |
10232 state = 0; | 10354 state = 0; |
10233 else | 10355 else |
10234 state = $char === 47 ? 2 : 1; | 10356 state = $char === 47 ? 2 : 1; |
10235 } | 10357 } |
10236 pathStart = i; | 10358 pathStart = i; |
10237 break; | 10359 break; |
10238 } | 10360 } |
10239 ++i; | 10361 ++i; |
10240 t1._captured_char_6 = -1; | 10362 t1.$char = -1; |
10241 } | 10363 } |
10242 t1._captured_index_5 = i; | 10364 t1.index = i; |
10243 if (state === 2) { | 10365 if (state === 2) { |
10244 index = i + 1; | 10366 index = i + 1; |
10245 t1._captured_index_5 = index; | 10367 t1.index = index; |
10246 if (index === t1._captured_end_0) { | 10368 if (index === t1.end) { |
10247 t1._captured_char_6 = -1; | 10369 t1.$char = -1; |
10248 state = 0; | 10370 state = 0; |
10249 } else { | 10371 } else { |
10250 $char = t2.codeUnitAt$1(uri, t1._captured_index_5); | 10372 $char = t2.codeUnitAt$1(uri, t1.index); |
10251 t1._captured_char_6 = $char; | 10373 t1.$char = $char; |
10252 if ($char === 47) { | 10374 if ($char === 47) { |
10253 t1._captured_index_5 = J.$add$ns(t1._captured_index_5, 1); | 10375 t1.index = J.$add$ns(t1.index, 1); |
10254 new P.Uri_parse_parseAuth(t1, uri, -1).call$0(); | 10376 new P.Uri_parse_parseAuth(t1, uri, -1).call$0(); |
10255 pathStart = t1._captured_index_5; | 10377 pathStart = t1.index; |
10256 } | 10378 } |
10257 t3 = t1._captured_char_6; | 10379 t3 = t1.$char; |
10258 state = t3 === 63 || t3 === 35 || t3 === -1 ? 0 : 1; | 10380 state = t3 === 63 || t3 === 35 || t3 === -1 ? 0 : 1; |
10259 } | 10381 } |
10260 } | 10382 } |
10261 if (state === 1) | 10383 if (state === 1) |
10262 for (; index = J.$add$ns(t1._captured_index_5, 1), t1._captured_inde
x_5 = index, J.$lt$n(index, t1._captured_end_0);) { | 10384 for (; index = J.$add$ns(t1.index, 1), t1.index = index, J.$lt$n(ind
ex, t1.end);) { |
10263 $char = t2.codeUnitAt$1(uri, t1._captured_index_5); | 10385 $char = t2.codeUnitAt$1(uri, t1.index); |
10264 t1._captured_char_6 = $char; | 10386 t1.$char = $char; |
10265 if ($char === 63 || $char === 35) | 10387 if ($char === 63 || $char === 35) |
10266 break; | 10388 break; |
10267 t1._captured_char_6 = -1; | 10389 t1.$char = -1; |
10268 } | 10390 } |
10269 t3 = t1._captured_host_3; | 10391 t3 = t1.host; |
10270 path = P.Uri__makePath(uri, pathStart, t1._captured_index_5, null, t1.
_captured_scheme_1, t3 != null); | 10392 path = P.Uri__makePath(uri, pathStart, t1.index, null, t1.scheme, t3 !
= null); |
10271 t3 = t1._captured_char_6; | 10393 t3 = t1.$char; |
10272 if (t3 === 63) { | 10394 if (t3 === 63) { |
10273 i = J.$add$ns(t1._captured_index_5, 1); | 10395 i = J.$add$ns(t1.index, 1); |
10274 while (true) { | 10396 while (true) { |
10275 t3 = J.getInterceptor$n(i); | 10397 t3 = J.getInterceptor$n(i); |
10276 if (!t3.$lt(i, t1._captured_end_0)) { | 10398 if (!t3.$lt(i, t1.end)) { |
10277 numberSignIndex = -1; | 10399 numberSignIndex = -1; |
10278 break; | 10400 break; |
10279 } | 10401 } |
10280 if (t2.codeUnitAt$1(uri, i) === 35) { | 10402 if (t2.codeUnitAt$1(uri, i) === 35) { |
10281 numberSignIndex = i; | 10403 numberSignIndex = i; |
10282 break; | 10404 break; |
10283 } | 10405 } |
10284 i = t3.$add(i, 1); | 10406 i = t3.$add(i, 1); |
10285 } | 10407 } |
10286 t2 = J.getInterceptor$n(numberSignIndex); | 10408 t2 = J.getInterceptor$n(numberSignIndex); |
10287 t3 = t2.$lt(numberSignIndex, 0); | 10409 t3 = t2.$lt(numberSignIndex, 0); |
10288 t4 = t1._captured_index_5; | 10410 t4 = t1.index; |
10289 if (t3) { | 10411 if (t3) { |
10290 query = P.Uri__makeQuery(uri, J.$add$ns(t4, 1), t1._captured_end_0
, null); | 10412 query = P.Uri__makeQuery(uri, J.$add$ns(t4, 1), t1.end, null); |
10291 fragment = null; | 10413 fragment = null; |
10292 } else { | 10414 } else { |
10293 query = P.Uri__makeQuery(uri, J.$add$ns(t4, 1), numberSignIndex, n
ull); | 10415 query = P.Uri__makeQuery(uri, J.$add$ns(t4, 1), numberSignIndex, n
ull); |
10294 fragment = P.Uri__makeFragment(uri, t2.$add(numberSignIndex, 1), t
1._captured_end_0); | 10416 fragment = P.Uri__makeFragment(uri, t2.$add(numberSignIndex, 1), t
1.end); |
10295 } | 10417 } |
10296 } else { | 10418 } else { |
10297 fragment = t3 === 35 ? P.Uri__makeFragment(uri, J.$add$ns(t1._captur
ed_index_5, 1), t1._captured_end_0) : null; | 10419 fragment = t3 === 35 ? P.Uri__makeFragment(uri, J.$add$ns(t1.index,
1), t1.end) : null; |
10298 query = null; | 10420 query = null; |
10299 } | 10421 } |
10300 t2 = t1._captured_scheme_1; | 10422 return new P.Uri(t1.scheme, t1.userinfo, t1.host, t1.port, path, query
, fragment, null, null); |
10301 t3 = t1._captured_userinfo_2; | |
10302 return new P.Uri(t1._captured_host_3, t1._captured_port_4, path, t2, t
3, query, fragment, null, null); | |
10303 }, Uri__fail: function(uri, index, message) { | 10423 }, Uri__fail: function(uri, index, message) { |
10304 throw H.wrapException(new P.FormatException(message, uri, index)); | 10424 throw H.wrapException(new P.FormatException(message, uri, index)); |
10305 }, Uri_Uri: function(fragment, host, path, pathSegments, port, query, qu
eryParameters, scheme, userInfo) { | |
10306 var isFile, t1, t2; | |
10307 scheme = P.Uri__makeScheme(scheme, 0, scheme.length); | |
10308 userInfo = P.Uri__makeUserInfo(userInfo, 0, userInfo.length); | |
10309 host = P.Uri__makeHost(host, 0, host == null ? 0 : J.get$length$asx(ho
st), false); | |
10310 query = P.Uri__makeQuery(query, 0, 0, queryParameters); | |
10311 fragment = P.Uri__makeFragment(fragment, 0, 0); | |
10312 port = P.Uri__makePort(port, scheme); | |
10313 isFile = scheme === "file"; | |
10314 if (host == null) | |
10315 t1 = userInfo.length !== 0 || port != null || isFile; | |
10316 else | |
10317 t1 = false; | |
10318 if (t1) | |
10319 host = ""; | |
10320 t1 = host == null; | |
10321 t2 = path == null ? 0 : path.length; | |
10322 path = P.Uri__makePath(path, 0, t2, pathSegments, scheme, !t1); | |
10323 return new P.Uri(host, port, scheme.length === 0 && t1 && !C.JSString_
methods.startsWith$1(path, "/") ? P.Uri__normalizeRelativePath(path) : P.Uri__re
moveDotSegments(path), scheme, userInfo, query, fragment, null, null); | |
10324 }, Uri_Uri$file: function(path, windows) { | 10425 }, Uri_Uri$file: function(path, windows) { |
10325 return windows ? P.Uri__makeWindowsFileUrl(path, false) : P.Uri__makeF
ileUri(path, false); | 10426 return windows ? P.Uri__makeWindowsFileUrl(path, false) : P.Uri__makeF
ileUri(path, false); |
10326 }, Uri_base: function() { | 10427 }, Uri_base: function() { |
10327 var uri = H.Primitives_currentUri(); | 10428 var uri = H.Primitives_currentUri(); |
10328 if (uri != null) | 10429 if (uri != null) |
10329 return P.Uri_parse(uri, 0, null); | 10430 return P.Uri_parse(uri, 0, null); |
10330 throw H.wrapException(new P.UnsupportedError("'Uri.base' is not suppor
ted")); | 10431 throw H.wrapException(new P.UnsupportedError("'Uri.base' is not suppor
ted")); |
10331 }, Uri__checkNonWindowsPathReservedCharacters: function(segments, argume
ntError) { | 10432 }, Uri__checkNonWindowsPathReservedCharacters: function(segments, argume
ntError) { |
10332 segments.forEach$1(segments, new P.Uri__checkNonWindowsPathReservedCha
racters_closure(argumentError)); | 10433 C.JSArray_methods.forEach$1(segments, new P.Uri__checkNonWindowsPathRe
servedCharacters_closure(false)); |
10333 }, Uri__checkWindowsPathReservedCharacters: function(segments, argumentE
rror, firstSegment) { | 10434 }, Uri__checkWindowsPathReservedCharacters: function(segments, argumentE
rror, firstSegment) { |
10334 var t1; | 10435 var t1; |
10335 for (t1 = J.skip$1$ax(segments, firstSegment), t1 = new H.ListIterator
(t1, t1.get$length(t1), 0, null); t1.moveNext$0();) | 10436 for (t1 = H.SubListIterable$(segments, firstSegment, null, H.getTypeAr
gumentByIndex(segments, 0)), t1 = new H.ListIterator(t1, t1.get$length(t1), 0, n
ull); t1.moveNext$0();) |
10336 if (J.contains$1$asx(t1.__internal$_current, new H.JSSyntaxRegExp("[
\"*/:<>?\\\\|]", H.JSSyntaxRegExp_makeNative("[\"*/:<>?\\\\|]", false, true, fal
se), null, null)) === true) | 10437 if (J.contains$1$asx(t1._current, new H.JSSyntaxRegExp("[\"*/:<>?\\\
\|]", H.JSSyntaxRegExp_makeNative("[\"*/:<>?\\\\|]", false, true, false), null,
null)) === true) |
10337 if (argumentError) | 10438 if (argumentError) |
10338 throw H.wrapException(P.ArgumentError$("Illegal character in pat
h")); | 10439 throw H.wrapException(P.ArgumentError$("Illegal character in pat
h")); |
10339 else | 10440 else |
10340 throw H.wrapException(new P.UnsupportedError("Illegal character
in path")); | 10441 throw H.wrapException(new P.UnsupportedError("Illegal character
in path")); |
10341 }, Uri__checkWindowsDriveLetter: function(charCode, argumentError) { | 10442 }, Uri__checkWindowsDriveLetter: function(charCode, argumentError) { |
10342 var t1; | 10443 var t1; |
10343 if (!(65 <= charCode && charCode <= 90)) | 10444 if (!(65 <= charCode && charCode <= 90)) |
10344 t1 = 97 <= charCode && charCode <= 122; | 10445 t1 = 97 <= charCode && charCode <= 122; |
10345 else | 10446 else |
10346 t1 = true; | 10447 t1 = true; |
10347 if (t1) | 10448 if (t1) |
10348 return; | 10449 return; |
10349 if (argumentError) | 10450 if (argumentError) |
10350 throw H.wrapException(P.ArgumentError$("Illegal drive letter " + P.S
tring_String$fromCharCode(charCode))); | 10451 throw H.wrapException(P.ArgumentError$("Illegal drive letter " + P.S
tring_String$fromCharCode(charCode))); |
10351 else | 10452 else |
10352 throw H.wrapException(new P.UnsupportedError("Illegal drive letter "
+ P.String_String$fromCharCode(charCode))); | 10453 throw H.wrapException(new P.UnsupportedError("Illegal drive letter "
+ P.String_String$fromCharCode(charCode))); |
10353 }, Uri__makeFileUri: function(path, slashTerminated) { | 10454 }, Uri__makeFileUri: function(path, slashTerminated) { |
10354 var t1, segments; | 10455 var t1, segments; |
10355 t1 = J.getInterceptor$s(path); | 10456 t1 = J.getInterceptor$s(path); |
10356 segments = t1.split$1(path, "/"); | 10457 segments = t1.split$1(path, "/"); |
10357 if (slashTerminated && segments.length !== 0 && J.get$isNotEmpty$asx(C
.JSArray_methods.get$last(segments))) | |
10358 C.JSArray_methods.add$1(segments, ""); | |
10359 if (t1.startsWith$1(path, "/")) | 10458 if (t1.startsWith$1(path, "/")) |
10360 return P.Uri_Uri(null, null, null, segments, null, null, null, "file
", ""); | 10459 return P.Uri_Uri(null, null, null, segments, null, null, null, "file
", ""); |
10361 else | 10460 else |
10362 return P.Uri_Uri(null, null, null, segments, null, null, null, "", "
"); | 10461 return P.Uri_Uri(null, null, null, segments, null, null, null, "", "
"); |
10363 }, Uri__makeWindowsFileUrl: function(path, slashTerminated) { | 10462 }, Uri__makeWindowsFileUrl: function(path, slashTerminated) { |
10364 var t1, pathSegments, pathStart, hostPart; | 10463 var t1, pathSegments, pathStart, hostPart; |
10365 t1 = J.getInterceptor$s(path); | 10464 t1 = J.getInterceptor$s(path); |
10366 if (t1.startsWith$1(path, "\\\\?\\")) | 10465 if (t1.startsWith$1(path, "\\\\?\\")) |
10367 if (t1.startsWith$2(path, "UNC\\", 4)) | 10466 if (t1.startsWith$2(path, "UNC\\", 4)) |
10368 path = t1.replaceRange$3(path, 0, 7, "\\"); | 10467 path = t1.replaceRange$3(path, 0, 7, "\\"); |
10369 else { | 10468 else { |
10370 path = t1.substring$1(path, 4); | 10469 path = t1.substring$1(path, 4); |
10371 if (path.length < 3 || C.JSString_methods.codeUnitAt$1(path, 1) !=
= 58 || C.JSString_methods.codeUnitAt$1(path, 2) !== 92) | 10470 if (path.length < 3 || C.JSString_methods.codeUnitAt$1(path, 1) !=
= 58 || C.JSString_methods.codeUnitAt$1(path, 2) !== 92) |
10372 throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?
\\ prefix must be absolute")); | 10471 throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?
\\ prefix must be absolute")); |
10373 } | 10472 } |
10374 else | 10473 else |
10375 path = t1.replaceAll$2(path, "/", "\\"); | 10474 path = t1.replaceAll$2(path, "/", "\\"); |
10376 t1 = path.length; | 10475 t1 = path.length; |
10377 if (t1 > 1 && C.JSString_methods.codeUnitAt$1(path, 1) === 58) { | 10476 if (t1 > 1 && C.JSString_methods.codeUnitAt$1(path, 1) === 58) { |
10378 P.Uri__checkWindowsDriveLetter(C.JSString_methods.codeUnitAt$1(path,
0), true); | 10477 P.Uri__checkWindowsDriveLetter(C.JSString_methods.codeUnitAt$1(path,
0), true); |
10379 if (t1 === 2 || C.JSString_methods.codeUnitAt$1(path, 2) !== 92) | 10478 if (t1 === 2 || C.JSString_methods.codeUnitAt$1(path, 2) !== 92) |
10380 throw H.wrapException(P.ArgumentError$("Windows paths with drive l
etter must be absolute")); | 10479 throw H.wrapException(P.ArgumentError$("Windows paths with drive l
etter must be absolute")); |
10381 pathSegments = path.split("\\"); | 10480 pathSegments = path.split("\\"); |
10382 if (slashTerminated && J.get$isNotEmpty$asx(C.JSArray_methods.get$la
st(pathSegments))) | |
10383 pathSegments.push(""); | |
10384 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1); | 10481 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1); |
10385 return P.Uri_Uri(null, null, null, pathSegments, null, null, null, "
file", ""); | 10482 return P.Uri_Uri(null, null, null, pathSegments, null, null, null, "
file", ""); |
10386 } | 10483 } |
10387 if (C.JSString_methods.startsWith$1(path, "\\")) | 10484 if (C.JSString_methods.startsWith$1(path, "\\")) |
10388 if (C.JSString_methods.startsWith$2(path, "\\", 1)) { | 10485 if (C.JSString_methods.startsWith$2(path, "\\", 1)) { |
10389 pathStart = C.JSString_methods.indexOf$2(path, "\\", 2); | 10486 pathStart = C.JSString_methods.indexOf$2(path, "\\", 2); |
10390 t1 = pathStart < 0; | 10487 t1 = pathStart < 0; |
10391 hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSStri
ng_methods.substring$2(path, 2, pathStart); | 10488 hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSStri
ng_methods.substring$2(path, 2, pathStart); |
10392 pathSegments = (t1 ? "" : C.JSString_methods.substring$1(path, pat
hStart + 1)).split("\\"); | 10489 pathSegments = (t1 ? "" : C.JSString_methods.substring$1(path, pat
hStart + 1)).split("\\"); |
10393 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); | 10490 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); |
10394 if (slashTerminated && J.get$isNotEmpty$asx(C.JSArray_methods.get$
last(pathSegments))) | |
10395 pathSegments.push(""); | |
10396 return P.Uri_Uri(null, hostPart, null, pathSegments, null, null, n
ull, "file", ""); | 10491 return P.Uri_Uri(null, hostPart, null, pathSegments, null, null, n
ull, "file", ""); |
10397 } else { | 10492 } else { |
10398 pathSegments = path.split("\\"); | 10493 pathSegments = path.split("\\"); |
10399 if (slashTerminated && J.get$isNotEmpty$asx(C.JSArray_methods.get$
last(pathSegments))) | |
10400 pathSegments.push(""); | |
10401 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); | 10494 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); |
10402 return P.Uri_Uri(null, null, null, pathSegments, null, null, null,
"file", ""); | 10495 return P.Uri_Uri(null, null, null, pathSegments, null, null, null,
"file", ""); |
10403 } | 10496 } |
10404 else { | 10497 else { |
10405 pathSegments = path.split("\\"); | 10498 pathSegments = path.split("\\"); |
10406 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); | 10499 P.Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); |
10407 if (slashTerminated && pathSegments.length !== 0 && J.get$isNotEmpty
$asx(C.JSArray_methods.get$last(pathSegments))) | |
10408 pathSegments.push(""); | |
10409 return P.Uri_Uri(null, null, null, pathSegments, null, null, null, "
", ""); | 10500 return P.Uri_Uri(null, null, null, pathSegments, null, null, null, "
", ""); |
10410 } | 10501 } |
10411 }, Uri__makePort: function(port, scheme) { | 10502 }, Uri__makePort: function(port, scheme) { |
10412 if (port != null && port === P.Uri__defaultPort(scheme)) | 10503 if (port != null && port === P.Uri__defaultPort(scheme)) |
10413 return; | 10504 return; |
10414 return port; | 10505 return port; |
10415 }, Uri__makeHost: function(host, start, end, strictIPv6) { | 10506 }, Uri__makeHost: function(host, start, end, strictIPv6) { |
10416 var t1, t2, t3, i; | 10507 var t1, t2, t3, i; |
10417 if (host == null) | 10508 if (host == null) |
10418 return; | 10509 return; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10518 } | 10609 } |
10519 if (buffer == null) | 10610 if (buffer == null) |
10520 return t1.substring$2(host, start, end); | 10611 return t1.substring$2(host, start, end); |
10521 if (J.$lt$n(sectionStart, end)) { | 10612 if (J.$lt$n(sectionStart, end)) { |
10522 slice = t1.substring$2(host, sectionStart, end); | 10613 slice = t1.substring$2(host, sectionStart, end); |
10523 buffer._contents += !isNormalized ? slice.toLowerCase() : slice; | 10614 buffer._contents += !isNormalized ? slice.toLowerCase() : slice; |
10524 } | 10615 } |
10525 t1 = buffer._contents; | 10616 t1 = buffer._contents; |
10526 return t1.charCodeAt(0) == 0 ? t1 : t1; | 10617 return t1.charCodeAt(0) == 0 ? t1 : t1; |
10527 }, Uri__makeScheme: function(scheme, start, end) { | 10618 }, Uri__makeScheme: function(scheme, start, end) { |
10528 var t1, firstCodeUnit, t2, i, containsUpperCase, codeUnit; | 10619 var t1, lowerCase, i, containsUpperCase, codeUnit, t2; |
10529 if (start === end) | 10620 if (start === end) |
10530 return ""; | 10621 return ""; |
10531 t1 = J.getInterceptor$s(scheme); | 10622 t1 = J.getInterceptor$s(scheme); |
10532 firstCodeUnit = t1.codeUnitAt$1(scheme, start); | 10623 lowerCase = t1.codeUnitAt$1(scheme, start) | 32; |
10533 if (!(firstCodeUnit >= 97 && firstCodeUnit <= 122)) | 10624 if (!(97 <= lowerCase && lowerCase <= 122)) |
10534 t2 = firstCodeUnit >= 65 && firstCodeUnit <= 90; | |
10535 else | |
10536 t2 = true; | |
10537 if (!t2) | |
10538 P.Uri__fail(scheme, start, "Scheme not starting with alphabetic char
acter"); | 10625 P.Uri__fail(scheme, start, "Scheme not starting with alphabetic char
acter"); |
10539 if (typeof end !== "number") | 10626 if (typeof end !== "number") |
10540 return H.iae(end); | 10627 return H.iae(end); |
10541 i = start; | 10628 i = start; |
10542 containsUpperCase = false; | 10629 containsUpperCase = false; |
10543 for (; i < end; ++i) { | 10630 for (; i < end; ++i) { |
10544 codeUnit = t1.codeUnitAt$1(scheme, i); | 10631 codeUnit = t1.codeUnitAt$1(scheme, i); |
10545 if (codeUnit < 128) { | 10632 if (codeUnit < 128) { |
10546 t2 = codeUnit >>> 4; | 10633 t2 = codeUnit >>> 4; |
10547 if (t2 >= 8) | 10634 if (t2 >= 8) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10591 t1 = {}; | 10678 t1 = {}; |
10592 t2 = query == null; | 10679 t2 = query == null; |
10593 if (t2 && true) | 10680 if (t2 && true) |
10594 return; | 10681 return; |
10595 t2 = !t2; | 10682 t2 = !t2; |
10596 if (t2) | 10683 if (t2) |
10597 ; | 10684 ; |
10598 if (t2) | 10685 if (t2) |
10599 return P.Uri__normalize(query, start, end, C.List_CVk); | 10686 return P.Uri__normalize(query, start, end, C.List_CVk); |
10600 result = new P.StringBuffer(""); | 10687 result = new P.StringBuffer(""); |
10601 t1._captured_first_0 = true; | 10688 t1.first = true; |
10602 C.JSNull_methods.forEach$1(queryParameters, new P.Uri__makeQuery_closu
re(t1, result)); | 10689 C.JSNull_methods.forEach$1(queryParameters, new P.Uri__makeQuery_closu
re(t1, result)); |
10603 t1 = result._contents; | 10690 t1 = result._contents; |
10604 return t1.charCodeAt(0) == 0 ? t1 : t1; | 10691 return t1.charCodeAt(0) == 0 ? t1 : t1; |
10605 }, Uri__makeFragment: function(fragment, start, end) { | 10692 }, Uri__makeFragment: function(fragment, start, end) { |
10606 if (fragment == null) | 10693 if (fragment == null) |
10607 return; | 10694 return; |
10608 return P.Uri__normalize(fragment, start, end, C.List_CVk); | 10695 return P.Uri__normalize(fragment, start, end, C.List_CVk); |
10609 }, Uri__isHexDigit: function($char) { | |
10610 if (57 >= $char) | |
10611 return 48 <= $char; | |
10612 $char |= 32; | |
10613 return 97 <= $char && 102 >= $char; | |
10614 }, Uri__hexValue: function($char) { | |
10615 if (57 >= $char) | |
10616 return $char - 48; | |
10617 return ($char | 32) - 87; | |
10618 }, Uri__normalizeEscape: function(source, index, lowerCase) { | 10696 }, Uri__normalizeEscape: function(source, index, lowerCase) { |
10619 var t1, t2, firstDigit, secondDigit, value, t3; | 10697 var t1, t2, firstDigit, secondDigit, firstDigitValue, secondDigitValue
, value, t3; |
10620 t1 = J.getInterceptor$ns(index); | 10698 t1 = J.getInterceptor$ns(index); |
10621 t2 = J.getInterceptor$asx(source); | 10699 t2 = J.getInterceptor$asx(source); |
10622 if (J.$ge$n(t1.$add(index, 2), t2.get$length(source))) | 10700 if (J.$ge$n(t1.$add(index, 2), t2.get$length(source))) |
10623 return "%"; | 10701 return "%"; |
10624 firstDigit = t2.codeUnitAt$1(source, t1.$add(index, 1)); | 10702 firstDigit = t2.codeUnitAt$1(source, t1.$add(index, 1)); |
10625 secondDigit = t2.codeUnitAt$1(source, t1.$add(index, 2)); | 10703 secondDigit = t2.codeUnitAt$1(source, t1.$add(index, 2)); |
10626 if (!P.Uri__isHexDigit(firstDigit) || !P.Uri__isHexDigit(secondDigit)) | 10704 firstDigitValue = P.Uri__parseHexDigit(firstDigit); |
| 10705 secondDigitValue = P.Uri__parseHexDigit(secondDigit); |
| 10706 if (firstDigitValue < 0 || secondDigitValue < 0) |
10627 return "%"; | 10707 return "%"; |
10628 value = P.Uri__hexValue(firstDigit) * 16 + P.Uri__hexValue(secondDigit
); | 10708 value = firstDigitValue * 16 + secondDigitValue; |
10629 if (value < 127) { | 10709 if (value < 127) { |
10630 t3 = C.JSInt_methods._shrOtherPositive$1(value, 4); | 10710 t3 = C.JSInt_methods._shrOtherPositive$1(value, 4); |
10631 if (t3 >= 8) | 10711 if (t3 >= 8) |
10632 return H.ioore(C.List_nxB, t3); | 10712 return H.ioore(C.List_nxB, t3); |
10633 t3 = (C.List_nxB[t3] & C.JSInt_methods._shlPositive$1(1, value & 15)
) !== 0; | 10713 t3 = (C.List_nxB[t3] & C.JSInt_methods._shlPositive$1(1, value & 15)
) !== 0; |
10634 } else | 10714 } else |
10635 t3 = false; | 10715 t3 = false; |
10636 if (t3) | 10716 if (t3) |
10637 return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 9
0 >= value ? (value | 32) >>> 0 : value); | 10717 return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 9
0 >= value ? (value | 32) >>> 0 : value); |
10638 if (firstDigit >= 97 || secondDigit >= 97) | 10718 if (firstDigit >= 97 || secondDigit >= 97) |
10639 return t2.substring$2(source, index, t1.$add(index, 3)).toUpperCase(
); | 10719 return t2.substring$2(source, index, t1.$add(index, 3)).toUpperCase(
); |
10640 return; | 10720 return; |
| 10721 }, Uri__parseHexDigit: function($char) { |
| 10722 var digit, lowerCase; |
| 10723 digit = $char ^ 48; |
| 10724 if (digit <= 9) |
| 10725 return digit; |
| 10726 lowerCase = $char | 32; |
| 10727 if (97 <= lowerCase && lowerCase <= 102) |
| 10728 return lowerCase - 87; |
| 10729 return -1; |
10641 }, Uri__escapeChar: function($char) { | 10730 }, Uri__escapeChar: function($char) { |
10642 var codeUnits, flag, encodedBytes, t1, index, $byte, t2, t3; | 10731 var codeUnits, flag, encodedBytes, t1, index, $byte, t2, t3; |
10643 if ($char < 128) { | 10732 if ($char < 128) { |
10644 codeUnits = Array(3); | 10733 codeUnits = new Array(3); |
10645 codeUnits.fixed$length = Array; | 10734 codeUnits.fixed$length = Array; |
10646 codeUnits[0] = 37; | 10735 codeUnits[0] = 37; |
10647 codeUnits[1] = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $
char >>> 4); | 10736 codeUnits[1] = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $
char >>> 4); |
10648 codeUnits[2] = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $
char & 15); | 10737 codeUnits[2] = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $
char & 15); |
10649 } else { | 10738 } else { |
10650 if ($char > 2047) | 10739 if ($char > 2047) |
10651 if ($char > 65535) { | 10740 if ($char > 65535) { |
10652 flag = 240; | 10741 flag = 240; |
10653 encodedBytes = 4; | 10742 encodedBytes = 4; |
10654 } else { | 10743 } else { |
10655 flag = 224; | 10744 flag = 224; |
10656 encodedBytes = 3; | 10745 encodedBytes = 3; |
10657 } | 10746 } |
10658 else { | 10747 else { |
10659 flag = 192; | 10748 flag = 192; |
10660 encodedBytes = 2; | 10749 encodedBytes = 2; |
10661 } | 10750 } |
10662 t1 = 3 * encodedBytes; | 10751 t1 = 3 * encodedBytes; |
10663 codeUnits = Array(t1); | 10752 codeUnits = new Array(t1); |
10664 codeUnits.fixed$length = Array; | 10753 codeUnits.fixed$length = Array; |
10665 for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) { | 10754 for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) { |
10666 $byte = C.JSInt_methods._shrReceiverPositive$1($char, 6 * encodedB
ytes) & 63 | flag; | 10755 $byte = C.JSInt_methods._shrReceiverPositive$1($char, 6 * encodedB
ytes) & 63 | flag; |
10667 if (index >= t1) | 10756 if (index >= t1) |
10668 return H.ioore(codeUnits, index); | 10757 return H.ioore(codeUnits, index); |
10669 codeUnits[index] = 37; | 10758 codeUnits[index] = 37; |
10670 t2 = index + 1; | 10759 t2 = index + 1; |
10671 t3 = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $byte >>>
4); | 10760 t3 = C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $byte >>>
4); |
10672 if (t2 >= t1) | 10761 if (t2 >= t1) |
10673 return H.ioore(codeUnits, t2); | 10762 return H.ioore(codeUnits, t2); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10757 var output, t1, t2, appendSlash, _i, segment, t3; | 10846 var output, t1, t2, appendSlash, _i, segment, t3; |
10758 if (!P.Uri__mayContainDotSegments(path)) | 10847 if (!P.Uri__mayContainDotSegments(path)) |
10759 return path; | 10848 return path; |
10760 output = []; | 10849 output = []; |
10761 for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0
; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1
), ++_i) { | 10850 for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0
; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1
), ++_i) { |
10762 segment = t1[_i]; | 10851 segment = t1[_i]; |
10763 if (J.$eq$(segment, "..")) { | 10852 if (J.$eq$(segment, "..")) { |
10764 t3 = output.length; | 10853 t3 = output.length; |
10765 if (t3 !== 0) { | 10854 if (t3 !== 0) { |
10766 if (0 >= t3) | 10855 if (0 >= t3) |
10767 return H.ioore(output, 0); | 10856 return H.ioore(output, -1); |
10768 output.pop(); | 10857 output.pop(); |
10769 if (output.length === 0) | 10858 if (output.length === 0) |
10770 output.push(""); | 10859 output.push(""); |
10771 } | 10860 } |
10772 appendSlash = true; | 10861 appendSlash = true; |
10773 } else if ("." === segment) | 10862 } else if ("." === segment) |
10774 appendSlash = true; | 10863 appendSlash = true; |
10775 else { | 10864 else { |
10776 output.push(segment); | 10865 output.push(segment); |
10777 appendSlash = false; | 10866 appendSlash = false; |
10778 } | 10867 } |
10779 } | 10868 } |
10780 if (appendSlash) | 10869 if (appendSlash) |
10781 output.push(""); | 10870 output.push(""); |
10782 return C.JSArray_methods.join$1(output, "/"); | 10871 return C.JSArray_methods.join$1(output, "/"); |
10783 }, Uri__normalizeRelativePath: function(path) { | 10872 }, Uri__normalizeRelativePath: function(path) { |
10784 var output, t1, t2, appendSlash, _i, segment; | 10873 var output, t1, t2, appendSlash, _i, segment; |
10785 if (!P.Uri__mayContainDotSegments(path)) | 10874 if (!P.Uri__mayContainDotSegments(path)) |
10786 return path; | 10875 return path; |
10787 output = []; | 10876 output = []; |
10788 for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0
; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1
), ++_i) { | 10877 for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0
; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1
), ++_i) { |
10789 segment = t1[_i]; | 10878 segment = t1[_i]; |
10790 if (".." === segment) | 10879 if (".." === segment) |
10791 if (output.length !== 0 && !J.$eq$(C.JSArray_methods.get$last(outp
ut), "..")) { | 10880 if (output.length !== 0 && !J.$eq$(C.JSArray_methods.get$last(outp
ut), "..")) { |
10792 if (0 >= output.length) | 10881 if (0 >= output.length) |
10793 return H.ioore(output, 0); | 10882 return H.ioore(output, -1); |
10794 output.pop(); | 10883 output.pop(); |
10795 appendSlash = true; | 10884 appendSlash = true; |
10796 } else { | 10885 } else { |
10797 output.push(".."); | 10886 output.push(".."); |
10798 appendSlash = false; | 10887 appendSlash = false; |
10799 } | 10888 } |
10800 else if ("." === segment) | 10889 else if ("." === segment) |
10801 appendSlash = true; | 10890 appendSlash = true; |
10802 else { | 10891 else { |
10803 output.push(segment); | 10892 output.push(segment); |
10804 appendSlash = false; | 10893 appendSlash = false; |
10805 } | 10894 } |
10806 } | 10895 } |
10807 t1 = output.length; | 10896 t1 = output.length; |
10808 if (t1 !== 0) | 10897 if (t1 !== 0) |
10809 if (t1 === 1) { | 10898 if (t1 === 1) { |
10810 if (0 >= t1) | 10899 if (0 >= t1) |
10811 return H.ioore(output, 0); | 10900 return H.ioore(output, 0); |
10812 t1 = J.get$isEmpty$asx(output[0]) === true; | 10901 t1 = J.get$isEmpty$asx(output[0]) === true; |
10813 } else | 10902 } else |
10814 t1 = false; | 10903 t1 = false; |
10815 else | 10904 else |
10816 t1 = true; | 10905 t1 = true; |
10817 if (t1) | 10906 if (t1) |
10818 return "./"; | 10907 return "./"; |
10819 if (appendSlash || J.$eq$(C.JSArray_methods.get$last(output), "..")) | 10908 if (appendSlash || J.$eq$(C.JSArray_methods.get$last(output), "..")) |
10820 output.push(""); | 10909 output.push(""); |
10821 return C.JSArray_methods.join$1(output, "/"); | 10910 return C.JSArray_methods.join$1(output, "/"); |
10822 }, Uri_decodeComponent: [function(encodedComponent) { | 10911 }, Uri_decodeComponent: [function(encodedComponent) { |
10823 return P.Uri__uriDecode(encodedComponent, C.Utf8Codec_false, false); | 10912 return P.Uri__uriDecode(encodedComponent, 0, J.get$length$asx(encodedC
omponent), C.Utf8Codec_false, false); |
10824 }, "call$1", "core_Uri_decodeComponent$closure", 2, 0, 67, 38], Uri_spli
tQueryString: function(query, encoding) { | 10913 }, "call$1", "core_Uri_decodeComponent$closure", 2, 0, 66, 38], Uri_spli
tQueryString: function(query, encoding) { |
10825 return C.JSArray_methods.fold$2(query.split("&"), P.LinkedHashMap__mak
eEmpty(), new P.Uri_splitQueryString_closure(encoding)); | 10914 return C.JSArray_methods.fold$2(query.split("&"), P.LinkedHashMap__mak
eEmpty(), new P.Uri_splitQueryString_closure(encoding)); |
10826 }, Uri_parseIPv4Address: function(host) { | 10915 }, Uri_parseIPv4Address: function(host) { |
10827 var t1, bytes; | 10916 var t1, bytes; |
10828 t1 = new P.Uri_parseIPv4Address_error(); | 10917 t1 = new P.Uri_parseIPv4Address_error(); |
10829 bytes = host.split("."); | 10918 bytes = host.split("."); |
10830 if (bytes.length !== 4) | 10919 if (bytes.length !== 4) |
10831 t1.call$1("IPv4 address should contain exactly 4 parts"); | 10920 t1.call$1("IPv4 address should contain exactly 4 parts"); |
10832 return H.setRuntimeTypeInfo(new H.MappedListIterable(bytes, new P.Uri_
parseIPv4Address_closure(t1)), [null, null]).toList$0(0); | 10921 return H.setRuntimeTypeInfo(new H.MappedListIterable(bytes, new P.Uri_
parseIPv4Address_closure(t1)), [null, null]).toList$0(0); |
10833 }, Uri_parseIPv6Address: function(host, start, end) { | 10922 }, Uri_parseIPv6Address: function(host, start, end) { |
10834 var error, parseHex, parts, partStart, last, i, wildcardSeen, t1, atEn
d, isLastWildcard, exception, t2, bytes, index, value, wildCardLength, j; | 10923 var error, parseHex, parts, partStart, last, i, wildcardSeen, t1, atEn
d, isLastWildcard, exception, t2, bytes, index, value, wildCardLength, j; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10884 } catch (exception) { | 10973 } catch (exception) { |
10885 H.unwrapException(exception); | 10974 H.unwrapException(exception); |
10886 error.call$2("invalid end of IPv6 address.", partStart); | 10975 error.call$2("invalid end of IPv6 address.", partStart); |
10887 } | 10976 } |
10888 } | 10977 } |
10889 if (wildcardSeen) { | 10978 if (wildcardSeen) { |
10890 if (J.get$length$asx(parts) > 7) | 10979 if (J.get$length$asx(parts) > 7) |
10891 error.call$1("an address with a wildcard must have less than 7 par
ts"); | 10980 error.call$1("an address with a wildcard must have less than 7 par
ts"); |
10892 } else if (J.get$length$asx(parts) !== 8) | 10981 } else if (J.get$length$asx(parts) !== 8) |
10893 error.call$1("an address without a wildcard must contain exactly 8 p
arts"); | 10982 error.call$1("an address without a wildcard must contain exactly 8 p
arts"); |
10894 bytes = Array(16); | 10983 bytes = H.setRuntimeTypeInfo(new Array(16), [P.$int]); |
10895 bytes.$builtinTypeInfo = [P.$int]; | |
10896 i = 0; | 10984 i = 0; |
10897 index = 0; | 10985 index = 0; |
10898 while (true) { | 10986 while (true) { |
10899 t1 = J.get$length$asx(parts); | 10987 t1 = J.get$length$asx(parts); |
10900 if (typeof t1 !== "number") | 10988 if (typeof t1 !== "number") |
10901 return H.iae(t1); | 10989 return H.iae(t1); |
10902 if (!(i < t1)) | 10990 if (!(i < t1)) |
10903 break; | 10991 break; |
10904 value = J.$index$asx(parts, i); | 10992 value = J.$index$asx(parts, i); |
10905 t1 = J.getInterceptor(value); | 10993 t1 = J.getInterceptor(value); |
(...skipping 18 matching lines...) Expand all Loading... |
10924 t1 = t1.$and(value, 255); | 11012 t1 = t1.$and(value, 255); |
10925 if (t2 >= 16) | 11013 if (t2 >= 16) |
10926 return H.ioore(bytes, t2); | 11014 return H.ioore(bytes, t2); |
10927 bytes[t2] = t1; | 11015 bytes[t2] = t1; |
10928 index += 2; | 11016 index += 2; |
10929 } | 11017 } |
10930 ++i; | 11018 ++i; |
10931 } | 11019 } |
10932 return bytes; | 11020 return bytes; |
10933 }, Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus)
{ | 11021 }, Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus)
{ |
10934 var t1, result, bytes, t2, i, $byte, t3; | 11022 var result, bytes, t1, i, t2, $byte, t3; |
10935 t1 = new P.Uri__uriEncode_byteToHex(); | 11023 if (encoding === C.Utf8Codec_false && $.$get$Uri__needsNoEncoding()._n
ativeRegExp.test(H.checkString(text))) |
| 11024 return text; |
10936 result = new P.StringBuffer(""); | 11025 result = new P.StringBuffer(""); |
10937 bytes = encoding.get$encoder().convert$1(text); | 11026 bytes = encoding.get$encoder().convert$1(text); |
10938 for (t2 = bytes.length, i = 0; i < t2; ++i) { | 11027 for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) { |
10939 $byte = bytes[i]; | 11028 $byte = bytes[i]; |
10940 if ($byte < 128) { | 11029 if ($byte < 128) { |
10941 t3 = $byte >>> 4; | 11030 t3 = $byte >>> 4; |
10942 if (t3 >= 8) | 11031 if (t3 >= 8) |
10943 return H.ioore(canonicalTable, t3); | 11032 return H.ioore(canonicalTable, t3); |
10944 t3 = (canonicalTable[t3] & C.JSInt_methods._shlPositive$1(1, $byte
& 15)) !== 0; | 11033 t3 = (canonicalTable[t3] & C.JSInt_methods._shlPositive$1(1, $byte
& 15)) !== 0; |
10945 } else | 11034 } else |
10946 t3 = false; | 11035 t3 = false; |
10947 if (t3) | 11036 if (t3) |
10948 result._contents += H.Primitives_stringFromCharCode($byte); | 11037 t2 = result._contents += H.Primitives_stringFromCharCode($byte); |
10949 else if (spaceToPlus && $byte === 32) | 11038 else if (spaceToPlus && $byte === 32) { |
10950 result._contents += H.Primitives_stringFromCharCode(43); | 11039 t2 += "+"; |
10951 else { | 11040 result._contents = t2; |
10952 result._contents += H.Primitives_stringFromCharCode(37); | 11041 } else { |
10953 t1.call$2($byte, result); | 11042 t2 += "%"; |
| 11043 result._contents = t2; |
| 11044 t2 += "0123456789ABCDEF"[$byte >>> 4 & 15]; |
| 11045 result._contents = t2; |
| 11046 t2 += "0123456789ABCDEF"[$byte & 15]; |
| 11047 result._contents = t2; |
10954 } | 11048 } |
10955 } | 11049 } |
10956 t1 = result._contents; | 11050 return t2.charCodeAt(0) == 0 ? t2 : t2; |
10957 return t1.charCodeAt(0) == 0 ? t1 : t1; | |
10958 }, Uri__hexCharPairToByte: function(s, pos) { | 11051 }, Uri__hexCharPairToByte: function(s, pos) { |
10959 var t1, $byte, i, charCode; | 11052 var t1, $byte, i, charCode; |
10960 for (t1 = J.getInterceptor$s(s), $byte = 0, i = 0; i < 2; ++i) { | 11053 for (t1 = J.getInterceptor$s(s), $byte = 0, i = 0; i < 2; ++i) { |
10961 charCode = t1.codeUnitAt$1(s, pos + i); | 11054 charCode = t1.codeUnitAt$1(s, pos + i); |
10962 if (48 <= charCode && charCode <= 57) | 11055 if (48 <= charCode && charCode <= 57) |
10963 $byte = $byte * 16 + charCode - 48; | 11056 $byte = $byte * 16 + charCode - 48; |
10964 else { | 11057 else { |
10965 charCode |= 32; | 11058 charCode |= 32; |
10966 if (97 <= charCode && charCode <= 102) | 11059 if (97 <= charCode && charCode <= 102) |
10967 $byte = $byte * 16 + charCode - 87; | 11060 $byte = $byte * 16 + charCode - 87; |
10968 else | 11061 else |
10969 throw H.wrapException(P.ArgumentError$("Invalid URL encoding")); | 11062 throw H.wrapException(P.ArgumentError$("Invalid URL encoding")); |
10970 } | 11063 } |
10971 } | 11064 } |
10972 return $byte; | 11065 return $byte; |
10973 }, Uri__uriDecode: function(text, encoding, plusToSpace) { | 11066 }, Uri__uriDecode: function(text, start, end, encoding, plusToSpace) { |
10974 var t1, simple, i, t2, codeUnit, bytes; | 11067 var t1, i, simple, codeUnit, t2, bytes; |
| 11068 if (typeof end !== "number") |
| 11069 return H.iae(end); |
10975 t1 = J.getInterceptor$asx(text); | 11070 t1 = J.getInterceptor$asx(text); |
10976 simple = true; | 11071 i = start; |
10977 i = 0; | |
10978 while (true) { | 11072 while (true) { |
10979 t2 = t1.get$length(text); | 11073 if (!(i < end)) { |
10980 if (typeof t2 !== "number") | 11074 simple = true; |
10981 return H.iae(t2); | |
10982 if (!(i < t2 && simple)) | |
10983 break; | 11075 break; |
| 11076 } |
10984 codeUnit = t1.codeUnitAt$1(text, i); | 11077 codeUnit = t1.codeUnitAt$1(text, i); |
10985 simple = codeUnit !== 37 && codeUnit !== 43; | 11078 if (codeUnit <= 127) |
| 11079 if (codeUnit !== 37) |
| 11080 t2 = plusToSpace && codeUnit === 43; |
| 11081 else |
| 11082 t2 = true; |
| 11083 else |
| 11084 t2 = true; |
| 11085 if (t2) { |
| 11086 simple = false; |
| 11087 break; |
| 11088 } |
10986 ++i; | 11089 ++i; |
10987 } | 11090 } |
10988 if (simple) | 11091 if (simple) { |
10989 if (encoding === C.Utf8Codec_false || false) | 11092 if (C.Utf8Codec_false !== encoding) |
10990 return text; | 11093 t2 = false; |
10991 else | 11094 else |
10992 bytes = t1.get$codeUnits(text); | 11095 t2 = true; |
10993 else { | 11096 if (t2) |
| 11097 return t1.substring$2(text, start, end); |
| 11098 else |
| 11099 bytes = new H.CodeUnits(t1.substring$2(text, start, end)); |
| 11100 } else { |
10994 bytes = []; | 11101 bytes = []; |
10995 i = 0; | 11102 for (i = start; i < end; ++i) { |
10996 while (true) { | |
10997 t2 = t1.get$length(text); | |
10998 if (typeof t2 !== "number") | |
10999 return H.iae(t2); | |
11000 if (!(i < t2)) | |
11001 break; | |
11002 codeUnit = t1.codeUnitAt$1(text, i); | 11103 codeUnit = t1.codeUnitAt$1(text, i); |
11003 if (codeUnit > 127) | 11104 if (codeUnit > 127) |
11004 throw H.wrapException(P.ArgumentError$("Illegal percent encoding
in URI")); | 11105 throw H.wrapException(P.ArgumentError$("Illegal percent encoding
in URI")); |
11005 if (codeUnit === 37) { | 11106 if (codeUnit === 37) { |
11006 t2 = t1.get$length(text); | 11107 t2 = t1.get$length(text); |
11007 if (typeof t2 !== "number") | 11108 if (typeof t2 !== "number") |
11008 return H.iae(t2); | 11109 return H.iae(t2); |
11009 if (i + 3 > t2) | 11110 if (i + 3 > t2) |
11010 throw H.wrapException(P.ArgumentError$("Truncated URI")); | 11111 throw H.wrapException(P.ArgumentError$("Truncated URI")); |
11011 bytes.push(P.Uri__hexCharPairToByte(text, i + 1)); | 11112 bytes.push(P.Uri__hexCharPairToByte(text, i + 1)); |
11012 i += 2; | 11113 i += 2; |
11013 } else if (plusToSpace && codeUnit === 43) | 11114 } else if (plusToSpace && codeUnit === 43) |
11014 bytes.push(32); | 11115 bytes.push(32); |
11015 else | 11116 else |
11016 bytes.push(codeUnit); | 11117 bytes.push(codeUnit); |
11017 ++i; | |
11018 } | 11118 } |
11019 } | 11119 } |
11020 return new P.Utf8Decoder(encoding._allowMalformed).convert$1(bytes); | 11120 return new P.Utf8Decoder(false).convert$1(bytes); |
11021 }} | 11121 }} |
11022 }, | 11122 }, |
11023 Uri_parse_parseAuth: { | 11123 Uri_parse_parseAuth: { |
11024 "^": "Closure:2;_box_0,_captured_uri_1,_captured_EOI_2", | 11124 "^": "Closure:2;_box_0,uri,EOI", |
11025 call$0: function() { | 11125 call$0: function() { |
11026 var t1, authStart, t2, t3, $char, lastColon, lastAt, char0, endBracket,
hostEnd, t4, hostStart, i, portNumber, digit; | 11126 var t1, authStart, t2, t3, $char, lastColon, lastAt, char0, endBracket,
hostEnd, t4, hostStart, i, portNumber, digit; |
11027 t1 = this._box_0; | 11127 t1 = this._box_0; |
11028 if (J.$eq$(t1._captured_index_5, t1._captured_end_0)) { | 11128 if (J.$eq$(t1.index, t1.end)) { |
11029 t1._captured_char_6 = this._captured_EOI_2; | 11129 t1.$char = this.EOI; |
11030 return; | 11130 return; |
11031 } | 11131 } |
11032 authStart = t1._captured_index_5; | 11132 authStart = t1.index; |
11033 t2 = this._captured_uri_1; | 11133 t2 = this.uri; |
11034 t3 = J.getInterceptor$s(t2); | 11134 t3 = J.getInterceptor$s(t2); |
11035 t1._captured_char_6 = t3.codeUnitAt$1(t2, authStart); | 11135 t1.$char = t3.codeUnitAt$1(t2, authStart); |
11036 for ($char = this._captured_EOI_2, lastColon = -1, lastAt = -1; J.$lt$n(
t1._captured_index_5, t1._captured_end_0);) { | 11136 for ($char = this.EOI, lastColon = -1, lastAt = -1; J.$lt$n(t1.index, t1
.end);) { |
11037 char0 = t3.codeUnitAt$1(t2, t1._captured_index_5); | 11137 char0 = t3.codeUnitAt$1(t2, t1.index); |
11038 t1._captured_char_6 = char0; | 11138 t1.$char = char0; |
11039 if (char0 === 47 || char0 === 63 || char0 === 35) | 11139 if (char0 === 47 || char0 === 63 || char0 === 35) |
11040 break; | 11140 break; |
11041 if (char0 === 64) { | 11141 if (char0 === 64) { |
11042 lastAt = t1._captured_index_5; | 11142 lastAt = t1.index; |
11043 lastColon = -1; | 11143 lastColon = -1; |
11044 } else if (char0 === 58) | 11144 } else if (char0 === 58) |
11045 lastColon = t1._captured_index_5; | 11145 lastColon = t1.index; |
11046 else if (char0 === 91) { | 11146 else if (char0 === 91) { |
11047 endBracket = t3.indexOf$2(t2, "]", J.$add$ns(t1._captured_index_5, 1
)); | 11147 endBracket = t3.indexOf$2(t2, "]", J.$add$ns(t1.index, 1)); |
11048 if (J.$eq$(endBracket, -1)) { | 11148 if (J.$eq$(endBracket, -1)) { |
11049 t1._captured_index_5 = t1._captured_end_0; | 11149 t1.index = t1.end; |
11050 t1._captured_char_6 = $char; | 11150 t1.$char = $char; |
11051 lastColon = -1; | 11151 lastColon = -1; |
11052 break; | 11152 break; |
11053 } else | 11153 } else |
11054 t1._captured_index_5 = endBracket; | 11154 t1.index = endBracket; |
11055 lastColon = -1; | 11155 lastColon = -1; |
11056 } | 11156 } |
11057 t1._captured_index_5 = J.$add$ns(t1._captured_index_5, 1); | 11157 t1.index = J.$add$ns(t1.index, 1); |
11058 t1._captured_char_6 = $char; | 11158 t1.$char = $char; |
11059 } | 11159 } |
11060 hostEnd = t1._captured_index_5; | 11160 hostEnd = t1.index; |
11061 t4 = J.getInterceptor$n(lastAt); | 11161 t4 = J.getInterceptor$n(lastAt); |
11062 if (t4.$ge(lastAt, 0)) { | 11162 if (t4.$ge(lastAt, 0)) { |
11063 t1._captured_userinfo_2 = P.Uri__makeUserInfo(t2, authStart, lastAt); | 11163 t1.userinfo = P.Uri__makeUserInfo(t2, authStart, lastAt); |
11064 hostStart = t4.$add(lastAt, 1); | 11164 hostStart = t4.$add(lastAt, 1); |
11065 } else | 11165 } else |
11066 hostStart = authStart; | 11166 hostStart = authStart; |
11067 t4 = J.getInterceptor$n(lastColon); | 11167 t4 = J.getInterceptor$n(lastColon); |
11068 if (t4.$ge(lastColon, 0)) { | 11168 if (t4.$ge(lastColon, 0)) { |
11069 if (J.$lt$n(t4.$add(lastColon, 1), t1._captured_index_5)) | 11169 if (J.$lt$n(t4.$add(lastColon, 1), t1.index)) |
11070 for (i = t4.$add(lastColon, 1), portNumber = 0; t4 = J.getIntercepto
r$n(i), t4.$lt(i, t1._captured_index_5); i = t4.$add(i, 1)) { | 11170 for (i = t4.$add(lastColon, 1), portNumber = 0; t4 = J.getIntercepto
r$n(i), t4.$lt(i, t1.index); i = t4.$add(i, 1)) { |
11071 digit = t3.codeUnitAt$1(t2, i); | 11171 digit = t3.codeUnitAt$1(t2, i); |
11072 if (48 > digit || 57 < digit) | 11172 if (48 > digit || 57 < digit) |
11073 P.Uri__fail(t2, i, "Invalid port number"); | 11173 P.Uri__fail(t2, i, "Invalid port number"); |
11074 portNumber = portNumber * 10 + (digit - 48); | 11174 portNumber = portNumber * 10 + (digit - 48); |
11075 } | 11175 } |
11076 else | 11176 else |
11077 portNumber = null; | 11177 portNumber = null; |
11078 t1._captured_port_4 = P.Uri__makePort(portNumber, t1._captured_scheme_
1); | 11178 t1.port = P.Uri__makePort(portNumber, t1.scheme); |
11079 hostEnd = lastColon; | 11179 hostEnd = lastColon; |
11080 } | 11180 } |
11081 t1._captured_host_3 = P.Uri__makeHost(t2, hostStart, hostEnd, true); | 11181 t1.host = P.Uri__makeHost(t2, hostStart, hostEnd, true); |
11082 if (J.$lt$n(t1._captured_index_5, t1._captured_end_0)) | 11182 if (J.$lt$n(t1.index, t1.end)) |
11083 t1._captured_char_6 = t3.codeUnitAt$1(t2, t1._captured_index_5); | 11183 t1.$char = t3.codeUnitAt$1(t2, t1.index); |
11084 } | 11184 } |
11085 }, | 11185 }, |
11086 Uri__checkNonWindowsPathReservedCharacters_closure: { | 11186 Uri__checkNonWindowsPathReservedCharacters_closure: { |
11087 "^": "Closure:0;_captured_argumentError_0", | 11187 "^": "Closure:0;argumentError", |
11088 call$1: function(segment) { | 11188 call$1: function(segment) { |
11089 if (J.contains$1$asx(segment, "/") === true) | 11189 if (J.contains$1$asx(segment, "/") === true) |
11090 if (this._captured_argumentError_0) | 11190 if (this.argumentError) |
11091 throw H.wrapException(P.ArgumentError$("Illegal path character " + H
.S(segment))); | 11191 throw H.wrapException(P.ArgumentError$("Illegal path character " + H
.S(segment))); |
11092 else | 11192 else |
11093 throw H.wrapException(new P.UnsupportedError("Illegal path character
" + H.S(segment))); | 11193 throw H.wrapException(new P.UnsupportedError("Illegal path character
" + H.S(segment))); |
11094 } | 11194 } |
11095 }, | 11195 }, |
11096 Uri__makePath_closure: { | 11196 Uri__makePath_closure: { |
11097 "^": "Closure:0;", | 11197 "^": "Closure:0;", |
11098 call$1: [function(s) { | 11198 call$1: [function(s) { |
11099 return P.Uri__uriEncode(C.List_qg40, s, C.Utf8Codec_false, false); | 11199 return P.Uri__uriEncode(C.List_qg40, s, C.Utf8Codec_false, false); |
11100 }, null, null, 2, 0, null, 24, "call"] | 11200 }, null, null, 2, 0, null, 39, "call"] |
11101 }, | 11201 }, |
11102 Uri__makeQuery_closure: { | 11202 Uri__makeQuery_closure: { |
11103 "^": "Closure:3;_box_0,_core$_captured_result_1", | 11203 "^": "Closure:3;_box_0,result", |
11104 call$2: function(key, value) { | 11204 call$2: function(key, value) { |
11105 var t1 = this._box_0; | 11205 var t1 = this._box_0; |
11106 if (!t1._captured_first_0) | 11206 if (!t1.first) |
11107 this._core$_captured_result_1._contents += "&"; | 11207 this.result._contents += "&"; |
11108 t1._captured_first_0 = false; | 11208 t1.first = false; |
11109 t1 = this._core$_captured_result_1; | 11209 t1 = this.result; |
11110 t1._contents += P.Uri__uriEncode(C.List_nxB, key, C.Utf8Codec_false, tru
e); | 11210 t1._contents += H.S(P.Uri__uriEncode(C.List_nxB, key, C.Utf8Codec_false,
true)); |
11111 if (!value.get$isEmpty(value)) { | 11211 if (!value.get$isEmpty(value)) { |
11112 t1._contents += "="; | 11212 t1._contents += "="; |
11113 t1._contents += P.Uri__uriEncode(C.List_nxB, value, C.Utf8Codec_false,
true); | 11213 t1._contents += H.S(P.Uri__uriEncode(C.List_nxB, value, C.Utf8Codec_fa
lse, true)); |
11114 } | 11214 } |
11115 } | 11215 } |
11116 }, | 11216 }, |
11117 Uri_hashCode_combine: { | 11217 Uri_hashCode_combine: { |
11118 "^": "Closure:46;", | 11218 "^": "Closure:47;", |
11119 call$2: function(part, current) { | 11219 call$2: function(part, current) { |
11120 return current * 31 + J.get$hashCode$(part) & 1073741823; | 11220 return current * 31 + J.get$hashCode$(part) & 1073741823; |
11121 } | 11221 } |
11122 }, | 11222 }, |
11123 Uri_splitQueryString_closure: { | 11223 Uri_splitQueryString_closure: { |
11124 "^": "Closure:3;_captured_encoding_0", | 11224 "^": "Closure:3;encoding", |
11125 call$2: function(map, element) { | 11225 call$2: function(map, element) { |
11126 var t1, index, t2, key, value; | 11226 var t1, index, t2, key, value; |
11127 t1 = J.getInterceptor$asx(element); | 11227 t1 = J.getInterceptor$asx(element); |
11128 index = t1.indexOf$1(element, "="); | 11228 index = t1.indexOf$1(element, "="); |
11129 t2 = J.getInterceptor(index); | 11229 t2 = J.getInterceptor(index); |
11130 if (t2.$eq(index, -1)) { | 11230 if (t2.$eq(index, -1)) { |
11131 if (!t1.$eq(element, "")) | 11231 if (!t1.$eq(element, "")) |
11132 J.$indexSet$ax(map, P.Uri__uriDecode(element, this._captured_encodin
g_0, true), ""); | 11232 J.$indexSet$ax(map, P.Uri__uriDecode(element, 0, t1.get$length(eleme
nt), this.encoding, true), ""); |
11133 } else if (!t2.$eq(index, 0)) { | 11233 } else if (!t2.$eq(index, 0)) { |
11134 key = t1.substring$2(element, 0, index); | 11234 key = t1.substring$2(element, 0, index); |
11135 value = t1.substring$1(element, t2.$add(index, 1)); | 11235 value = t1.substring$1(element, t2.$add(index, 1)); |
11136 t1 = this._captured_encoding_0; | 11236 t1 = this.encoding; |
11137 J.$indexSet$ax(map, P.Uri__uriDecode(key, t1, true), P.Uri__uriDecode(
value, t1, true)); | 11237 J.$indexSet$ax(map, P.Uri__uriDecode(key, 0, key.length, t1, true), P.
Uri__uriDecode(value, 0, value.length, t1, true)); |
11138 } | 11238 } |
11139 return map; | 11239 return map; |
11140 } | 11240 } |
11141 }, | 11241 }, |
11142 Uri_parseIPv4Address_error: { | 11242 Uri_parseIPv4Address_error: { |
11143 "^": "Closure:6;", | 11243 "^": "Closure:7;", |
11144 call$1: function(msg) { | 11244 call$1: function(msg) { |
11145 throw H.wrapException(new P.FormatException("Illegal IPv4 address, " + m
sg, null, null)); | 11245 throw H.wrapException(new P.FormatException("Illegal IPv4 address, " + m
sg, null, null)); |
11146 } | 11246 } |
11147 }, | 11247 }, |
11148 Uri_parseIPv4Address_closure: { | 11248 Uri_parseIPv4Address_closure: { |
11149 "^": "Closure:0;_core$_captured_error_0", | 11249 "^": "Closure:0;error", |
11150 call$1: [function(byteString) { | 11250 call$1: [function(byteString) { |
11151 var $byte, t1; | 11251 var $byte, t1; |
11152 $byte = H.Primitives_parseInt(byteString, null, null); | 11252 $byte = H.Primitives_parseInt(byteString, null, null); |
11153 t1 = J.getInterceptor$n($byte); | 11253 t1 = J.getInterceptor$n($byte); |
11154 if (t1.$lt($byte, 0) || t1.$gt($byte, 255)) | 11254 if (t1.$lt($byte, 0) || t1.$gt($byte, 255)) |
11155 this._core$_captured_error_0.call$1("each part must be in the range of
`0..255`"); | 11255 this.error.call$1("each part must be in the range of `0..255`"); |
11156 return $byte; | 11256 return $byte; |
11157 }, null, null, 2, 0, null, 39, "call"] | 11257 }, null, null, 2, 0, null, 40, "call"] |
11158 }, | 11258 }, |
11159 Uri_parseIPv6Address_error: { | 11259 Uri_parseIPv6Address_error: { |
11160 "^": "Closure:47;_captured_host_0", | 11260 "^": "Closure:48;host", |
11161 call$2: function(msg, position) { | 11261 call$2: function(msg, position) { |
11162 throw H.wrapException(new P.FormatException("Illegal IPv6 address, " + m
sg, this._captured_host_0, position)); | 11262 throw H.wrapException(new P.FormatException("Illegal IPv6 address, " + m
sg, this.host, position)); |
11163 }, | 11263 }, |
11164 call$1: function(msg) { | 11264 call$1: function(msg) { |
11165 return this.call$2(msg, null); | 11265 return this.call$2(msg, null); |
11166 } | 11266 } |
11167 }, | 11267 }, |
11168 Uri_parseIPv6Address_parseHex: { | 11268 Uri_parseIPv6Address_parseHex: { |
11169 "^": "Closure:48;_captured_host_1,_captured_error_2", | 11269 "^": "Closure:49;host,error", |
11170 call$2: function(start, end) { | 11270 call$2: function(start, end) { |
11171 var value, t1; | 11271 var value, t1; |
11172 if (J.$gt$n(J.$sub$n(end, start), 4)) | 11272 if (J.$gt$n(J.$sub$n(end, start), 4)) |
11173 this._captured_error_2.call$2("an IPv6 part can only contain a maximum
of 4 hex digits", start); | 11273 this.error.call$2("an IPv6 part can only contain a maximum of 4 hex di
gits", start); |
11174 value = H.Primitives_parseInt(J.substring$2$s(this._captured_host_1, sta
rt, end), 16, null); | 11274 value = H.Primitives_parseInt(J.substring$2$s(this.host, start, end), 16
, null); |
11175 t1 = J.getInterceptor$n(value); | 11275 t1 = J.getInterceptor$n(value); |
11176 if (t1.$lt(value, 0) || t1.$gt(value, 65535)) | 11276 if (t1.$lt(value, 0) || t1.$gt(value, 65535)) |
11177 this._captured_error_2.call$2("each part must be in the range of `0x0.
.0xFFFF`", start); | 11277 this.error.call$2("each part must be in the range of `0x0..0xFFFF`", s
tart); |
11178 return value; | 11278 return value; |
11179 } | 11279 } |
11180 }, | 11280 }, |
11181 Uri__uriEncode_byteToHex: { | 11281 UriData: { |
11182 "^": "Closure:3;", | 11282 "^": "Object;_text,_separatorIndices,_uriCache", |
11183 call$2: function($byte, buffer) { | 11283 get$uri: function() { |
11184 var t1 = J.getInterceptor$n($byte); | 11284 return this._uriCache; |
11185 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.c
odeUnitAt$1("0123456789ABCDEF", t1.$shr($byte, 4))); | 11285 }, |
11186 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.c
odeUnitAt$1("0123456789ABCDEF", t1.$and($byte, 15))); | 11286 toString$0: function(_) { |
11187 } | 11287 var t1, t2; |
| 11288 t1 = this._separatorIndices; |
| 11289 if (0 >= t1.length) |
| 11290 return H.ioore(t1, 0); |
| 11291 t2 = this._text; |
| 11292 return t1[0] === -1 ? "data:" + t2 : t2; |
| 11293 }, |
| 11294 static: {UriData_UriData$fromUri: function(uri) { |
| 11295 if (uri.scheme !== "data") |
| 11296 throw H.wrapException(P.ArgumentError$value(uri, "uri", "Scheme must
be 'data'")); |
| 11297 if (uri._host != null) |
| 11298 throw H.wrapException(P.ArgumentError$value(uri, "uri", "Data uri mu
st not have authority")); |
| 11299 if (uri._fragment != null) |
| 11300 throw H.wrapException(P.ArgumentError$value(uri, "uri", "Data uri mu
st not have a fragment part")); |
| 11301 if (uri._query == null) |
| 11302 return P.UriData__parse(uri._path, 0, uri); |
| 11303 return P.UriData__parse(uri.toString$0(0), 5, uri); |
| 11304 }, UriData__parse: function(text, start, sourceUri) { |
| 11305 var indices, t1, i, slashIndex, $char, equalsIndex, lastSeparator; |
| 11306 indices = [start - 1]; |
| 11307 for (t1 = text.length, i = start, slashIndex = -1, $char = null; i < t
1; ++i) { |
| 11308 $char = C.JSString_methods.codeUnitAt$1(text, i); |
| 11309 if ($char === 44 || $char === 59) |
| 11310 break; |
| 11311 if ($char === 47) { |
| 11312 if (slashIndex < 0) { |
| 11313 slashIndex = i; |
| 11314 continue; |
| 11315 } |
| 11316 throw H.wrapException(new P.FormatException("Invalid MIME type", t
ext, i)); |
| 11317 } |
| 11318 } |
| 11319 if (slashIndex < 0 && i > start) |
| 11320 throw H.wrapException(new P.FormatException("Invalid MIME type", tex
t, i)); |
| 11321 for (; $char !== 44;) { |
| 11322 indices.push(i); |
| 11323 ++i; |
| 11324 for (equalsIndex = -1; i < t1; ++i) { |
| 11325 $char = C.JSString_methods.codeUnitAt$1(text, i); |
| 11326 if ($char === 61) { |
| 11327 if (equalsIndex < 0) |
| 11328 equalsIndex = i; |
| 11329 } else if ($char === 59 || $char === 44) |
| 11330 break; |
| 11331 } |
| 11332 if (equalsIndex >= 0) |
| 11333 indices.push(equalsIndex); |
| 11334 else { |
| 11335 lastSeparator = C.JSArray_methods.get$last(indices); |
| 11336 if ($char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods
.startsWith$2(text, "base64", lastSeparator + 1)) |
| 11337 throw H.wrapException(new P.FormatException("Expecting '='", tex
t, i)); |
| 11338 break; |
| 11339 } |
| 11340 } |
| 11341 indices.push(i); |
| 11342 return new P.UriData(text, indices, sourceUri); |
| 11343 }} |
11188 } | 11344 } |
11189 }], ["dart.dom.html", "dart:html",, W, { | 11345 }], ["dart.dom.html", "dart:html",, W, { |
11190 "^": "", | 11346 "^": "", |
11191 WebSocket_WebSocket: function(url, protocol_OR_protocols) { | 11347 WebSocket_WebSocket: function(url, protocol_OR_protocols) { |
11192 var t1, t2; | 11348 var t1, t2; |
11193 t1 = typeof url !== "string"; | 11349 t1 = typeof url !== "string"; |
11194 if ((!t1 || url == null) && true) | 11350 if ((!t1 || url == null) && true) |
11195 return new WebSocket(url); | 11351 return new WebSocket(url); |
11196 t2 = !t1 || url == null; | 11352 t2 = !t1 || url == null; |
11197 if (t2) | 11353 if (t2) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11229 return removed; | 11385 return removed; |
11230 }, | 11386 }, |
11231 _convertNativeToDart_Window: function(win) { | 11387 _convertNativeToDart_Window: function(win) { |
11232 if (win == null) | 11388 if (win == null) |
11233 return; | 11389 return; |
11234 return W._DOMWindowCrossFrame__createSafe(win); | 11390 return W._DOMWindowCrossFrame__createSafe(win); |
11235 }, | 11391 }, |
11236 _wrapZone: function(callback) { | 11392 _wrapZone: function(callback) { |
11237 if (J.$eq$($.Zone__current, C.C__RootZone)) | 11393 if (J.$eq$($.Zone__current, C.C__RootZone)) |
11238 return callback; | 11394 return callback; |
| 11395 if (callback == null) |
| 11396 return; |
11239 return $.Zone__current.bindUnaryCallback$2$runGuarded(callback, true); | 11397 return $.Zone__current.bindUnaryCallback$2$runGuarded(callback, true); |
11240 }, | 11398 }, |
11241 HtmlElement: { | 11399 HtmlElement: { |
11242 "^": "Element;", | 11400 "^": "Element;", |
11243 $isHtmlElement: 1, | 11401 $isHtmlElement: 1, |
11244 $isElement: 1, | 11402 $isElement: 1, |
11245 $isNode: 1, | 11403 $isNode: 1, |
11246 $isObject: 1, | 11404 $isObject: 1, |
11247 "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElement|HTMLButtonElement|HT
MLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDeta
ilsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLFieldSetElement|HTMLFontEl
ement|HTMLFrameElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtml
Element|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLL
inkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMenuItemElement
|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOptGroupElement|HTMLOptionE
lement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPictureElemen
t|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLShadowElement|HTMLSpan
Element|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableC
olElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|H
TMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaEleme
nt|HTMLTitleElement|HTMLUListElement|HTMLUnknownElement;HTMLElement" | 11405 "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElement|HTMLButtonElement|HT
MLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDeta
ilsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLFieldSetElement|HTMLFontEl
ement|HTMLFrameElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtml
Element|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLL
inkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMenuItemElement
|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLOptGroupEl
ement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|
HTMLPictureElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLShado
wElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellE
lement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHe
aderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|
HTMLTextAreaElement|HTMLTitleElement|HTMLUListElement|HTMLUnknownElement;HTMLEle
ment" |
11248 }, | 11406 }, |
11249 AnchorElement: { | 11407 AnchorElement: { |
11250 "^": "HtmlElement;origin=", | 11408 "^": "HtmlElement;origin=", |
11251 toString$0: function(receiver) { | 11409 toString$0: function(receiver) { |
11252 return String(receiver); | 11410 return String(receiver); |
11253 }, | 11411 }, |
11254 $isInterceptor: 1, | 11412 $isInterceptor: 1, |
11255 "%": "HTMLAnchorElement" | 11413 "%": "HTMLAnchorElement" |
11256 }, | 11414 }, |
11257 ApplicationCacheErrorEvent: { | 11415 ApplicationCacheErrorEvent: { |
11258 "^": "Event;message=", | 11416 "^": "Event;message=", |
11259 "%": "ApplicationCacheErrorEvent" | 11417 "%": "ApplicationCacheErrorEvent" |
11260 }, | 11418 }, |
11261 AreaElement: { | 11419 AreaElement: { |
11262 "^": "HtmlElement;origin=", | 11420 "^": "HtmlElement;origin=", |
11263 toString$0: function(receiver) { | 11421 toString$0: function(receiver) { |
11264 return String(receiver); | 11422 return String(receiver); |
11265 }, | 11423 }, |
11266 $isInterceptor: 1, | 11424 $isInterceptor: 1, |
11267 "%": "HTMLAreaElement" | 11425 "%": "HTMLAreaElement" |
11268 }, | 11426 }, |
11269 Blob: { | 11427 Blob: { |
11270 "^": "Interceptor;", | 11428 "^": "Interceptor;", |
11271 close$0: function(receiver) { | |
11272 return receiver.close(); | |
11273 }, | |
11274 $isBlob: 1, | 11429 $isBlob: 1, |
11275 "%": ";Blob" | 11430 "%": ";Blob" |
11276 }, | 11431 }, |
11277 BodyElement: { | 11432 BodyElement: { |
11278 "^": "HtmlElement;", | 11433 "^": "HtmlElement;", |
11279 $isInterceptor: 1, | 11434 $isInterceptor: 1, |
11280 "%": "HTMLBodyElement" | 11435 "%": "HTMLBodyElement" |
11281 }, | 11436 }, |
11282 CharacterData: { | 11437 CharacterData: { |
11283 "^": "Node;data=,length=", | 11438 "^": "Node;data=,length=", |
(...skipping 28 matching lines...) Expand all Loading... |
11312 "%": "DOMError|FileError" | 11467 "%": "DOMError|FileError" |
11313 }, | 11468 }, |
11314 DomException: { | 11469 DomException: { |
11315 "^": "Interceptor;message=", | 11470 "^": "Interceptor;message=", |
11316 toString$0: function(receiver) { | 11471 toString$0: function(receiver) { |
11317 return String(receiver); | 11472 return String(receiver); |
11318 }, | 11473 }, |
11319 "%": "DOMException" | 11474 "%": "DOMException" |
11320 }, | 11475 }, |
11321 DomRectReadOnly: { | 11476 DomRectReadOnly: { |
11322 "^": "Interceptor;bottom=,height=,left=,right=,top=,width=", | 11477 "^": "Interceptor;height=,left=,top=,width=", |
11323 toString$0: function(receiver) { | 11478 toString$0: function(receiver) { |
11324 return "Rectangle (" + H.S(receiver.left) + ", " + H.S(receiver.top) + "
) " + H.S(this.get$width(receiver)) + " x " + H.S(this.get$height(receiver)); | 11479 return "Rectangle (" + H.S(receiver.left) + ", " + H.S(receiver.top) + "
) " + H.S(this.get$width(receiver)) + " x " + H.S(this.get$height(receiver)); |
11325 }, | 11480 }, |
11326 $eq: function(receiver, other) { | 11481 $eq: function(receiver, other) { |
11327 var t1, t2, t3; | 11482 var t1, t2, t3; |
11328 if (other == null) | 11483 if (other == null) |
11329 return false; | 11484 return false; |
11330 t1 = J.getInterceptor(other); | 11485 t1 = J.getInterceptor(other); |
11331 if (!t1.$isRectangle) | 11486 if (!t1.$isRectangle) |
11332 return false; | 11487 return false; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11398 "^": "Interceptor;", | 11553 "^": "Interceptor;", |
11399 stopPropagation$0: function(receiver) { | 11554 stopPropagation$0: function(receiver) { |
11400 return receiver.stopPropagation(); | 11555 return receiver.stopPropagation(); |
11401 }, | 11556 }, |
11402 $isEvent: 1, | 11557 $isEvent: 1, |
11403 "%": "AnimationPlayerEvent|AudioProcessingEvent|AutocompleteErrorEvent|Bef
oreUnloadEvent|CloseEvent|CustomEvent|DeviceLightEvent|DeviceMotionEvent|DeviceO
rientationEvent|ExtendableEvent|FetchEvent|FontFaceSetLoadEvent|GamepadEvent|Has
hChangeEvent|IDBVersionChangeEvent|InstallEvent|MIDIConnectionEvent|MediaKeyNeed
edEvent|MediaQueryListEvent|MediaStreamEvent|MediaStreamTrackEvent|MutationEvent
|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|Pro
gressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|RTCPe
erConnectionIceEvent|RelatedEvent|ResourceProgressEvent|SecurityPolicyViolationE
vent|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TrackEvent|Transit
ionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|XMLHttpReq
uestProgressEvent;ClipboardEvent|Event|InputEvent" | 11558 "%": "AnimationPlayerEvent|AudioProcessingEvent|AutocompleteErrorEvent|Bef
oreUnloadEvent|CloseEvent|CustomEvent|DeviceLightEvent|DeviceMotionEvent|DeviceO
rientationEvent|ExtendableEvent|FetchEvent|FontFaceSetLoadEvent|GamepadEvent|Has
hChangeEvent|IDBVersionChangeEvent|InstallEvent|MIDIConnectionEvent|MediaKeyNeed
edEvent|MediaQueryListEvent|MediaStreamEvent|MediaStreamTrackEvent|MutationEvent
|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|Pro
gressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|RTCPe
erConnectionIceEvent|RelatedEvent|ResourceProgressEvent|SecurityPolicyViolationE
vent|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TrackEvent|Transit
ionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|XMLHttpReq
uestProgressEvent;ClipboardEvent|Event|InputEvent" |
11404 }, | 11559 }, |
11405 EventTarget: { | 11560 EventTarget: { |
11406 "^": "Interceptor;", | 11561 "^": "Interceptor;", |
11407 _addEventListener$3: function(receiver, type, listener, useCapture) { | 11562 _addEventListener$3: function(receiver, type, listener, useCapture) { |
11408 return receiver.addEventListener(type, H.convertDartClosureToJS(listener
, 1), useCapture); | 11563 return receiver.addEventListener(type, H.convertDartClosureToJS(listener
, 1), false); |
11409 }, | 11564 }, |
11410 _removeEventListener$3: function(receiver, type, listener, useCapture) { | 11565 _removeEventListener$3: function(receiver, type, listener, useCapture) { |
11411 return receiver.removeEventListener(type, H.convertDartClosureToJS(liste
ner, 1), useCapture); | 11566 return receiver.removeEventListener(type, H.convertDartClosureToJS(liste
ner, 1), false); |
11412 }, | 11567 }, |
11413 "%": "MediaStream;EventTarget" | 11568 "%": "MediaStream;EventTarget" |
11414 }, | 11569 }, |
11415 File: { | 11570 File: { |
11416 "^": "Blob;", | 11571 "^": "Blob;", |
11417 $isFile: 1, | 11572 $isFile: 1, |
11418 "%": "File" | 11573 "%": "File" |
11419 }, | 11574 }, |
11420 FormElement: { | 11575 FormElement: { |
11421 "^": "HtmlElement;length=", | 11576 "^": "HtmlElement;length=", |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11526 "^": "Event;message=", | 11681 "^": "Event;message=", |
11527 "%": "MediaKeyEvent" | 11682 "%": "MediaKeyEvent" |
11528 }, | 11683 }, |
11529 MediaKeyMessageEvent: { | 11684 MediaKeyMessageEvent: { |
11530 "^": "Event;message=", | 11685 "^": "Event;message=", |
11531 "%": "MediaKeyMessageEvent" | 11686 "%": "MediaKeyMessageEvent" |
11532 }, | 11687 }, |
11533 MessageEvent: { | 11688 MessageEvent: { |
11534 "^": "Event;origin=", | 11689 "^": "Event;origin=", |
11535 get$data: function(receiver) { | 11690 get$data: function(receiver) { |
11536 return P.convertNativeToDart_AcceptStructuredClone(receiver.data, true); | 11691 var t1, t2; |
| 11692 t1 = receiver.data; |
| 11693 t2 = new P._AcceptStructuredCloneDart2Js([], [], false); |
| 11694 t2.mustCopy = true; |
| 11695 return t2.walk$1(t1); |
11537 }, | 11696 }, |
11538 "%": "MessageEvent" | 11697 "%": "MessageEvent" |
11539 }, | 11698 }, |
11540 MidiMessageEvent: { | 11699 MidiMessageEvent: { |
11541 "^": "Event;data=", | 11700 "^": "Event;data=", |
11542 "%": "MIDIMessageEvent" | 11701 "%": "MIDIMessageEvent" |
11543 }, | 11702 }, |
11544 MidiOutput: { | 11703 MidiOutput: { |
11545 "^": "MidiPort;", | 11704 "^": "MidiPort;", |
11546 send$2: function(receiver, data, timestamp) { | 11705 send$2: function(receiver, data, timestamp) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11627 $isEfficientLength: 1 | 11786 $isEfficientLength: 1 |
11628 }, | 11787 }, |
11629 Interceptor_ListMixin_ImmutableListMixin0: { | 11788 Interceptor_ListMixin_ImmutableListMixin0: { |
11630 "^": "Interceptor_ListMixin0+ImmutableListMixin;", | 11789 "^": "Interceptor_ListMixin0+ImmutableListMixin;", |
11631 $isList: 1, | 11790 $isList: 1, |
11632 $asList: function() { | 11791 $asList: function() { |
11633 return [W.Node]; | 11792 return [W.Node]; |
11634 }, | 11793 }, |
11635 $isEfficientLength: 1 | 11794 $isEfficientLength: 1 |
11636 }, | 11795 }, |
11637 OListElement: { | |
11638 "^": "HtmlElement;start=", | |
11639 "%": "HTMLOListElement" | |
11640 }, | |
11641 ObjectElement: { | 11796 ObjectElement: { |
11642 "^": "HtmlElement;data=", | 11797 "^": "HtmlElement;data=", |
11643 "%": "HTMLObjectElement" | 11798 "%": "HTMLObjectElement" |
11644 }, | 11799 }, |
11645 PluginPlaceholderElement: { | 11800 PluginPlaceholderElement: { |
11646 "^": "DivElement;message=", | 11801 "^": "DivElement;message=", |
11647 "%": "PluginPlaceholderElement" | 11802 "%": "PluginPlaceholderElement" |
11648 }, | 11803 }, |
11649 PositionError: { | 11804 PositionError: { |
11650 "^": "Interceptor;message=", | 11805 "^": "Interceptor;message=", |
(...skipping 26 matching lines...) Expand all Loading... |
11677 TrackElement: { | 11832 TrackElement: { |
11678 "^": "HtmlElement;src%", | 11833 "^": "HtmlElement;src%", |
11679 "%": "HTMLTrackElement" | 11834 "%": "HTMLTrackElement" |
11680 }, | 11835 }, |
11681 UIEvent: { | 11836 UIEvent: { |
11682 "^": "Event;", | 11837 "^": "Event;", |
11683 "%": "DragEvent|FocusEvent|MSPointerEvent|MouseEvent|PointerEvent|SVGZoomE
vent|TouchEvent|WheelEvent;UIEvent" | 11838 "%": "DragEvent|FocusEvent|MSPointerEvent|MouseEvent|PointerEvent|SVGZoomE
vent|TouchEvent|WheelEvent;UIEvent" |
11684 }, | 11839 }, |
11685 WebSocket: { | 11840 WebSocket: { |
11686 "^": "EventTarget;", | 11841 "^": "EventTarget;", |
11687 close$2: function(receiver, code, reason) { | |
11688 return receiver.close(code, reason); | |
11689 }, | |
11690 close$0: function($receiver) { | |
11691 return $receiver.close(); | |
11692 }, | |
11693 send$1: function(receiver, data) { | 11842 send$1: function(receiver, data) { |
11694 return receiver.send(data); | 11843 return receiver.send(data); |
11695 }, | 11844 }, |
11696 "%": "WebSocket" | 11845 "%": "WebSocket" |
11697 }, | 11846 }, |
11698 Window: { | 11847 Window: { |
11699 "^": "EventTarget;", | 11848 "^": "EventTarget;", |
11700 get$location: function(receiver) { | 11849 get$location: function(receiver) { |
11701 return receiver.location; | 11850 return receiver.location; |
11702 }, | 11851 }, |
11703 get$parent: function(receiver) { | 11852 get$parent: function(receiver) { |
11704 return W._convertNativeToDart_Window(receiver.parent); | 11853 return W._convertNativeToDart_Window(receiver.parent); |
11705 }, | 11854 }, |
11706 close$0: function(receiver) { | |
11707 return receiver.close(); | |
11708 }, | |
11709 postMessage$3: function(receiver, message, targetOrigin, transfer) { | 11855 postMessage$3: function(receiver, message, targetOrigin, transfer) { |
11710 receiver.postMessage(P._convertDartToNative_PrepareForStructuredClone(me
ssage), targetOrigin); | 11856 receiver.postMessage(new P._StructuredCloneDart2Js([], []).walk$1(messag
e), targetOrigin); |
11711 return; | 11857 return; |
11712 }, | 11858 }, |
11713 postMessage$2: function($receiver, message, targetOrigin) { | 11859 postMessage$2: function($receiver, message, targetOrigin) { |
11714 return this.postMessage$3($receiver, message, targetOrigin, null); | 11860 return this.postMessage$3($receiver, message, targetOrigin, null); |
11715 }, | 11861 }, |
11716 print$0: [function(receiver) { | 11862 print$0: [function(receiver) { |
11717 return receiver.print(); | 11863 return receiver.print(); |
11718 }, "call$0", "get$print", 0, 0, 2], | 11864 }, "call$0", "get$print", 0, 0, 2], |
11719 $isWindow: 1, | 11865 $isWindow: 1, |
11720 $isInterceptor: 1, | 11866 $isInterceptor: 1, |
11721 "%": "DOMWindow|Window" | 11867 "%": "DOMWindow|Window" |
11722 }, | 11868 }, |
11723 _ClientRect: { | 11869 _ClientRect: { |
11724 "^": "Interceptor;bottom=,height=,left=,right=,top=,width=", | 11870 "^": "Interceptor;height=,left=,top=,width=", |
11725 toString$0: function(receiver) { | 11871 toString$0: function(receiver) { |
11726 return "Rectangle (" + H.S(receiver.left) + ", " + H.S(receiver.top) + "
) " + H.S(receiver.width) + " x " + H.S(receiver.height); | 11872 return "Rectangle (" + H.S(receiver.left) + ", " + H.S(receiver.top) + "
) " + H.S(receiver.width) + " x " + H.S(receiver.height); |
11727 }, | 11873 }, |
11728 $eq: function(receiver, other) { | 11874 $eq: function(receiver, other) { |
11729 var t1, t2, t3; | 11875 var t1, t2, t3; |
11730 if (other == null) | 11876 if (other == null) |
11731 return false; | 11877 return false; |
11732 t1 = J.getInterceptor(other); | 11878 t1 = J.getInterceptor(other); |
11733 if (!t1.$isRectangle) | 11879 if (!t1.$isRectangle) |
11734 return false; | 11880 return false; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11832 "^": "Interceptor_ListMixin1+ImmutableListMixin;", | 11978 "^": "Interceptor_ListMixin1+ImmutableListMixin;", |
11833 $isList: 1, | 11979 $isList: 1, |
11834 $asList: function() { | 11980 $asList: function() { |
11835 return [W.Node]; | 11981 return [W.Node]; |
11836 }, | 11982 }, |
11837 $isEfficientLength: 1 | 11983 $isEfficientLength: 1 |
11838 }, | 11984 }, |
11839 _EventStream: { | 11985 _EventStream: { |
11840 "^": "Stream;_target,_eventType,_useCapture", | 11986 "^": "Stream;_target,_eventType,_useCapture", |
11841 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { | 11987 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onD
one, onError) { |
11842 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType
, W._wrapZone(onData), this._useCapture); | 11988 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType
, W._wrapZone(onData), false); |
11843 t1.$builtinTypeInfo = this.$builtinTypeInfo; | 11989 t1.$builtinTypeInfo = this.$builtinTypeInfo; |
11844 t1._tryResume$0(); | 11990 t1._tryResume$0(); |
11845 return t1; | 11991 return t1; |
11846 }, | 11992 }, |
| 11993 listen$1: function(onData) { |
| 11994 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, nu
ll); |
| 11995 }, |
11847 listen$3$onDone$onError: function(onData, onDone, onError) { | 11996 listen$3$onDone$onError: function(onData, onDone, onError) { |
11848 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); | 11997 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone,
onError); |
11849 } | 11998 } |
11850 }, | 11999 }, |
11851 _ElementEventStreamImpl: { | 12000 _ElementEventStreamImpl: { |
11852 "^": "_EventStream;_target,_eventType,_useCapture" | 12001 "^": "_EventStream;_target,_eventType,_useCapture" |
11853 }, | 12002 }, |
11854 _EventStreamSubscription: { | 12003 _EventStreamSubscription: { |
11855 "^": "StreamSubscription;_pauseCount,_target,_eventType,_onData,_useCaptur
e", | 12004 "^": "StreamSubscription;_pauseCount,_target,_eventType,_onData,_useCaptur
e", |
11856 cancel$0: function() { | 12005 cancel$0: function() { |
(...skipping 23 matching lines...) Expand all Loading... |
11880 this._tryResume$0(); | 12029 this._tryResume$0(); |
11881 }, | 12030 }, |
11882 _tryResume$0: function() { | 12031 _tryResume$0: function() { |
11883 var t1, t2, t3; | 12032 var t1, t2, t3; |
11884 t1 = this._onData; | 12033 t1 = this._onData; |
11885 t2 = t1 != null; | 12034 t2 = t1 != null; |
11886 if (t2 && this._pauseCount <= 0) { | 12035 if (t2 && this._pauseCount <= 0) { |
11887 t3 = this._target; | 12036 t3 = this._target; |
11888 t3.toString; | 12037 t3.toString; |
11889 if (t2) | 12038 if (t2) |
11890 J._addEventListener$3$x(t3, this._eventType, t1, this._useCapture); | 12039 J._addEventListener$3$x(t3, this._eventType, t1, false); |
11891 } | 12040 } |
11892 }, | 12041 }, |
11893 _unlisten$0: function() { | 12042 _unlisten$0: function() { |
11894 var t1, t2, t3; | 12043 var t1, t2, t3; |
11895 t1 = this._onData; | 12044 t1 = this._onData; |
11896 t2 = t1 != null; | 12045 t2 = t1 != null; |
11897 if (t2) { | 12046 if (t2) { |
11898 t3 = this._target; | 12047 t3 = this._target; |
11899 t3.toString; | 12048 t3.toString; |
11900 if (t2) | 12049 if (t2) |
11901 J._removeEventListener$3$x(t3, this._eventType, t1, this._useCapture
); | 12050 J._removeEventListener$3$x(t3, this._eventType, t1, false); |
11902 } | 12051 } |
11903 } | 12052 } |
11904 }, | 12053 }, |
11905 ImmutableListMixin: { | 12054 ImmutableListMixin: { |
11906 "^": "Object;", | 12055 "^": "Object;", |
11907 get$iterator: function(receiver) { | 12056 get$iterator: function(receiver) { |
11908 return new W.FixedSizeListIterator(receiver, this.get$length(receiver),
-1, null); | 12057 return new W.FixedSizeListIterator(receiver, this.get$length(receiver),
-1, null); |
11909 }, | 12058 }, |
11910 add$1: function(receiver, value) { | 12059 add$1: function(receiver, value) { |
11911 throw H.wrapException(new P.UnsupportedError("Cannot add to immutable Li
st.")); | 12060 throw H.wrapException(new P.UnsupportedError("Cannot add to immutable Li
st.")); |
11912 }, | 12061 }, |
11913 setRange$4: function(receiver, start, end, iterable, skipCount) { | 12062 setRange$4: function(receiver, start, end, iterable, skipCount) { |
11914 throw H.wrapException(new P.UnsupportedError("Cannot setRange on immutab
le List.")); | 12063 throw H.wrapException(new P.UnsupportedError("Cannot setRange on immutab
le List.")); |
11915 }, | 12064 }, |
11916 setRange$3: function($receiver, start, end, iterable) { | 12065 setRange$3: function($receiver, start, end, iterable) { |
11917 return this.setRange$4($receiver, start, end, iterable, 0); | 12066 return this.setRange$4($receiver, start, end, iterable, 0); |
11918 }, | 12067 }, |
11919 replaceRange$3: function(receiver, start, end, iterable) { | 12068 replaceRange$3: function(receiver, start, end, iterable) { |
11920 throw H.wrapException(new P.UnsupportedError("Cannot modify an immutable
List.")); | 12069 throw H.wrapException(new P.UnsupportedError("Cannot modify an immutable
List.")); |
11921 }, | 12070 }, |
11922 $isList: 1, | 12071 $isList: 1, |
11923 $asList: null, | 12072 $asList: null, |
11924 $isEfficientLength: 1 | 12073 $isEfficientLength: 1 |
11925 }, | 12074 }, |
11926 FixedSizeListIterator: { | 12075 FixedSizeListIterator: { |
11927 "^": "Object;_array,_length,_position,_current", | 12076 "^": "Object;_array,_length,_position,_html$_current", |
11928 moveNext$0: function() { | 12077 moveNext$0: function() { |
11929 var nextPosition, t1; | 12078 var nextPosition, t1; |
11930 nextPosition = this._position + 1; | 12079 nextPosition = this._position + 1; |
11931 t1 = this._length; | 12080 t1 = this._length; |
11932 if (nextPosition < t1) { | 12081 if (nextPosition < t1) { |
11933 this._current = J.$index$asx(this._array, nextPosition); | 12082 this._html$_current = J.$index$asx(this._array, nextPosition); |
11934 this._position = nextPosition; | 12083 this._position = nextPosition; |
11935 return true; | 12084 return true; |
11936 } | 12085 } |
11937 this._current = null; | 12086 this._html$_current = null; |
11938 this._position = t1; | 12087 this._position = t1; |
11939 return false; | 12088 return false; |
11940 }, | 12089 }, |
11941 get$current: function() { | 12090 get$current: function() { |
11942 return this._current; | 12091 return this._html$_current; |
11943 } | 12092 } |
11944 }, | 12093 }, |
11945 _DOMWindowCrossFrame: { | 12094 _DOMWindowCrossFrame: { |
11946 "^": "Object;_window", | 12095 "^": "Object;_window", |
11947 get$location: function(_) { | 12096 get$location: function(_) { |
11948 return W._LocationCrossFrame__createSafe(this._window.location); | 12097 return W._LocationCrossFrame__createSafe(this._window.location); |
11949 }, | 12098 }, |
11950 get$parent: function(_) { | 12099 get$parent: function(_) { |
11951 return W._DOMWindowCrossFrame__createSafe(this._window.parent); | 12100 return W._DOMWindowCrossFrame__createSafe(this._window.parent); |
11952 }, | 12101 }, |
11953 close$0: function(_) { | |
11954 return this._window.close(); | |
11955 }, | |
11956 postMessage$3: function(_, message, targetOrigin, messagePorts) { | 12102 postMessage$3: function(_, message, targetOrigin, messagePorts) { |
11957 this._window.postMessage(P._convertDartToNative_PrepareForStructuredClon
e(message), targetOrigin); | 12103 this._window.postMessage(new P._StructuredCloneDart2Js([], []).walk$1(me
ssage), targetOrigin); |
11958 }, | 12104 }, |
11959 postMessage$2: function($receiver, message, targetOrigin) { | 12105 postMessage$2: function($receiver, message, targetOrigin) { |
11960 return this.postMessage$3($receiver, message, targetOrigin, null); | 12106 return this.postMessage$3($receiver, message, targetOrigin, null); |
11961 }, | 12107 }, |
11962 $isInterceptor: 1, | 12108 $isInterceptor: 1, |
11963 static: {_DOMWindowCrossFrame__createSafe: function(w) { | 12109 static: {_DOMWindowCrossFrame__createSafe: function(w) { |
11964 if (w === window) | 12110 if (w === window) |
11965 return w; | 12111 return w; |
11966 else | 12112 else |
11967 return new W._DOMWindowCrossFrame(w); | 12113 return new W._DOMWindowCrossFrame(w); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12200 "^": "", | 12346 "^": "", |
12201 _callDartFunction: [function(callback, captureThis, $self, $arguments) { | 12347 _callDartFunction: [function(callback, captureThis, $self, $arguments) { |
12202 var arguments0, dartArgs; | 12348 var arguments0, dartArgs; |
12203 if (captureThis === true) { | 12349 if (captureThis === true) { |
12204 arguments0 = [$self]; | 12350 arguments0 = [$self]; |
12205 C.JSArray_methods.addAll$1(arguments0, $arguments); | 12351 C.JSArray_methods.addAll$1(arguments0, $arguments); |
12206 $arguments = arguments0; | 12352 $arguments = arguments0; |
12207 } | 12353 } |
12208 dartArgs = P.List_List$from(J.map$1$ax($arguments, P.js___convertToDart$cl
osure()), true, null); | 12354 dartArgs = P.List_List$from(J.map$1$ax($arguments, P.js___convertToDart$cl
osure()), true, null); |
12209 return P._convertToJS(H.Primitives_applyFunctionWithPositionalArguments(ca
llback, dartArgs)); | 12355 return P._convertToJS(H.Primitives_applyFunctionWithPositionalArguments(ca
llback, dartArgs)); |
12210 }, null, null, 8, 0, null, 14, 40, 0, 41], | 12356 }, null, null, 8, 0, null, 16, 41, 0, 42], |
12211 _defineProperty: function(o, $name, value) { | 12357 _defineProperty: function(o, $name, value) { |
12212 var exception; | 12358 var exception; |
12213 if (Object.isExtensible(o) && !Object.prototype.hasOwnProperty.call(o, $na
me)) | 12359 try { |
12214 try { | 12360 if (Object.isExtensible(o) && !Object.prototype.hasOwnProperty.call(o, $
name)) { |
12215 Object.defineProperty(o, $name, {value: value}); | 12361 Object.defineProperty(o, $name, {value: value}); |
12216 return true; | 12362 return true; |
12217 } catch (exception) { | |
12218 H.unwrapException(exception); | |
12219 } | 12363 } |
| 12364 } catch (exception) { |
| 12365 H.unwrapException(exception); |
| 12366 } |
12220 return false; | 12367 return false; |
12221 }, | 12368 }, |
12222 _getOwnProperty: function(o, $name) { | 12369 _getOwnProperty: function(o, $name) { |
12223 if (Object.prototype.hasOwnProperty.call(o, $name)) | 12370 if (Object.prototype.hasOwnProperty.call(o, $name)) |
12224 return o[$name]; | 12371 return o[$name]; |
12225 return; | 12372 return; |
12226 }, | 12373 }, |
12227 _convertToJS: [function(o) { | 12374 _convertToJS: [function(o) { |
12228 var t1; | 12375 var t1; |
12229 if (o == null || typeof o === "string" || typeof o === "number" || typeof
o === "boolean") | 12376 if (o == null || typeof o === "string" || typeof o === "number" || typeof
o === "boolean") |
12230 return o; | 12377 return o; |
12231 t1 = J.getInterceptor(o); | 12378 t1 = J.getInterceptor(o); |
12232 if (!!t1.$isJsObject) | 12379 if (!!t1.$isJsObject) |
12233 return o._jsObject; | 12380 return o._jsObject; |
12234 if (!!t1.$isBlob || !!t1.$isEvent || !!t1.$isKeyRange || !!t1.$isImageData
|| !!t1.$isNode || !!t1.$isTypedData || !!t1.$isWindow) | 12381 if (!!t1.$isBlob || !!t1.$isEvent || !!t1.$isKeyRange || !!t1.$isImageData
|| !!t1.$isNode || !!t1.$isTypedData || !!t1.$isWindow) |
12235 return o; | 12382 return o; |
12236 if (!!t1.$isDateTime) | 12383 if (!!t1.$isDateTime) |
12237 return H.Primitives_lazyAsJsDate(o); | 12384 return H.Primitives_lazyAsJsDate(o); |
12238 if (!!t1.$isFunction) | 12385 if (!!t1.$isFunction) |
12239 return P._getJsProxy(o, "$dart_jsFunction", new P._convertToJS_closure()
); | 12386 return P._getJsProxy(o, "$dart_jsFunction", new P._convertToJS_closure()
); |
12240 return P._getJsProxy(o, "_$dart_jsObject", new P._convertToJS_closure0($.$
get$_dartProxyCtor())); | 12387 return P._getJsProxy(o, "_$dart_jsObject", new P._convertToJS_closure0($.$
get$_dartProxyCtor())); |
12241 }, "call$1", "js___convertToJS$closure", 2, 0, 0, 25], | 12388 }, "call$1", "js___convertToJS$closure", 2, 0, 0, 26], |
12242 _getJsProxy: function(o, propertyName, createProxy) { | 12389 _getJsProxy: function(o, propertyName, createProxy) { |
12243 var jsProxy = P._getOwnProperty(o, propertyName); | 12390 var jsProxy = P._getOwnProperty(o, propertyName); |
12244 if (jsProxy == null) { | 12391 if (jsProxy == null) { |
12245 jsProxy = createProxy.call$1(o); | 12392 jsProxy = createProxy.call$1(o); |
12246 P._defineProperty(o, propertyName, jsProxy); | 12393 P._defineProperty(o, propertyName, jsProxy); |
12247 } | 12394 } |
12248 return jsProxy; | 12395 return jsProxy; |
12249 }, | 12396 }, |
12250 _convertToDart: [function(o) { | 12397 _convertToDart: [function(o) { |
12251 var t1; | 12398 var t1, ms; |
12252 if (o == null || typeof o == "string" || typeof o == "number" || typeof o
== "boolean") | 12399 if (o == null || typeof o == "string" || typeof o == "number" || typeof o
== "boolean") |
12253 return o; | 12400 return o; |
12254 else { | 12401 else { |
12255 if (o instanceof Object) { | 12402 if (o instanceof Object) { |
12256 t1 = J.getInterceptor(o); | 12403 t1 = J.getInterceptor(o); |
12257 t1 = !!t1.$isBlob || !!t1.$isEvent || !!t1.$isKeyRange || !!t1.$isImag
eData || !!t1.$isNode || !!t1.$isTypedData || !!t1.$isWindow; | 12404 t1 = !!t1.$isBlob || !!t1.$isEvent || !!t1.$isKeyRange || !!t1.$isImag
eData || !!t1.$isNode || !!t1.$isTypedData || !!t1.$isWindow; |
12258 } else | 12405 } else |
12259 t1 = false; | 12406 t1 = false; |
12260 if (t1) | 12407 if (t1) |
12261 return o; | 12408 return o; |
12262 else if (o instanceof Date) | 12409 else if (o instanceof Date) { |
12263 return P.DateTime$fromMillisecondsSinceEpoch(o.getTime(), false); | 12410 ms = o.getTime(); |
12264 else if (o.constructor === $.$get$_dartProxyCtor()) | 12411 t1 = new P.DateTime(ms, false); |
| 12412 t1.DateTime$_withValue$2$isUtc(ms, false); |
| 12413 return t1; |
| 12414 } else if (o.constructor === $.$get$_dartProxyCtor()) |
12265 return o.o; | 12415 return o.o; |
12266 else | 12416 else |
12267 return P._wrapToDart(o); | 12417 return P._wrapToDart(o); |
12268 } | 12418 } |
12269 }, "call$1", "js___convertToDart$closure", 2, 0, 13, 25], | 12419 }, "call$1", "js___convertToDart$closure", 2, 0, 12, 26], |
12270 _wrapToDart: function(o) { | 12420 _wrapToDart: function(o) { |
12271 if (typeof o == "function") | 12421 if (typeof o == "function") |
12272 return P._getDartProxy(o, $.$get$_DART_CLOSURE_PROPERTY_NAME(), new P._w
rapToDart_closure()); | 12422 return P._getDartProxy(o, $.$get$DART_CLOSURE_PROPERTY_NAME(), new P._wr
apToDart_closure()); |
12273 if (o instanceof Array) | 12423 if (o instanceof Array) |
12274 return P._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new P._wr
apToDart_closure0()); | 12424 return P._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new P._wr
apToDart_closure0()); |
12275 return P._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new P._wrap
ToDart_closure1()); | 12425 return P._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new P._wrap
ToDart_closure1()); |
12276 }, | 12426 }, |
12277 _getDartProxy: function(o, propertyName, createProxy) { | 12427 _getDartProxy: function(o, propertyName, createProxy) { |
12278 var dartProxy = P._getOwnProperty(o, propertyName); | 12428 var dartProxy = P._getOwnProperty(o, propertyName); |
12279 if (dartProxy == null || !(o instanceof Object)) { | 12429 if (dartProxy == null || !(o instanceof Object)) { |
12280 dartProxy = createProxy.call$1(o); | 12430 dartProxy = createProxy.call$1(o); |
12281 P._defineProperty(o, propertyName, dartProxy); | 12431 P._defineProperty(o, propertyName, dartProxy); |
12282 } | 12432 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12354 return len; | 12504 return len; |
12355 throw H.wrapException(new P.StateError("Bad JsArray length")); | 12505 throw H.wrapException(new P.StateError("Bad JsArray length")); |
12356 }, | 12506 }, |
12357 set$length: function(_, $length) { | 12507 set$length: function(_, $length) { |
12358 this.super$JsObject$$indexSet(this, "length", $length); | 12508 this.super$JsObject$$indexSet(this, "length", $length); |
12359 }, | 12509 }, |
12360 add$1: function(_, value) { | 12510 add$1: function(_, value) { |
12361 this.callMethod$2("push", [value]); | 12511 this.callMethod$2("push", [value]); |
12362 }, | 12512 }, |
12363 setRange$4: function(_, start, end, iterable, skipCount) { | 12513 setRange$4: function(_, start, end, iterable, skipCount) { |
12364 var $length, args, t1; | 12514 var $length, args, t1, t2, t3; |
12365 P.JsArray__checkRange(start, end, this.get$length(this)); | 12515 P.JsArray__checkRange(start, end, this.get$length(this)); |
12366 $length = end - start; | 12516 $length = end - start; |
12367 if ($length === 0) | 12517 if ($length === 0) |
12368 return; | 12518 return; |
12369 args = [start, $length]; | 12519 args = [start, $length]; |
12370 t1 = new H.SubListIterable(iterable, skipCount, null); | 12520 t1 = H.setRuntimeTypeInfo(new H.SubListIterable(iterable, skipCount, nul
l), [H.getRuntimeTypeArgument(iterable, "ListMixin", 0)]); |
12371 t1.$builtinTypeInfo = [H.getRuntimeTypeArgument(iterable, "ListMixin", 0
)]; | 12521 t2 = t1.__internal$_start; |
| 12522 if (t2 < 0) |
| 12523 H.throwExpression(P.RangeError$range(t2, 0, null, "start", null)); |
| 12524 t3 = t1._endOrLength; |
| 12525 if (t3 != null) { |
| 12526 if (typeof t3 !== "number") |
| 12527 return t3.$lt(); |
| 12528 if (t3 < 0) |
| 12529 H.throwExpression(P.RangeError$range(t3, 0, null, "end", null)); |
| 12530 if (t2 > t3) |
| 12531 H.throwExpression(P.RangeError$range(t2, 0, t3, "start", null)); |
| 12532 } |
12372 C.JSArray_methods.addAll$1(args, t1.take$1(0, $length)); | 12533 C.JSArray_methods.addAll$1(args, t1.take$1(0, $length)); |
12373 this.callMethod$2("splice", args); | 12534 this.callMethod$2("splice", args); |
12374 }, | 12535 }, |
12375 setRange$3: function($receiver, start, end, iterable) { | 12536 setRange$3: function($receiver, start, end, iterable) { |
12376 return this.setRange$4($receiver, start, end, iterable, 0); | 12537 return this.setRange$4($receiver, start, end, iterable, 0); |
12377 }, | 12538 }, |
12378 static: {JsArray__checkRange: function(start, end, $length) { | 12539 static: {JsArray__checkRange: function(start, end, $length) { |
12379 if (start > $length) | 12540 if (start > $length) |
12380 throw H.wrapException(P.RangeError$range(start, 0, $length, null, nu
ll)); | 12541 throw H.wrapException(P.RangeError$range(start, 0, $length, null, nu
ll)); |
12381 if (end < start || end > $length) | 12542 if (end < start || end > $length) |
12382 throw H.wrapException(P.RangeError$range(end, start, $length, null,
null)); | 12543 throw H.wrapException(P.RangeError$range(end, start, $length, null,
null)); |
12383 }} | 12544 }} |
12384 }, | 12545 }, |
12385 JsObject_ListMixin: { | 12546 JsObject_ListMixin: { |
12386 "^": "JsObject+ListMixin;", | 12547 "^": "JsObject+ListMixin;", |
12387 $isList: 1, | 12548 $isList: 1, |
12388 $asList: null, | 12549 $asList: null, |
12389 $isEfficientLength: 1 | 12550 $isEfficientLength: 1 |
12390 }, | 12551 }, |
12391 _convertToJS_closure: { | 12552 _convertToJS_closure: { |
12392 "^": "Closure:0;", | 12553 "^": "Closure:0;", |
12393 call$1: function(o) { | 12554 call$1: function(o) { |
12394 var jsFunction = function(_call, f, captureThis) { | 12555 var jsFunction = function(_call, f, captureThis) { |
12395 return function() { | 12556 return function() { |
12396 return _call(f, captureThis, this, Array.prototype.slice.apply(argum
ents)); | 12557 return _call(f, captureThis, this, Array.prototype.slice.apply(argum
ents)); |
12397 }; | 12558 }; |
12398 }(P._callDartFunction, o, false); | 12559 }(P._callDartFunction, o, false); |
12399 P._defineProperty(jsFunction, $.$get$_DART_CLOSURE_PROPERTY_NAME(), o); | 12560 P._defineProperty(jsFunction, $.$get$DART_CLOSURE_PROPERTY_NAME(), o); |
12400 return jsFunction; | 12561 return jsFunction; |
12401 } | 12562 } |
12402 }, | 12563 }, |
12403 _convertToJS_closure0: { | 12564 _convertToJS_closure0: { |
12404 "^": "Closure:0;_captured_ctor_0", | 12565 "^": "Closure:0;ctor", |
12405 call$1: function(o) { | 12566 call$1: function(o) { |
12406 return new this._captured_ctor_0(o); | 12567 return new this.ctor(o); |
12407 } | 12568 } |
12408 }, | 12569 }, |
12409 _wrapToDart_closure: { | 12570 _wrapToDart_closure: { |
12410 "^": "Closure:0;", | 12571 "^": "Closure:0;", |
12411 call$1: function(o) { | 12572 call$1: function(o) { |
12412 return new P.JsFunction(o); | 12573 return new P.JsFunction(o); |
12413 } | 12574 } |
12414 }, | 12575 }, |
12415 _wrapToDart_closure0: { | 12576 _wrapToDart_closure0: { |
12416 "^": "Closure:0;", | 12577 "^": "Closure:0;", |
12417 call$1: function(o) { | 12578 call$1: function(o) { |
12418 return H.setRuntimeTypeInfo(new P.JsArray(o), [null]); | 12579 return H.setRuntimeTypeInfo(new P.JsArray(o), [null]); |
12419 } | 12580 } |
12420 }, | 12581 }, |
12421 _wrapToDart_closure1: { | 12582 _wrapToDart_closure1: { |
12422 "^": "Closure:0;", | 12583 "^": "Closure:0;", |
12423 call$1: function(o) { | 12584 call$1: function(o) { |
12424 return new P.JsObject(o); | 12585 return new P.JsObject(o); |
12425 } | 12586 } |
12426 } | 12587 } |
12427 }], ["dart.math", "dart:math",, P, { | 12588 }], ["dart.math", "dart:math",, P, { |
12428 "^": "", | 12589 "^": "", |
12429 _JenkinsSmiHash_combine0: function(hash, value) { | |
12430 hash = 536870911 & hash + value; | |
12431 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); | |
12432 return hash ^ hash >>> 6; | |
12433 }, | |
12434 _JenkinsSmiHash_finish0: function(hash) { | |
12435 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); | |
12436 hash ^= hash >>> 11; | |
12437 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); | |
12438 }, | |
12439 max: [function(a, b) { | 12590 max: [function(a, b) { |
12440 if (typeof a !== "number") | 12591 if (typeof a !== "number") |
12441 throw H.wrapException(P.ArgumentError$(a)); | 12592 throw H.wrapException(P.ArgumentError$(a)); |
12442 if (typeof b !== "number") | 12593 if (typeof b !== "number") |
12443 throw H.wrapException(P.ArgumentError$(b)); | 12594 throw H.wrapException(P.ArgumentError$(b)); |
12444 if (a > b) | 12595 if (a > b) |
12445 return a; | 12596 return a; |
12446 if (a < b) | 12597 if (a < b) |
12447 return b; | 12598 return b; |
12448 if (typeof b === "number") { | 12599 if (typeof b === "number") { |
12449 if (typeof a === "number") | 12600 if (typeof a === "number") |
12450 if (a === 0) | 12601 if (a === 0) |
12451 return a + b; | 12602 return a + b; |
12452 if (C.JSDouble_methods.get$isNaN(b)) | 12603 if (isNaN(b)) |
12453 return b; | 12604 return b; |
12454 return a; | 12605 return a; |
12455 } | 12606 } |
12456 if (b === 0 && C.JSNumber_methods.get$isNegative(a)) | 12607 if (b === 0 && C.JSNumber_methods.get$isNegative(a)) |
12457 return b; | 12608 return b; |
12458 return a; | 12609 return a; |
12459 }, "call$2", "math__max$closure", 4, 0, 45] | 12610 }, "call$2", "math__max$closure", 4, 0, 44] |
| 12611 }], ["dart.typed_data", "dart:typed_data",, P, { |
| 12612 "^": "", |
| 12613 Uint8List: { |
| 12614 "^": "Object;", |
| 12615 $isList: 1, |
| 12616 $asList: function() { |
| 12617 return [P.$int]; |
| 12618 }, |
| 12619 $isTypedData: 1, |
| 12620 $isEfficientLength: 1 |
| 12621 } |
12460 }], ["dart.typed_data.implementation", "dart:_native_typed_data",, H, { | 12622 }], ["dart.typed_data.implementation", "dart:_native_typed_data",, H, { |
12461 "^": "", | 12623 "^": "", |
| 12624 _checkValidRange: function(start, end, $length) { |
| 12625 var t1; |
| 12626 if (!(start >>> 0 !== start)) |
| 12627 t1 = end >>> 0 !== end || start > end || end > $length; |
| 12628 else |
| 12629 t1 = true; |
| 12630 if (t1) |
| 12631 throw H.wrapException(H.diagnoseRangeError(start, end, $length)); |
| 12632 return end; |
| 12633 }, |
12462 NativeByteBuffer: { | 12634 NativeByteBuffer: { |
12463 "^": "Interceptor;", | 12635 "^": "Interceptor;", |
12464 $isNativeByteBuffer: 1, | 12636 $isNativeByteBuffer: 1, |
12465 "%": "ArrayBuffer" | 12637 "%": "ArrayBuffer" |
12466 }, | 12638 }, |
12467 NativeTypedData: { | 12639 NativeTypedData: { |
12468 "^": "Interceptor;", | 12640 "^": "Interceptor;", |
12469 _invalidPosition$2: function(receiver, position, $length) { | 12641 _invalidPosition$3: function(receiver, position, $length, $name) { |
12470 throw H.wrapException(P.RangeError$range(position, 0, $length, null, nul
l)); | 12642 throw H.wrapException(P.RangeError$range(position, 0, $length, $name, nu
ll)); |
12471 }, | 12643 }, |
12472 _checkPosition$2: function(receiver, position, $length) { | 12644 _checkPosition$3: function(receiver, position, $length, $name) { |
12473 if (position >>> 0 !== position || position > $length) | 12645 if (position >>> 0 !== position || position > $length) |
12474 this._invalidPosition$2(receiver, position, $length); | 12646 this._invalidPosition$3(receiver, position, $length, $name); |
12475 }, | |
12476 _checkSublistArguments$3: function(receiver, start, end, $length) { | |
12477 this._checkPosition$2(receiver, start, $length); | |
12478 this._checkPosition$2(receiver, end, $length); | |
12479 if (start > end) | |
12480 throw H.wrapException(P.RangeError$range(start, 0, end, null, null)); | |
12481 return end; | |
12482 }, | 12647 }, |
12483 $isNativeTypedData: 1, | 12648 $isNativeTypedData: 1, |
12484 $isTypedData: 1, | 12649 $isTypedData: 1, |
12485 "%": ";ArrayBufferView;NativeTypedArray|NativeTypedArray_ListMixin|NativeT
ypedArray_ListMixin_FixedLengthListMixin|NativeTypedArrayOfDouble|NativeTypedArr
ay_ListMixin0|NativeTypedArray_ListMixin_FixedLengthListMixin0|NativeTypedArrayO
fInt" | 12650 "%": ";ArrayBufferView;NativeTypedArray|NativeTypedArray_ListMixin|NativeT
ypedArray_ListMixin_FixedLengthListMixin|NativeTypedArrayOfDouble|NativeTypedArr
ay_ListMixin0|NativeTypedArray_ListMixin_FixedLengthListMixin0|NativeTypedArrayO
fInt" |
12486 }, | 12651 }, |
12487 NativeByteData: { | 12652 NativeByteData: { |
12488 "^": "NativeTypedData;", | 12653 "^": "NativeTypedData;", |
12489 $isTypedData: 1, | 12654 $isTypedData: 1, |
12490 "%": "DataView" | 12655 "%": "DataView" |
12491 }, | 12656 }, |
12492 NativeTypedArray: { | 12657 NativeTypedArray: { |
12493 "^": "NativeTypedData;", | 12658 "^": "NativeTypedData;", |
12494 get$length: function(receiver) { | 12659 get$length: function(receiver) { |
12495 return receiver.length; | 12660 return receiver.length; |
12496 }, | 12661 }, |
12497 _setRangeFast$4: function(receiver, start, end, source, skipCount) { | 12662 _setRangeFast$4: function(receiver, start, end, source, skipCount) { |
12498 var targetLength, count, sourceLength; | 12663 var targetLength, count, sourceLength; |
12499 targetLength = receiver.length; | 12664 targetLength = receiver.length; |
12500 this._checkPosition$2(receiver, start, targetLength); | 12665 this._checkPosition$3(receiver, start, targetLength, "start"); |
12501 this._checkPosition$2(receiver, end, targetLength); | 12666 this._checkPosition$3(receiver, end, targetLength, "end"); |
12502 if (start > end) | 12667 if (start > end) |
12503 throw H.wrapException(P.RangeError$range(start, 0, end, null, null)); | 12668 throw H.wrapException(P.RangeError$range(start, 0, end, null, null)); |
12504 count = end - start; | 12669 count = end - start; |
12505 sourceLength = source.length; | 12670 sourceLength = source.length; |
12506 if (sourceLength - skipCount < count) | 12671 if (sourceLength - skipCount < count) |
12507 throw H.wrapException(new P.StateError("Not enough elements")); | 12672 throw H.wrapException(new P.StateError("Not enough elements")); |
12508 if (skipCount !== 0 || sourceLength !== count) | 12673 if (skipCount !== 0 || sourceLength !== count) |
12509 source = source.subarray(skipCount, skipCount + count); | 12674 source = source.subarray(skipCount, skipCount + count); |
12510 receiver.set(source, start); | 12675 receiver.set(source, start); |
12511 }, | 12676 }, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12696 NativeUint8List: { | 12861 NativeUint8List: { |
12697 "^": "NativeTypedArrayOfInt;", | 12862 "^": "NativeTypedArrayOfInt;", |
12698 get$length: function(receiver) { | 12863 get$length: function(receiver) { |
12699 return receiver.length; | 12864 return receiver.length; |
12700 }, | 12865 }, |
12701 $index: function(receiver, index) { | 12866 $index: function(receiver, index) { |
12702 if (index >>> 0 !== index || index >= receiver.length) | 12867 if (index >>> 0 !== index || index >= receiver.length) |
12703 H.throwExpression(H.diagnoseIndexError(receiver, index)); | 12868 H.throwExpression(H.diagnoseIndexError(receiver, index)); |
12704 return receiver[index]; | 12869 return receiver[index]; |
12705 }, | 12870 }, |
| 12871 sublist$2: function(receiver, start, end) { |
| 12872 return new Uint8Array(receiver.subarray(start, H._checkValidRange(start,
end, receiver.length))); |
| 12873 }, |
| 12874 $isNativeUint8List: 1, |
12706 $isTypedData: 1, | 12875 $isTypedData: 1, |
12707 $isList: 1, | 12876 $isList: 1, |
12708 $asList: function() { | 12877 $asList: function() { |
12709 return [P.$int]; | 12878 return [P.$int]; |
12710 }, | 12879 }, |
12711 $isEfficientLength: 1, | 12880 $isEfficientLength: 1, |
12712 "%": ";Uint8Array" | 12881 "%": ";Uint8Array" |
12713 } | 12882 } |
12714 }], ["dart2js._js_primitives", "dart:_js_primitives",, H, { | 12883 }], ["dart2js._js_primitives", "dart:_js_primitives",, H, { |
12715 "^": "", | 12884 "^": "", |
(...skipping 15 matching lines...) Expand all Loading... |
12731 throw "Unable to print message: " + String(string); | 12900 throw "Unable to print message: " + String(string); |
12732 } | 12901 } |
12733 }], ["frame", "package:stack_trace/src/frame.dart",, S, { | 12902 }], ["frame", "package:stack_trace/src/frame.dart",, S, { |
12734 "^": "", | 12903 "^": "", |
12735 Frame: { | 12904 Frame: { |
12736 "^": "Object;uri<,line<,column<,member<", | 12905 "^": "Object;uri<,line<,column<,member<", |
12737 get$isCore: function() { | 12906 get$isCore: function() { |
12738 return this.uri.scheme === "dart"; | 12907 return this.uri.scheme === "dart"; |
12739 }, | 12908 }, |
12740 get$library: function() { | 12909 get$library: function() { |
12741 return $.$get$context0().prettyUri$1(this.uri); | 12910 var t1 = this.uri; |
| 12911 if (t1.scheme === "data") |
| 12912 return "data:..."; |
| 12913 return $.$get$context0().prettyUri$1(t1); |
12742 }, | 12914 }, |
12743 get$$package: function() { | 12915 get$$package: function() { |
12744 var t1 = this.uri; | 12916 var t1 = this.uri; |
12745 if (t1.scheme !== "package") | 12917 if (t1.scheme !== "package") |
12746 return; | 12918 return; |
12747 return C.JSArray_methods.get$first(t1._path.split("/")); | 12919 return C.JSArray_methods.get$first(t1._path.split("/")); |
12748 }, | 12920 }, |
12749 get$location: function(_) { | 12921 get$location: function(_) { |
12750 var t1, t2; | 12922 var t1, t2; |
12751 t1 = this.line; | 12923 t1 = this.line; |
12752 if (t1 == null) | 12924 if (t1 == null) |
12753 return $.$get$context0().prettyUri$1(this.uri); | 12925 return this.get$library(); |
12754 t2 = this.column; | 12926 t2 = this.column; |
12755 if (t2 == null) | 12927 if (t2 == null) |
12756 return $.$get$context0().prettyUri$1(this.uri) + " " + H.S(t1); | 12928 return this.get$library() + " " + H.S(t1); |
12757 return $.$get$context0().prettyUri$1(this.uri) + " " + H.S(t1) + ":" + H
.S(t2); | 12929 return this.get$library() + " " + H.S(t1) + ":" + H.S(t2); |
12758 }, | 12930 }, |
12759 toString$0: function(_) { | 12931 toString$0: function(_) { |
12760 return this.get$location(this) + " in " + H.S(this.member); | 12932 return this.get$location(this) + " in " + H.S(this.member); |
12761 }, | 12933 }, |
12762 static: {Frame_Frame$parseVM: function(frame) { | 12934 static: {Frame_Frame$parseVM: function(frame) { |
12763 var match, t1, t2, member, uri, lineAndColumn, line; | 12935 return S.Frame__catchFormatException(frame, new S.closure0(frame)); |
12764 if (J.$eq$(frame, "...")) | |
12765 return new S.Frame(P.Uri_Uri(null, null, null, null, null, null, nul
l, "", ""), null, null, "..."); | |
12766 match = $.$get$_vmFrame().firstMatch$1(frame); | |
12767 if (match == null) | |
12768 throw H.wrapException(new P.FormatException("Couldn't parse VM stack
trace line '" + H.S(frame) + "'.", null, null)); | |
12769 t1 = match._match; | |
12770 if (1 >= t1.length) | |
12771 return H.ioore(t1, 1); | |
12772 t2 = J.replaceAll$2$s(t1[1], $.$get$_asyncBody(), "<async>"); | |
12773 H.checkString("<fn>"); | |
12774 member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>"
); | |
12775 if (2 >= t1.length) | |
12776 return H.ioore(t1, 2); | |
12777 uri = P.Uri_parse(t1[2], 0, null); | |
12778 if (3 >= t1.length) | |
12779 return H.ioore(t1, 3); | |
12780 lineAndColumn = J.split$1$s(t1[3], ":"); | |
12781 line = lineAndColumn.length > 1 ? H.Primitives_parseInt(lineAndColumn[
1], null, null) : null; | |
12782 return new S.Frame(uri, line, lineAndColumn.length > 2 ? H.Primitives_
parseInt(lineAndColumn[2], null, null) : null, member); | |
12783 }, Frame_Frame$parseV8: function(frame) { | 12936 }, Frame_Frame$parseV8: function(frame) { |
12784 var match, t1, t2, t3, t4; | 12937 return S.Frame__catchFormatException(frame, new S.closure4(frame)); |
12785 match = $.$get$_v8Frame().firstMatch$1(frame); | 12938 }, Frame_Frame$parseFirefox: function(frame) { |
12786 if (match == null) | 12939 return S.Frame__catchFormatException(frame, new S.closure3(frame)); |
12787 throw H.wrapException(new P.FormatException("Couldn't parse V8 stack
trace line '" + H.S(frame) + "'.", null, null)); | 12940 }, Frame_Frame$parseFriendly: function(frame) { |
12788 t1 = new S.Frame_Frame$parseV8_parseLocation(frame); | 12941 return S.Frame__catchFormatException(frame, new S.closure1(frame)); |
12789 t2 = match._match; | |
12790 t3 = t2.length; | |
12791 if (2 >= t3) | |
12792 return H.ioore(t2, 2); | |
12793 t4 = t2[2]; | |
12794 if (t4 != null) { | |
12795 t2 = J.replaceAll$2$s(t2[1], "<anonymous>", "<fn>"); | |
12796 H.checkString("<fn>"); | |
12797 return t1.call$2(t4, H.stringReplaceAllUnchecked(t2, "Anonymous func
tion", "<fn>")); | |
12798 } else { | |
12799 if (3 >= t3) | |
12800 return H.ioore(t2, 3); | |
12801 return t1.call$2(t2[3], "<fn>"); | |
12802 } | |
12803 }, Frame__uriOrPathToUri: function(uriOrPath) { | 12942 }, Frame__uriOrPathToUri: function(uriOrPath) { |
12804 var t1 = J.getInterceptor$asx(uriOrPath); | 12943 var t1 = J.getInterceptor$asx(uriOrPath); |
12805 if (t1.contains$1(uriOrPath, $.$get$Frame__uriRegExp()) === true) | 12944 if (t1.contains$1(uriOrPath, $.$get$Frame__uriRegExp()) === true) |
12806 return P.Uri_parse(uriOrPath, 0, null); | 12945 return P.Uri_parse(uriOrPath, 0, null); |
12807 else if (t1.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()) === t
rue) | 12946 else if (t1.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()) === t
rue) |
12808 return P.Uri_Uri$file(uriOrPath, true); | 12947 return P.Uri_Uri$file(uriOrPath, true); |
12809 else if (t1.startsWith$1(uriOrPath, "/")) | 12948 else if (t1.startsWith$1(uriOrPath, "/")) |
12810 return P.Uri_Uri$file(uriOrPath, false); | 12949 return P.Uri_Uri$file(uriOrPath, false); |
12811 if (t1.contains$1(uriOrPath, "\\") === true) | 12950 if (t1.contains$1(uriOrPath, "\\") === true) |
12812 return $.$get$windows().toUri$1(uriOrPath); | 12951 return $.$get$windows().toUri$1(uriOrPath); |
12813 return P.Uri_parse(uriOrPath, 0, null); | 12952 return P.Uri_parse(uriOrPath, 0, null); |
| 12953 }, Frame__catchFormatException: function(text, body) { |
| 12954 var t1, exception; |
| 12955 try { |
| 12956 t1 = body.call$0(); |
| 12957 return t1; |
| 12958 } catch (exception) { |
| 12959 if (H.unwrapException(exception) instanceof P.FormatException) |
| 12960 return new N.UnparsedFrame(P.Uri_Uri(null, null, "unparsed", null,
null, null, null, "", ""), null, null, false, "unparsed", null, "unparsed", tex
t); |
| 12961 else |
| 12962 throw exception; |
| 12963 } |
12814 }} | 12964 }} |
12815 }, | 12965 }, |
12816 Frame_Frame$parseV8_parseLocation: { | 12966 closure0: { |
12817 "^": "Closure:3;_captured_frame_0", | 12967 "^": "Closure:1;frame", |
| 12968 call$0: function() { |
| 12969 var t1, match, t2, member, uri, lineAndColumn, line; |
| 12970 t1 = this.frame; |
| 12971 if (J.$eq$(t1, "...")) |
| 12972 return new S.Frame(P.Uri_Uri(null, null, null, null, null, null, null,
"", ""), null, null, "..."); |
| 12973 match = $.$get$_vmFrame().firstMatch$1(t1); |
| 12974 if (match == null) |
| 12975 return new N.UnparsedFrame(P.Uri_Uri(null, null, "unparsed", null, nul
l, null, null, "", ""), null, null, false, "unparsed", null, "unparsed", t1); |
| 12976 t1 = match._match; |
| 12977 if (1 >= t1.length) |
| 12978 return H.ioore(t1, 1); |
| 12979 t2 = J.replaceAll$2$s(t1[1], $.$get$_asyncBody(), "<async>"); |
| 12980 H.checkString("<fn>"); |
| 12981 member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>"); |
| 12982 if (2 >= t1.length) |
| 12983 return H.ioore(t1, 2); |
| 12984 uri = P.Uri_parse(t1[2], 0, null); |
| 12985 if (3 >= t1.length) |
| 12986 return H.ioore(t1, 3); |
| 12987 lineAndColumn = J.split$1$s(t1[3], ":"); |
| 12988 line = lineAndColumn.length > 1 ? H.Primitives_parseInt(lineAndColumn[1]
, null, null) : null; |
| 12989 return new S.Frame(uri, line, lineAndColumn.length > 2 ? H.Primitives_pa
rseInt(lineAndColumn[2], null, null) : null, member); |
| 12990 } |
| 12991 }, |
| 12992 closure4: { |
| 12993 "^": "Closure:1;frame", |
| 12994 call$0: function() { |
| 12995 var t1, match, t2, t3, t4; |
| 12996 t1 = this.frame; |
| 12997 match = $.$get$_v8Frame().firstMatch$1(t1); |
| 12998 if (match == null) |
| 12999 return new N.UnparsedFrame(P.Uri_Uri(null, null, "unparsed", null, nul
l, null, null, "", ""), null, null, false, "unparsed", null, "unparsed", t1); |
| 13000 t1 = new S._parseLocation(t1); |
| 13001 t2 = match._match; |
| 13002 t3 = t2.length; |
| 13003 if (2 >= t3) |
| 13004 return H.ioore(t2, 2); |
| 13005 t4 = t2[2]; |
| 13006 if (t4 != null) { |
| 13007 t2 = J.replaceAll$2$s(t2[1], "<anonymous>", "<fn>"); |
| 13008 H.checkString("<fn>"); |
| 13009 return t1.call$2(t4, H.stringReplaceAllUnchecked(t2, "Anonymous functi
on", "<fn>")); |
| 13010 } else { |
| 13011 if (3 >= t3) |
| 13012 return H.ioore(t2, 3); |
| 13013 return t1.call$2(t2[3], "<fn>"); |
| 13014 } |
| 13015 } |
| 13016 }, |
| 13017 _parseLocation: { |
| 13018 "^": "Closure:3;frame", |
12818 call$2: function($location, member) { | 13019 call$2: function($location, member) { |
12819 var t1, evalMatch, t2, urlMatch, t3; | 13020 var t1, evalMatch, t2, urlMatch, t3; |
12820 t1 = $.$get$_v8EvalLocation(); | 13021 t1 = $.$get$_v8EvalLocation(); |
12821 evalMatch = t1.firstMatch$1($location); | 13022 evalMatch = t1.firstMatch$1($location); |
12822 for (; evalMatch != null;) { | 13023 for (; evalMatch != null;) { |
12823 t2 = evalMatch._match; | 13024 t2 = evalMatch._match; |
12824 if (1 >= t2.length) | 13025 if (1 >= t2.length) |
12825 return H.ioore(t2, 1); | 13026 return H.ioore(t2, 1); |
12826 $location = t2[1]; | 13027 $location = t2[1]; |
12827 evalMatch = t1.firstMatch$1($location); | 13028 evalMatch = t1.firstMatch$1($location); |
12828 } | 13029 } |
| 13030 if (J.$eq$($location, "native")) |
| 13031 return new S.Frame(P.Uri_parse("native", 0, null), null, null, member)
; |
12829 urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location); | 13032 urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location); |
12830 if (urlMatch == null) | 13033 if (urlMatch == null) |
12831 throw H.wrapException(new P.FormatException("Couldn't parse V8 stack t
race line '" + H.S(this._captured_frame_0) + "'.", null, null)); | 13034 return new N.UnparsedFrame(P.Uri_Uri(null, null, "unparsed", null, nul
l, null, null, "", ""), null, null, false, "unparsed", null, "unparsed", this.fr
ame); |
12832 t1 = urlMatch._match; | 13035 t1 = urlMatch._match; |
12833 if (1 >= t1.length) | 13036 if (1 >= t1.length) |
12834 return H.ioore(t1, 1); | 13037 return H.ioore(t1, 1); |
12835 t2 = S.Frame__uriOrPathToUri(t1[1]); | 13038 t2 = S.Frame__uriOrPathToUri(t1[1]); |
12836 if (2 >= t1.length) | 13039 if (2 >= t1.length) |
12837 return H.ioore(t1, 2); | 13040 return H.ioore(t1, 2); |
12838 t3 = H.Primitives_parseInt(t1[2], null, null); | 13041 t3 = H.Primitives_parseInt(t1[2], null, null); |
12839 if (3 >= t1.length) | 13042 if (3 >= t1.length) |
12840 return H.ioore(t1, 3); | 13043 return H.ioore(t1, 3); |
12841 return new S.Frame(t2, t3, H.Primitives_parseInt(t1[3], null, null), mem
ber); | 13044 return new S.Frame(t2, t3, H.Primitives_parseInt(t1[3], null, null), mem
ber); |
12842 } | 13045 } |
| 13046 }, |
| 13047 closure3: { |
| 13048 "^": "Closure:1;frame", |
| 13049 call$0: function() { |
| 13050 var t1, match, uri, t2, t3, member, line, column; |
| 13051 t1 = this.frame; |
| 13052 match = $.$get$_firefoxSafariFrame().firstMatch$1(t1); |
| 13053 if (match == null) |
| 13054 return new N.UnparsedFrame(P.Uri_Uri(null, null, "unparsed", null, nul
l, null, null, "", ""), null, null, false, "unparsed", null, "unparsed", t1); |
| 13055 t1 = match._match; |
| 13056 if (3 >= t1.length) |
| 13057 return H.ioore(t1, 3); |
| 13058 uri = S.Frame__uriOrPathToUri(t1[3]); |
| 13059 t2 = t1.length; |
| 13060 if (1 >= t2) |
| 13061 return H.ioore(t1, 1); |
| 13062 t3 = t1[1]; |
| 13063 if (t3 != null) { |
| 13064 if (2 >= t2) |
| 13065 return H.ioore(t1, 2); |
| 13066 t2 = C.JSString_methods.allMatches$1("/", t1[2]); |
| 13067 member = J.$add$ns(t3, C.JSArray_methods.join$0(P.List_List$filled(t2.
get$length(t2), ".<fn>", false, null))); |
| 13068 if (J.$eq$(member, "")) |
| 13069 member = "<fn>"; |
| 13070 member = J.replaceFirst$2$s(member, $.$get$_initialDot(), ""); |
| 13071 } else |
| 13072 member = "<fn>"; |
| 13073 if (4 >= t1.length) |
| 13074 return H.ioore(t1, 4); |
| 13075 if (J.$eq$(t1[4], "")) |
| 13076 line = null; |
| 13077 else { |
| 13078 if (4 >= t1.length) |
| 13079 return H.ioore(t1, 4); |
| 13080 line = H.Primitives_parseInt(t1[4], null, null); |
| 13081 } |
| 13082 if (5 >= t1.length) |
| 13083 return H.ioore(t1, 5); |
| 13084 t2 = t1[5]; |
| 13085 if (t2 == null || J.$eq$(t2, "")) |
| 13086 column = null; |
| 13087 else { |
| 13088 if (5 >= t1.length) |
| 13089 return H.ioore(t1, 5); |
| 13090 column = H.Primitives_parseInt(t1[5], null, null); |
| 13091 } |
| 13092 return new S.Frame(uri, line, column, member); |
| 13093 } |
| 13094 }, |
| 13095 closure1: { |
| 13096 "^": "Closure:1;frame", |
| 13097 call$0: function() { |
| 13098 var t1, match, uri, t2, line, column; |
| 13099 t1 = this.frame; |
| 13100 match = $.$get$_friendlyFrame().firstMatch$1(t1); |
| 13101 if (match == null) |
| 13102 throw H.wrapException(new P.FormatException("Couldn't parse package:st
ack_trace stack trace line '" + H.S(t1) + "'.", null, null)); |
| 13103 t1 = match._match; |
| 13104 if (1 >= t1.length) |
| 13105 return H.ioore(t1, 1); |
| 13106 uri = P.Uri_parse(t1[1], 0, null); |
| 13107 if (uri.scheme === "") { |
| 13108 t2 = $.$get$context0(); |
| 13109 uri = t2.toUri$1(t2.absolute$7(0, t2.fromUri$1(uri), null, null, null,
null, null, null)); |
| 13110 } |
| 13111 if (2 >= t1.length) |
| 13112 return H.ioore(t1, 2); |
| 13113 t2 = t1[2]; |
| 13114 line = t2 == null ? null : H.Primitives_parseInt(t2, null, null); |
| 13115 if (3 >= t1.length) |
| 13116 return H.ioore(t1, 3); |
| 13117 t2 = t1[3]; |
| 13118 column = t2 == null ? null : H.Primitives_parseInt(t2, null, null); |
| 13119 if (4 >= t1.length) |
| 13120 return H.ioore(t1, 4); |
| 13121 return new S.Frame(uri, line, column, t1[4]); |
| 13122 } |
12843 } | 13123 } |
12844 }], ["html_common", "dart:html_common",, P, { | 13124 }], ["", "package:stream_channel/src/guarantee_channel.dart",, K, { |
12845 "^": "", | 13125 "^": "", |
12846 _convertDartToNative_PrepareForStructuredClone: function(value) { | 13126 GuaranteeChannel: { |
12847 var copies, copy; | 13127 "^": "StreamChannelMixin;_sink,_streamController,_guarantee_channel$_subsc
ription,_disconnected", |
12848 copies = []; | 13128 _onSinkDisconnected$0: function() { |
12849 copy = new P._convertDartToNative_PrepareForStructuredClone_walk(new P._co
nvertDartToNative_PrepareForStructuredClone_findSlot([], copies), new P._convert
DartToNative_PrepareForStructuredClone_readSlot(copies), new P._convertDartToNat
ive_PrepareForStructuredClone_writeSlot(copies)).call$1(value); | 13129 this._disconnected = true; |
12850 new P._convertDartToNative_PrepareForStructuredClone_cleanupSlots().call$0
(); | 13130 var t1 = this._guarantee_channel$_subscription; |
12851 return copy; | 13131 if (t1 != null) |
12852 }, | 13132 t1.cancel$0(); |
12853 convertNativeToDart_AcceptStructuredClone: function(object, mustCopy) { | 13133 this._streamController.close$0(0); |
12854 var copies = []; | 13134 }, |
12855 return new P.convertNativeToDart_AcceptStructuredClone_walk(mustCopy, new
P.convertNativeToDart_AcceptStructuredClone_findSlot([], copies), new P.convertN
ativeToDart_AcceptStructuredClone_readSlot(copies), new P.convertNativeToDart_Ac
ceptStructuredClone_writeSlot(copies)).call$1(object); | 13135 GuaranteeChannel$3$allowSinkErrors: function(innerSink, allowSinkErrors, _
box_0, $T) { |
12856 }, | 13136 this._sink = H.setRuntimeTypeInfo(new K._GuaranteeSink(innerSink, this,
H.setRuntimeTypeInfo(new P._AsyncCompleter(H.setRuntimeTypeInfo(new P._Future(0,
$.Zone__current, null), [null])), [null]), false, false, null, null, true), [$T
]); |
12857 _convertDartToNative_PrepareForStructuredClone_findSlot: { | 13137 this._streamController = P.StreamController_StreamController(null, new K
.GuaranteeChannel_closure(_box_0, this), null, null, true, $T); |
12858 "^": "Closure:15;_captured_values_1,_captured_copies_2", | 13138 }, |
12859 call$1: function(value) { | 13139 static: {GuaranteeChannel$: function(innerStream, innerSink, allowSinkErro
rs, $T) { |
| 13140 var t1, t2; |
| 13141 t1 = {}; |
| 13142 t1.innerStream = innerStream; |
| 13143 t2 = H.setRuntimeTypeInfo(new K.GuaranteeChannel(null, null, null, fal
se), [$T]); |
| 13144 t2.GuaranteeChannel$3$allowSinkErrors(innerSink, true, t1, $T); |
| 13145 return t2; |
| 13146 }} |
| 13147 }, |
| 13148 GuaranteeChannel_closure: { |
| 13149 "^": "Closure:1;_box_0,$this", |
| 13150 call$0: function() { |
| 13151 var t1, t2, t3; |
| 13152 t1 = this.$this; |
| 13153 if (t1._disconnected) |
| 13154 return; |
| 13155 t2 = this._box_0.innerStream; |
| 13156 t3 = t1._streamController; |
| 13157 t1._guarantee_channel$_subscription = t2.listen$3$onDone$onError(t3.get$
add(t3), new K.GuaranteeChannel__closure(t1), t1._streamController.get$addError(
)); |
| 13158 } |
| 13159 }, |
| 13160 GuaranteeChannel__closure: { |
| 13161 "^": "Closure:1;$this", |
| 13162 call$0: [function() { |
| 13163 var t1 = this.$this; |
| 13164 t1._sink._onStreamDisconnected$0(); |
| 13165 t1._streamController.close$0(0); |
| 13166 }, null, null, 0, 0, null, "call"] |
| 13167 }, |
| 13168 _GuaranteeSink: { |
| 13169 "^": "Object;_inner,_channel,_doneCompleter,_disconnected,_closed,_addStre
amSubscription,_addStreamCompleter,_allowErrors", |
| 13170 add$1: function(_, data) { |
| 13171 var t1; |
| 13172 if (this._closed) |
| 13173 throw H.wrapException(new P.StateError("Cannot add event after closing
.")); |
| 13174 if (this._addStreamSubscription != null) |
| 13175 throw H.wrapException(new P.StateError("Cannot add event while adding
stream.")); |
| 13176 if (this._disconnected) |
| 13177 return; |
| 13178 t1 = this._inner._async$_target; |
| 13179 if (t1._state >= 4) |
| 13180 H.throwExpression(t1._badEventState$0()); |
| 13181 t1._async$_add$1(data); |
| 13182 }, |
| 13183 addError$2: [function(error, stackTrace) { |
| 13184 if (this._closed) |
| 13185 throw H.wrapException(new P.StateError("Cannot add event after closing
.")); |
| 13186 if (this._addStreamSubscription != null) |
| 13187 throw H.wrapException(new P.StateError("Cannot add event while adding
stream.")); |
| 13188 if (this._disconnected) |
| 13189 return; |
| 13190 this._addError$2(error, stackTrace); |
| 13191 }, function(error) { |
| 13192 return this.addError$2(error, null); |
| 13193 }, "addError$1", "call$2", "call$1", "get$addError", 2, 2, 6, 5, 1, 2], |
| 13194 _addError$2: [function(error, stackTrace) { |
| 13195 this._inner._async$_target.addError$2(error, stackTrace); |
| 13196 return; |
| 13197 }, function(error) { |
| 13198 return this._addError$2(error, null); |
| 13199 }, "_addError$1", "call$2", "call$1", "get$_addError", 2, 2, 6, 5, 1, 2], |
| 13200 addStream$1: function(stream) { |
| 13201 var t1, t2, t3; |
| 13202 if (this._closed) |
| 13203 throw H.wrapException(new P.StateError("Cannot add stream after closin
g.")); |
| 13204 if (this._addStreamSubscription != null) |
| 13205 throw H.wrapException(new P.StateError("Cannot add stream while adding
stream.")); |
| 13206 if (this._disconnected) { |
| 13207 t1 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [nu
ll]); |
| 13208 t1._asyncComplete$1(null); |
| 13209 return t1; |
| 13210 } |
| 13211 this._addStreamCompleter = H.setRuntimeTypeInfo(new P._SyncCompleter(H.s
etRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [null])), [null]); |
| 13212 t1 = this._inner; |
| 13213 t1 = t1.get$add(t1); |
| 13214 t2 = this.get$_addError(); |
| 13215 t3 = this._addStreamCompleter; |
| 13216 this._addStreamSubscription = stream.listen$3$onDone$onError(t1, t3.get$
complete(t3), t2); |
| 13217 return this._addStreamCompleter.future.then$1(new K._GuaranteeSink_addSt
ream_closure(this)); |
| 13218 }, |
| 13219 close$0: function(_) { |
| 13220 if (this._addStreamSubscription != null) |
| 13221 throw H.wrapException(new P.StateError("Cannot close sink while adding
stream.")); |
| 13222 if (this._closed) |
| 13223 return this._doneCompleter.future; |
| 13224 this._closed = true; |
| 13225 if (!this._disconnected) { |
| 13226 this._channel._onSinkDisconnected$0(); |
| 13227 this._doneCompleter.complete$1(0, this._inner._async$_target.close$0(0
)); |
| 13228 } |
| 13229 return this._doneCompleter.future; |
| 13230 }, |
| 13231 _onStreamDisconnected$0: function() { |
| 13232 this._disconnected = true; |
| 13233 var t1 = this._doneCompleter; |
| 13234 if (t1.future._state === 0) |
| 13235 t1.complete$0(0); |
| 13236 t1 = this._addStreamSubscription; |
| 13237 if (t1 == null) |
| 13238 return; |
| 13239 this._addStreamCompleter.complete$1(0, t1.cancel$0()); |
| 13240 this._addStreamCompleter = null; |
| 13241 this._addStreamSubscription = null; |
| 13242 } |
| 13243 }, |
| 13244 _GuaranteeSink_addStream_closure: { |
| 13245 "^": "Closure:0;$this", |
| 13246 call$1: [function(_) { |
| 13247 var t1 = this.$this; |
| 13248 t1._addStreamCompleter = null; |
| 13249 t1._addStreamSubscription = null; |
| 13250 }, null, null, 2, 0, null, 9, "call"] |
| 13251 } |
| 13252 }], ["", "host.dart",, M, { |
| 13253 "^": "", |
| 13254 main: [function() { |
| 13255 var testRunner = J.$index$asx($.$get$context(), "testRunner"); |
| 13256 if (testRunner != null) |
| 13257 testRunner.callMethod$2("waitUntilDone", []); |
| 13258 P.runZoned(new M.main_closure(), new M.main_closure0(), null, null); |
| 13259 }, "call$0", "host__main$closure", 0, 0, 2], |
| 13260 _connectToServer: function() { |
| 13261 var currentUrl, t1, webSocket, controller; |
| 13262 currentUrl = P.Uri_parse(window.location.href, 0, null); |
| 13263 t1 = currentUrl._queryParameters; |
| 13264 if (t1 == null) { |
| 13265 t1 = currentUrl._query; |
| 13266 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryStri
ng(t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]); |
| 13267 currentUrl._queryParameters = t1; |
| 13268 } |
| 13269 webSocket = W.WebSocket_WebSocket(J.$index$asx(t1._map, "managerUrl"), nul
l); |
| 13270 controller = B.StreamChannelController$(true, true, null); |
| 13271 t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false),
[null]); |
| 13272 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._eve
ntType, W._wrapZone(new M._connectToServer_closure(controller)), false), [H.getT
ypeArgumentByIndex(t1, 0)])._tryResume$0(); |
| 13273 t1 = controller._local._streamController; |
| 13274 t1.toString; |
| 13275 H.setRuntimeTypeInfo(new P._ControllerStream(t1), [H.getTypeArgumentByInde
x(t1, 0)]).listen$1(new M._connectToServer_closure0(webSocket)); |
| 13276 return D._MultiChannel$(controller._foreign); |
| 13277 }, |
| 13278 _connectToIframe: function(url, id) { |
| 13279 var t1, iframe, controller, readyCompleter; |
| 13280 t1 = document; |
| 13281 iframe = t1.createElement("iframe"); |
| 13282 $.$get$_iframes().$indexSet(0, id, iframe); |
| 13283 J.set$src$x(iframe, url); |
| 13284 document.body.appendChild(iframe); |
| 13285 controller = B.StreamChannelController$(true, true, null); |
| 13286 readyCompleter = H.setRuntimeTypeInfo(new P._AsyncCompleter(H.setRuntimeTy
peInfo(new P._Future(0, $.Zone__current, null), [null])), [null]); |
| 13287 t1 = H.setRuntimeTypeInfo(new W._EventStream(window, "message", false), [n
ull]); |
| 13288 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._eve
ntType, W._wrapZone(new M._connectToIframe_closure(iframe, controller, readyComp
leter)), false), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0(); |
| 13289 t1 = controller._local._streamController; |
| 13290 t1.toString; |
| 13291 H.setRuntimeTypeInfo(new P._ControllerStream(t1), [H.getTypeArgumentByInde
x(t1, 0)]).listen$1(new M._connectToIframe_closure0(iframe, readyCompleter)); |
| 13292 return controller._foreign; |
| 13293 }, |
| 13294 main_closure: { |
| 13295 "^": "Closure:1;", |
| 13296 call$0: [function() { |
| 13297 var serverChannel, t1; |
| 13298 serverChannel = M._connectToServer(); |
| 13299 t1 = serverChannel._mainController._foreign._streamController; |
| 13300 t1.toString; |
| 13301 H.setRuntimeTypeInfo(new P._ControllerStream(t1), [H.getTypeArgumentByIn
dex(t1, 0)]).listen$1(new M.main__closure(serverChannel)); |
| 13302 P.Timer_Timer$periodic(P.Duration$(0, 0, 0, 0, 0, 1), new M.main__closur
e0(serverChannel)); |
| 13303 t1 = J.get$onClick$x(document.querySelector("#play")); |
| 13304 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._e
ventType, W._wrapZone(new M.main__closure1(serverChannel)), false), [H.getTypeAr
gumentByIndex(t1, 0)])._tryResume$0(); |
| 13305 }, null, null, 0, 0, null, "call"] |
| 13306 }, |
| 13307 main__closure: { |
| 13308 "^": "Closure:0;serverChannel", |
| 13309 call$1: [function(message) { |
| 13310 var t1, suiteChannel, iframeChannel; |
| 13311 t1 = J.getInterceptor$asx(message); |
| 13312 if (J.$eq$(t1.$index(message, "command"), "loadSuite")) { |
| 13313 suiteChannel = this.serverChannel.virtualChannel$1(t1.$index(message,
"channel")); |
| 13314 iframeChannel = M._connectToIframe(t1.$index(message, "url"), t1.$inde
x(message, "id")); |
| 13315 suiteChannel.stream.pipe$1(iframeChannel._sink); |
| 13316 t1 = iframeChannel._streamController; |
| 13317 t1.toString; |
| 13318 H.setRuntimeTypeInfo(new P._ControllerStream(t1), [H.getTypeArgumentBy
Index(t1, 0)]).pipe$1(suiteChannel.sink); |
| 13319 } else if (J.$eq$(t1.$index(message, "command"), "displayPause")) { |
| 13320 t1 = document.body; |
| 13321 t1.toString; |
| 13322 W._ElementCssClassSet__add(t1, "paused"); |
| 13323 } else if (J.$eq$(t1.$index(message, "command"), "resume")) { |
| 13324 t1 = document.body; |
| 13325 t1.toString; |
| 13326 W._ElementCssClassSet__remove(t1, "paused"); |
| 13327 } else |
| 13328 J.remove$0$ax($.$get$_iframes().$index(0, t1.$index(message, "id"))); |
| 13329 }, null, null, 2, 0, null, 7, "call"] |
| 13330 }, |
| 13331 main__closure0: { |
| 13332 "^": "Closure:0;serverChannel", |
| 13333 call$1: [function(_) { |
| 13334 return this.serverChannel._mainController._foreign._sink.add$1(0, P.Link
edHashMap__makeLiteral(["command", "ping"])); |
| 13335 }, null, null, 2, 0, null, 9, "call"] |
| 13336 }, |
| 13337 main__closure1: { |
| 13338 "^": "Closure:0;serverChannel", |
| 13339 call$1: [function(_) { |
| 13340 var t1 = document.body; |
| 13341 t1.toString; |
| 13342 W._ElementCssClassSet__remove(t1, "paused"); |
| 13343 this.serverChannel._mainController._foreign._sink.add$1(0, P.LinkedHashM
ap__makeLiteral(["command", "resume"])); |
| 13344 }, null, null, 2, 0, null, 9, "call"] |
| 13345 }, |
| 13346 main_closure0: { |
| 13347 "^": "Closure:3;", |
| 13348 call$2: [function(error, stackTrace) { |
| 13349 P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse
())); |
| 13350 }, null, null, 4, 0, null, 1, 2, "call"] |
| 13351 }, |
| 13352 _connectToServer_closure: { |
| 13353 "^": "Closure:0;controller", |
| 13354 call$1: [function(message) { |
| 13355 this.controller._local._sink.add$1(0, C.JsonCodec_null_null.decode$1(J.g
et$data$x(message))); |
| 13356 }, null, null, 2, 0, null, 7, "call"] |
| 13357 }, |
| 13358 _connectToServer_closure0: { |
| 13359 "^": "Closure:0;webSocket", |
| 13360 call$1: [function(message) { |
| 13361 return this.webSocket.send(C.JsonCodec_null_null.encode$1(message)); |
| 13362 }, null, null, 2, 0, null, 7, "call"] |
| 13363 }, |
| 13364 _connectToIframe_closure: { |
| 13365 "^": "Closure:0;iframe,controller,readyCompleter", |
| 13366 call$1: [function(message) { |
| 13367 var t1, t2, t3; |
| 13368 t1 = J.getInterceptor$x(message); |
| 13369 t2 = t1.get$origin(message); |
| 13370 t3 = window.location; |
| 13371 if (t2 !== (t3 && C.Location_methods).get$origin(t3)) |
| 13372 return; |
| 13373 if (!J.$eq$(J.$index$asx(t1.get$data(message), "href"), J.get$src$x(this
.iframe))) |
| 13374 return; |
| 13375 t1.stopPropagation$0(message); |
| 13376 if (J.$eq$(J.$index$asx(t1.get$data(message), "ready"), true)) |
| 13377 this.readyCompleter.complete$0(0); |
| 13378 else |
| 13379 this.controller._local._sink.add$1(0, J.$index$asx(t1.get$data(message
), "data")); |
| 13380 }, null, null, 2, 0, null, 7, "call"] |
| 13381 }, |
| 13382 _connectToIframe_closure0: { |
| 13383 "^": "Closure:50;iframe,readyCompleter", |
| 13384 call$1: [function(message) { |
| 13385 var $async$goto = 0, $async$completer = new P.Completer_Completer$sync()
, $async$handler = 1, $async$currentError, $async$self = this, t1, t2, t3; |
| 13386 var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode,
$async$result) { |
| 13387 if ($async$errorCode === 1) { |
| 13388 $async$currentError = $async$result; |
| 13389 $async$goto = $async$handler; |
| 13390 } |
| 13391 while (true) |
| 13392 switch ($async$goto) { |
| 13393 case 0: |
| 13394 // Function start |
| 13395 $async$goto = 2; |
| 13396 return P._asyncHelper($async$self.readyCompleter.future, $async$
call$1, $async$completer); |
| 13397 case 2: |
| 13398 // returning from await. |
| 13399 t1 = J.get$contentWindow$x($async$self.iframe); |
| 13400 t2 = C.JsonCodec_null_null.encode$1(message); |
| 13401 t3 = window.location; |
| 13402 J.postMessage$2$x(t1, t2, (t3 && C.Location_methods).get$origin(
t3)); |
| 13403 // implicit return |
| 13404 return P._asyncHelper(null, 0, $async$completer, null); |
| 13405 case 1: |
| 13406 // rethrow |
| 13407 return P._asyncHelper($async$currentError, 1, $async$completer); |
| 13408 } |
| 13409 }); |
| 13410 return P._asyncHelper(null, $async$call$1, $async$completer, null); |
| 13411 }, null, null, 2, 0, null, 7, "call"] |
| 13412 } |
| 13413 }, 1], ["html_common", "dart:html_common",, P, { |
| 13414 "^": "", |
| 13415 convertNativePromiseToDartFuture: function(promise) { |
| 13416 var completer = H.setRuntimeTypeInfo(new P._AsyncCompleter(H.setRuntimeTyp
eInfo(new P._Future(0, $.Zone__current, null), [null])), [null]); |
| 13417 promise.then(H.convertDartClosureToJS(new P.convertNativePromiseToDartFutu
re_closure(completer), 1))["catch"](H.convertDartClosureToJS(new P.convertNative
PromiseToDartFuture_closure0(completer), 1)); |
| 13418 return completer.future; |
| 13419 }, |
| 13420 _StructuredClone: { |
| 13421 "^": "Object;", |
| 13422 findSlot$1: function(value) { |
12860 var t1, $length, i; | 13423 var t1, $length, i; |
12861 t1 = this._captured_values_1; | 13424 t1 = this.values; |
12862 $length = t1.length; | 13425 $length = t1.length; |
12863 for (i = 0; i < $length; ++i) | 13426 for (i = 0; i < $length; ++i) |
12864 if (t1[i] === value) | 13427 if (t1[i] === value) |
12865 return i; | 13428 return i; |
12866 t1.push(value); | 13429 t1.push(value); |
12867 this._captured_copies_2.push(null); | 13430 this.copies.push(null); |
12868 return $length; | 13431 return $length; |
12869 } | 13432 }, |
12870 }, | 13433 walk$1: function(e) { |
12871 _convertDartToNative_PrepareForStructuredClone_readSlot: { | 13434 var t1, t2, slot, t3, t4, copy; |
12872 "^": "Closure:14;_captured_copies_3", | |
12873 call$1: function(i) { | |
12874 var t1 = this._captured_copies_3; | |
12875 if (i >= t1.length) | |
12876 return H.ioore(t1, i); | |
12877 return t1[i]; | |
12878 } | |
12879 }, | |
12880 _convertDartToNative_PrepareForStructuredClone_writeSlot: { | |
12881 "^": "Closure:12;_captured_copies_4", | |
12882 call$2: function(i, x) { | |
12883 var t1 = this._captured_copies_4; | |
12884 if (i >= t1.length) | |
12885 return H.ioore(t1, i); | |
12886 t1[i] = x; | |
12887 } | |
12888 }, | |
12889 _convertDartToNative_PrepareForStructuredClone_cleanupSlots: { | |
12890 "^": "Closure:1;", | |
12891 call$0: function() { | |
12892 } | |
12893 }, | |
12894 _convertDartToNative_PrepareForStructuredClone_walk: { | |
12895 "^": "Closure:0;_captured_findSlot_5,_captured_readSlot_6,_captured_writeS
lot_7", | |
12896 call$1: function(e) { | |
12897 var t1, t2, slot, copy, $length, i; | |
12898 t1 = {}; | 13435 t1 = {}; |
12899 if (e == null) | 13436 if (e == null) |
12900 return e; | 13437 return e; |
12901 if (typeof e === "boolean") | 13438 if (typeof e === "boolean") |
12902 return e; | 13439 return e; |
12903 if (typeof e === "number") | 13440 if (typeof e === "number") |
12904 return e; | 13441 return e; |
12905 if (typeof e === "string") | 13442 if (typeof e === "string") |
12906 return e; | 13443 return e; |
12907 t2 = J.getInterceptor(e); | 13444 t2 = J.getInterceptor(e); |
12908 if (!!t2.$isDateTime) | 13445 if (!!t2.$isDateTime) |
12909 return new Date(e.millisecondsSinceEpoch); | 13446 return new Date(e._core$_value); |
12910 if (!!t2.$isRegExp) | 13447 if (!!t2.$isRegExp) |
12911 throw H.wrapException(new P.UnimplementedError("structured clone of Re
gExp")); | 13448 throw H.wrapException(new P.UnimplementedError("structured clone of Re
gExp")); |
12912 if (!!t2.$isFile) | 13449 if (!!t2.$isFile) |
12913 return e; | 13450 return e; |
12914 if (!!t2.$isBlob) | 13451 if (!!t2.$isBlob) |
12915 return e; | 13452 return e; |
12916 if (!!t2.$isImageData) | 13453 if (!!t2.$isImageData) |
12917 return e; | 13454 return e; |
12918 if (!!t2.$isNativeByteBuffer) | 13455 if (!!t2.$isNativeByteBuffer || !!t2.$isNativeTypedData) |
12919 return e; | |
12920 if (!!t2.$isNativeTypedData) | |
12921 return e; | 13456 return e; |
12922 if (!!t2.$isMap) { | 13457 if (!!t2.$isMap) { |
12923 slot = this._captured_findSlot_5.call$1(e); | 13458 slot = this.findSlot$1(e); |
12924 copy = this._captured_readSlot_6.call$1(slot); | 13459 t3 = this.copies; |
12925 t1._captured_copy_0 = copy; | 13460 t4 = t3.length; |
| 13461 if (slot >= t4) |
| 13462 return H.ioore(t3, slot); |
| 13463 copy = t3[slot]; |
| 13464 t1.copy = copy; |
12926 if (copy != null) | 13465 if (copy != null) |
12927 return copy; | 13466 return copy; |
12928 copy = {}; | 13467 copy = {}; |
12929 t1._captured_copy_0 = copy; | 13468 t1.copy = copy; |
12930 this._captured_writeSlot_7.call$2(slot, copy); | 13469 if (slot >= t4) |
12931 t2.forEach$1(e, new P._convertDartToNative_PrepareForStructuredClone_w
alk_closure(t1, this)); | 13470 return H.ioore(t3, slot); |
12932 return t1._captured_copy_0; | 13471 t3[slot] = copy; |
| 13472 t2.forEach$1(e, new P._StructuredClone_walk_closure(t1, this)); |
| 13473 return t1.copy; |
12933 } | 13474 } |
12934 if (!!t2.$isList) { | 13475 if (!!t2.$isList) { |
12935 $length = t2.get$length(e); | 13476 slot = this.findSlot$1(e); |
12936 slot = this._captured_findSlot_5.call$1(e); | 13477 t1 = this.copies; |
12937 copy = this._captured_readSlot_6.call$1(slot); | 13478 if (slot >= t1.length) |
12938 if (copy != null) { | 13479 return H.ioore(t1, slot); |
12939 if (true === copy) { | 13480 copy = t1[slot]; |
12940 copy = new Array($length); | 13481 if (copy != null) |
12941 this._captured_writeSlot_7.call$2(slot, copy); | |
12942 } | |
12943 return copy; | 13482 return copy; |
12944 } | 13483 return this.copyList$2(e, slot); |
12945 copy = new Array($length); | |
12946 this._captured_writeSlot_7.call$2(slot, copy); | |
12947 for (i = 0; i < $length; ++i) { | |
12948 t1 = this.call$1(t2.$index(e, i)); | |
12949 if (i >= copy.length) | |
12950 return H.ioore(copy, i); | |
12951 copy[i] = t1; | |
12952 } | |
12953 return copy; | |
12954 } | 13484 } |
12955 throw H.wrapException(new P.UnimplementedError("structured clone of othe
r type")); | 13485 throw H.wrapException(new P.UnimplementedError("structured clone of othe
r type")); |
| 13486 }, |
| 13487 copyList$2: function(e, slot) { |
| 13488 var t1, $length, copy, t2, i; |
| 13489 t1 = J.getInterceptor$asx(e); |
| 13490 $length = t1.get$length(e); |
| 13491 copy = new Array($length); |
| 13492 t2 = this.copies; |
| 13493 if (slot >= t2.length) |
| 13494 return H.ioore(t2, slot); |
| 13495 t2[slot] = copy; |
| 13496 for (i = 0; i < $length; ++i) { |
| 13497 t2 = this.walk$1(t1.$index(e, i)); |
| 13498 if (i >= copy.length) |
| 13499 return H.ioore(copy, i); |
| 13500 copy[i] = t2; |
| 13501 } |
| 13502 return copy; |
12956 } | 13503 } |
12957 }, | 13504 }, |
12958 _convertDartToNative_PrepareForStructuredClone_walk_closure: { | 13505 _StructuredClone_walk_closure: { |
12959 "^": "Closure:3;_html_common$_box_0,_captured_walk_8", | 13506 "^": "Closure:3;_box_0,$this", |
12960 call$2: [function(key, value) { | 13507 call$2: [function(key, value) { |
12961 this._html_common$_box_0._captured_copy_0[key] = this._captured_walk_8.c
all$1(value); | 13508 this._box_0.copy[key] = this.$this.walk$1(value); |
12962 }, null, null, 4, 0, null, 13, 8, "call"] | 13509 }, null, null, 4, 0, null, 17, 6, "call"] |
12963 }, | 13510 }, |
12964 convertNativeToDart_AcceptStructuredClone_findSlot: { | 13511 _AcceptStructuredClone: { |
12965 "^": "Closure:15;_captured_values_0,_captured_copies_1", | 13512 "^": "Object;", |
12966 call$1: function(value) { | 13513 findSlot$1: function(value) { |
12967 var t1, $length, i, t2; | 13514 var t1, $length, i, t2; |
12968 t1 = this._captured_values_0; | 13515 t1 = this.values; |
12969 $length = t1.length; | 13516 $length = t1.length; |
12970 for (i = 0; i < $length; ++i) { | 13517 for (i = 0; i < $length; ++i) { |
12971 t2 = t1[i]; | 13518 t2 = t1[i]; |
12972 if (t2 == null ? value == null : t2 === value) | 13519 if (t2 == null ? value == null : t2 === value) |
12973 return i; | 13520 return i; |
12974 } | 13521 } |
12975 t1.push(value); | 13522 t1.push(value); |
12976 this._captured_copies_1.push(null); | 13523 this.copies.push(null); |
12977 return $length; | 13524 return $length; |
12978 } | 13525 }, |
12979 }, | 13526 walk$1: function(e) { |
12980 convertNativeToDart_AcceptStructuredClone_readSlot: { | 13527 var t1, millisSinceEpoch, proto, slot, t2, t3, copy, $length, i; |
12981 "^": "Closure:14;_captured_copies_2", | 13528 t1 = {}; |
12982 call$1: function(i) { | |
12983 var t1 = this._captured_copies_2; | |
12984 if (i >= t1.length) | |
12985 return H.ioore(t1, i); | |
12986 return t1[i]; | |
12987 } | |
12988 }, | |
12989 convertNativeToDart_AcceptStructuredClone_writeSlot: { | |
12990 "^": "Closure:12;_captured_copies_3", | |
12991 call$2: function(i, x) { | |
12992 var t1 = this._captured_copies_3; | |
12993 if (i >= t1.length) | |
12994 return H.ioore(t1, i); | |
12995 t1[i] = x; | |
12996 } | |
12997 }, | |
12998 convertNativeToDart_AcceptStructuredClone_walk: { | |
12999 "^": "Closure:0;_captured_mustCopy_4,_captured_findSlot_5,_captured_readSl
ot_6,_captured_writeSlot_7", | |
13000 call$1: function(e) { | |
13001 var proto, slot, copy, t1, t2, _i, key, $length, i; | |
13002 if (e == null) | 13529 if (e == null) |
13003 return e; | 13530 return e; |
13004 if (typeof e === "boolean") | 13531 if (typeof e === "boolean") |
13005 return e; | 13532 return e; |
13006 if (typeof e === "number") | 13533 if (typeof e === "number") |
13007 return e; | 13534 return e; |
13008 if (typeof e === "string") | 13535 if (typeof e === "string") |
13009 return e; | 13536 return e; |
13010 if (e instanceof Date) | 13537 if (e instanceof Date) { |
13011 return P.DateTime$fromMillisecondsSinceEpoch(e.getTime(), true); | 13538 millisSinceEpoch = e.getTime(); |
| 13539 t1 = new P.DateTime(millisSinceEpoch, true); |
| 13540 t1.DateTime$_withValue$2$isUtc(millisSinceEpoch, true); |
| 13541 return t1; |
| 13542 } |
13012 if (e instanceof RegExp) | 13543 if (e instanceof RegExp) |
13013 throw H.wrapException(new P.UnimplementedError("structured clone of Re
gExp")); | 13544 throw H.wrapException(new P.UnimplementedError("structured clone of Re
gExp")); |
| 13545 if (typeof Promise != "undefined" && e instanceof Promise) |
| 13546 return P.convertNativePromiseToDartFuture(e); |
13014 proto = Object.getPrototypeOf(e); | 13547 proto = Object.getPrototypeOf(e); |
13015 if (proto === Object.prototype || proto === null) { | 13548 if (proto === Object.prototype || proto === null) { |
13016 slot = this._captured_findSlot_5.call$1(e); | 13549 slot = this.findSlot$1(e); |
13017 copy = this._captured_readSlot_6.call$1(slot); | 13550 t2 = this.copies; |
| 13551 t3 = t2.length; |
| 13552 if (slot >= t3) |
| 13553 return H.ioore(t2, slot); |
| 13554 copy = t2[slot]; |
| 13555 t1.copy = copy; |
13018 if (copy != null) | 13556 if (copy != null) |
13019 return copy; | 13557 return copy; |
13020 copy = P.LinkedHashMap__makeEmpty(); | 13558 copy = P.LinkedHashMap__makeEmpty(); |
13021 this._captured_writeSlot_7.call$2(slot, copy); | 13559 t1.copy = copy; |
13022 for (t1 = Object.keys(e), t2 = t1.length, _i = 0; _i < t1.length; t1.l
ength === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) { | 13560 if (slot >= t3) |
13023 key = t1[_i]; | 13561 return H.ioore(t2, slot); |
13024 copy.$indexSet(0, key, this.call$1(e[key])); | 13562 t2[slot] = copy; |
13025 } | 13563 this.forEachJsField$2(e, new P._AcceptStructuredClone_walk_closure(t1,
this)); |
13026 return copy; | 13564 return t1.copy; |
13027 } | 13565 } |
13028 if (e instanceof Array) { | 13566 if (e instanceof Array) { |
13029 slot = this._captured_findSlot_5.call$1(e); | 13567 slot = this.findSlot$1(e); |
13030 copy = this._captured_readSlot_6.call$1(slot); | 13568 t1 = this.copies; |
| 13569 if (slot >= t1.length) |
| 13570 return H.ioore(t1, slot); |
| 13571 copy = t1[slot]; |
13031 if (copy != null) | 13572 if (copy != null) |
13032 return copy; | 13573 return copy; |
13033 t1 = J.getInterceptor$asx(e); | 13574 t2 = J.getInterceptor$asx(e); |
13034 $length = t1.get$length(e); | 13575 $length = t2.get$length(e); |
13035 copy = this._captured_mustCopy_4 ? new Array($length) : e; | 13576 copy = this.mustCopy ? new Array($length) : e; |
13036 this._captured_writeSlot_7.call$2(slot, copy); | 13577 if (slot >= t1.length) |
| 13578 return H.ioore(t1, slot); |
| 13579 t1[slot] = copy; |
13037 if (typeof $length !== "number") | 13580 if (typeof $length !== "number") |
13038 return H.iae($length); | 13581 return H.iae($length); |
13039 t2 = J.getInterceptor$ax(copy); | 13582 t1 = J.getInterceptor$ax(copy); |
13040 i = 0; | 13583 i = 0; |
13041 for (; i < $length; ++i) | 13584 for (; i < $length; ++i) |
13042 t2.$indexSet(copy, i, this.call$1(t1.$index(e, i))); | 13585 t1.$indexSet(copy, i, this.walk$1(t2.$index(e, i))); |
13043 return copy; | 13586 return copy; |
13044 } | 13587 } |
13045 return e; | 13588 return e; |
13046 } | 13589 } |
| 13590 }, |
| 13591 _AcceptStructuredClone_walk_closure: { |
| 13592 "^": "Closure:3;_box_0,$this", |
| 13593 call$2: function(key, value) { |
| 13594 var t1, t2; |
| 13595 t1 = this._box_0.copy; |
| 13596 t2 = this.$this.walk$1(value); |
| 13597 J.$indexSet$ax(t1, key, t2); |
| 13598 return t2; |
| 13599 } |
| 13600 }, |
| 13601 _StructuredCloneDart2Js: { |
| 13602 "^": "_StructuredClone;values,copies" |
| 13603 }, |
| 13604 _AcceptStructuredCloneDart2Js: { |
| 13605 "^": "_AcceptStructuredClone;values,copies,mustCopy", |
| 13606 forEachJsField$2: function(object, action) { |
| 13607 var t1, t2, _i, key; |
| 13608 for (t1 = Object.keys(object), t2 = t1.length, _i = 0; _i < t1.length; t
1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) { |
| 13609 key = t1[_i]; |
| 13610 action.call$2(key, object[key]); |
| 13611 } |
| 13612 } |
| 13613 }, |
| 13614 convertNativePromiseToDartFuture_closure: { |
| 13615 "^": "Closure:0;completer", |
| 13616 call$1: [function(result) { |
| 13617 return this.completer.complete$1(0, result); |
| 13618 }, null, null, 2, 0, null, 14, "call"] |
| 13619 }, |
| 13620 convertNativePromiseToDartFuture_closure0: { |
| 13621 "^": "Closure:0;completer", |
| 13622 call$1: [function(result) { |
| 13623 return this.completer.completeError$1(result); |
| 13624 }, null, null, 2, 0, null, 14, "call"] |
13047 } | 13625 } |
13048 }], ["lazy_trace", "package:stack_trace/src/lazy_trace.dart",, S, { | 13626 }], ["lazy_trace", "package:stack_trace/src/lazy_trace.dart",, S, { |
13049 "^": "", | 13627 "^": "", |
13050 LazyTrace: { | 13628 LazyTrace: { |
13051 "^": "Object;_thunk,_inner", | 13629 "^": "Object;_thunk,_lazy_trace$_inner", |
13052 get$_lazy_trace$_trace: function() { | 13630 get$_lazy_trace$_trace: function() { |
13053 var t1 = this._inner; | 13631 var t1 = this._lazy_trace$_inner; |
13054 if (t1 == null) { | 13632 if (t1 == null) { |
13055 t1 = this._thunk$0(); | 13633 t1 = this._thunk$0(); |
13056 this._inner = t1; | 13634 this._lazy_trace$_inner = t1; |
13057 } | 13635 } |
13058 return t1; | 13636 return t1; |
13059 }, | 13637 }, |
| 13638 get$frames: function() { |
| 13639 return this.get$_lazy_trace$_trace().get$frames(); |
| 13640 }, |
13060 get$terse: function() { | 13641 get$terse: function() { |
13061 return new S.LazyTrace(new S.LazyTrace_terse_closure(this), null); | 13642 return new S.LazyTrace(new S.LazyTrace_terse_closure(this), null); |
13062 }, | 13643 }, |
| 13644 foldFrames$2$terse: function(predicate, terse) { |
| 13645 return new S.LazyTrace(new S.LazyTrace_foldFrames_closure(this, predicat
e, true), null); |
| 13646 }, |
13063 toString$0: function(_) { | 13647 toString$0: function(_) { |
13064 return J.toString$0$(this.get$_lazy_trace$_trace()); | 13648 return J.toString$0$(this.get$_lazy_trace$_trace()); |
13065 }, | 13649 }, |
13066 _thunk$0: function() { | 13650 _thunk$0: function() { |
13067 return this._thunk.call$0(); | 13651 return this._thunk.call$0(); |
13068 }, | 13652 }, |
13069 $isTrace: 1 | 13653 $isTrace: 1 |
13070 }, | 13654 }, |
13071 LazyTrace_terse_closure: { | 13655 LazyTrace_terse_closure: { |
13072 "^": "Closure:1;_lazy_trace$_captured_this_0", | 13656 "^": "Closure:1;$this", |
13073 call$0: function() { | 13657 call$0: function() { |
13074 return this._lazy_trace$_captured_this_0.get$_lazy_trace$_trace().get$te
rse(); | 13658 return this.$this.get$_lazy_trace$_trace().get$terse(); |
13075 } | 13659 } |
| 13660 }, |
| 13661 LazyTrace_foldFrames_closure: { |
| 13662 "^": "Closure:1;$this,predicate,terse", |
| 13663 call$0: function() { |
| 13664 return this.$this.get$_lazy_trace$_trace().foldFrames$2$terse(this.predi
cate, this.terse); |
| 13665 } |
| 13666 } |
| 13667 }], ["", "package:stream_channel/src/multi_channel.dart",, D, { |
| 13668 "^": "", |
| 13669 _MultiChannel: { |
| 13670 "^": "StreamChannelMixin;_multi_channel$_inner,_innerStreamSubscription,_m
ainController,_controllers,_nextId", |
| 13671 virtualChannel$1: function(id) { |
| 13672 var t1, t2, inputId, t3, controller; |
| 13673 t1 = {}; |
| 13674 t1.inputId = null; |
| 13675 t1.outputId = null; |
| 13676 if (id != null) { |
| 13677 t1.inputId = id; |
| 13678 t1.outputId = H.intTypeCast(id) + 1; |
| 13679 t2 = id; |
| 13680 } else { |
| 13681 t2 = this._nextId; |
| 13682 inputId = t2 + 1; |
| 13683 t1.inputId = inputId; |
| 13684 t1.outputId = t2; |
| 13685 this._nextId = t2 + 2; |
| 13686 t2 = inputId; |
| 13687 } |
| 13688 if (this._multi_channel$_inner == null) { |
| 13689 t1 = H.setRuntimeTypeInfo(new P._EmptyStream(), [null]); |
| 13690 t3 = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [nu
ll]); |
| 13691 t3._asyncComplete$1(null); |
| 13692 return new D.VirtualChannel(this, t2, t1, H.setRuntimeTypeInfo(new N.N
ullStreamSink(t3, false, false), [null])); |
| 13693 } |
| 13694 t3 = this._controllers; |
| 13695 if (t3.containsKey$1(t2)) |
| 13696 throw H.wrapException(P.ArgumentError$("A virtual channel with id " +
H.S(id) + " already exists.")); |
| 13697 controller = B.StreamChannelController$(true, true, null); |
| 13698 t3.$indexSet(0, t2, controller); |
| 13699 t2 = controller._local._streamController; |
| 13700 t2.toString; |
| 13701 H.setRuntimeTypeInfo(new P._ControllerStream(t2), [H.getTypeArgumentByIn
dex(t2, 0)]).listen$2$onDone(new D._MultiChannel_virtualChannel_closure(t1, this
), new D._MultiChannel_virtualChannel_closure0(t1, this)); |
| 13702 t1 = t1.outputId; |
| 13703 t2 = controller._foreign._streamController; |
| 13704 t2.toString; |
| 13705 return new D.VirtualChannel(this, t1, H.setRuntimeTypeInfo(new P._Contro
llerStream(t2), [H.getTypeArgumentByIndex(t2, 0)]), controller._foreign._sink); |
| 13706 }, |
| 13707 _closeChannel$2: function(inputId, outputId) { |
| 13708 var t1, t2; |
| 13709 t1 = this._controllers; |
| 13710 t1.remove$1(0, inputId).get$local()._sink.close$0(0); |
| 13711 t2 = this._multi_channel$_inner; |
| 13712 if (t2 == null) |
| 13713 return; |
| 13714 t2._sink.add$1(0, [outputId]); |
| 13715 if (t1.get$isEmpty(t1)) |
| 13716 this._closeInnerChannel$0(); |
| 13717 }, |
| 13718 _closeInnerChannel$0: [function() { |
| 13719 var t1, t2, t3, _i; |
| 13720 this._multi_channel$_inner._sink.close$0(0); |
| 13721 this._innerStreamSubscription.cancel$0(); |
| 13722 this._multi_channel$_inner = null; |
| 13723 for (t1 = this._controllers, t2 = P.List_List$from(t1.get$values(t1), tr
ue, null), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.thr
owConcurrentModificationError)(t2), ++_i) |
| 13724 t2[_i].get$local()._sink.close$0(0); |
| 13725 t1.clear$0(0); |
| 13726 }, "call$0", "get$_closeInnerChannel", 0, 0, 2], |
| 13727 _MultiChannel$1: function(_inner) { |
| 13728 var t1, t2; |
| 13729 t1 = this._mainController; |
| 13730 this._controllers.$indexSet(0, 0, t1); |
| 13731 t2 = t1._local._streamController; |
| 13732 t2.toString; |
| 13733 H.setRuntimeTypeInfo(new P._ControllerStream(t2), [H.getTypeArgumentByIn
dex(t2, 0)]).listen$2$onDone(new D._MultiChannel_closure(this), new D._MultiChan
nel_closure0(this)); |
| 13734 t2 = this._multi_channel$_inner._streamController; |
| 13735 t2.toString; |
| 13736 this._innerStreamSubscription = H.setRuntimeTypeInfo(new P._ControllerSt
ream(t2), [H.getTypeArgumentByIndex(t2, 0)]).listen$3$onDone$onError(new D._Mult
iChannel_closure1(this), this.get$_closeInnerChannel(), t1._local._sink.get$addE
rror()); |
| 13737 }, |
| 13738 static: {_MultiChannel$: function(_inner) { |
| 13739 var t1 = new D._MultiChannel(_inner, null, B.StreamChannelController$(
true, true, null), P.LinkedHashMap_LinkedHashMap$_empty(P.$int, B.StreamChannelC
ontroller), 1); |
| 13740 t1._MultiChannel$1(_inner); |
| 13741 return t1; |
| 13742 }} |
| 13743 }, |
| 13744 _MultiChannel_closure: { |
| 13745 "^": "Closure:0;$this", |
| 13746 call$1: [function(message) { |
| 13747 return this.$this._multi_channel$_inner._sink.add$1(0, [0, message]); |
| 13748 }, null, null, 2, 0, null, 7, "call"] |
| 13749 }, |
| 13750 _MultiChannel_closure0: { |
| 13751 "^": "Closure:1;$this", |
| 13752 call$0: [function() { |
| 13753 return this.$this._closeChannel$2(0, 0); |
| 13754 }, null, null, 0, 0, null, "call"] |
| 13755 }, |
| 13756 _MultiChannel_closure1: { |
| 13757 "^": "Closure:0;$this", |
| 13758 call$1: [function(message) { |
| 13759 var t1, controller; |
| 13760 t1 = J.getInterceptor$asx(message); |
| 13761 controller = this.$this._controllers.$index(0, t1.$index(message, 0)); |
| 13762 if (controller == null) |
| 13763 return; |
| 13764 if (J.$gt$n(t1.get$length(message), 1)) { |
| 13765 controller._local._sink.add$1(0, t1.$index(message, 1)); |
| 13766 return; |
| 13767 } |
| 13768 controller._local._sink.close$0(0); |
| 13769 }, null, null, 2, 0, null, 7, "call"] |
| 13770 }, |
| 13771 _MultiChannel_virtualChannel_closure: { |
| 13772 "^": "Closure:0;_box_0,$this", |
| 13773 call$1: [function(message) { |
| 13774 return this.$this._multi_channel$_inner._sink.add$1(0, [this._box_0.outp
utId, message]); |
| 13775 }, null, null, 2, 0, null, 7, "call"] |
| 13776 }, |
| 13777 _MultiChannel_virtualChannel_closure0: { |
| 13778 "^": "Closure:1;_box_0,$this", |
| 13779 call$0: [function() { |
| 13780 var t1 = this._box_0; |
| 13781 return this.$this._closeChannel$2(t1.inputId, t1.outputId); |
| 13782 }, null, null, 0, 0, null, "call"] |
| 13783 }, |
| 13784 VirtualChannel: { |
| 13785 "^": "StreamChannelMixin;_parent,id,stream,sink" |
13076 } | 13786 } |
13077 }], ["path", "package:path/path.dart",, B, { | 13787 }], ["path", "package:path/path.dart",, B, { |
13078 "^": "", | 13788 "^": "", |
13079 current: function() { | 13789 current: function() { |
13080 var uri, t1, t2, targetScheme, targetUserInfo, targetHost, targetPort, tar
getPath, targetQuery, mergedPath, fragment, path; | 13790 var uri, t1, t2, targetScheme, targetUserInfo, targetHost, targetPort, tar
getPath, targetQuery, mergedPath, fragment, path; |
13081 uri = P.Uri_base(); | 13791 uri = P.Uri_base(); |
| 13792 if (uri.$eq(0, $._currentUriBase)) |
| 13793 return $._current; |
| 13794 $._currentUriBase = uri; |
13082 t1 = $.$get$Style_platform(); | 13795 t1 = $.$get$Style_platform(); |
13083 t2 = $.$get$Style_url(); | 13796 t2 = $.$get$Style_url(); |
13084 if (t1 == null ? t2 == null : t1 === t2) { | 13797 if (t1 == null ? t2 == null : t1 === t2) { |
13085 t1 = P.Uri_parse(".", 0, null); | 13798 t1 = P.Uri_parse(".", 0, null); |
13086 targetScheme = t1.scheme; | 13799 targetScheme = t1.scheme; |
13087 if (targetScheme.length !== 0) { | 13800 if (targetScheme.length !== 0) { |
13088 if (t1._host != null) { | 13801 if (t1._host != null) { |
13089 targetUserInfo = t1._userInfo; | 13802 targetUserInfo = t1._userInfo; |
13090 targetHost = t1.get$host(t1); | 13803 targetHost = t1.get$host(t1); |
13091 targetPort = t1._port != null ? t1.get$port(t1) : null; | 13804 targetPort = t1._port != null ? t1.get$port(t1) : null; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13142 else | 13855 else |
13143 targetQuery = null; | 13856 targetQuery = null; |
13144 } | 13857 } |
13145 } | 13858 } |
13146 } | 13859 } |
13147 fragment = t1._fragment; | 13860 fragment = t1._fragment; |
13148 if (fragment != null) | 13861 if (fragment != null) |
13149 ; | 13862 ; |
13150 else | 13863 else |
13151 fragment = null; | 13864 fragment = null; |
13152 return new P.Uri(targetHost, targetPort, targetPath, targetScheme, targe
tUserInfo, targetQuery, fragment, null, null).toString$0(0); | 13865 t1 = new P.Uri(targetScheme, targetUserInfo, targetHost, targetPort, tar
getPath, targetQuery, fragment, null, null).toString$0(0); |
| 13866 $._current = t1; |
| 13867 return t1; |
13153 } else { | 13868 } else { |
13154 path = uri.toFilePath$0(); | 13869 path = uri.toFilePath$0(); |
13155 return C.JSString_methods.substring$2(path, 0, path.length - 1); | 13870 t1 = C.JSString_methods.substring$2(path, 0, path.length - 1); |
| 13871 $._current = t1; |
| 13872 return t1; |
13156 } | 13873 } |
13157 } | 13874 } |
13158 }], ["path.context", "package:path/src/context.dart",, F, { | 13875 }], ["path.context", "package:path/src/context.dart",, F, { |
13159 "^": "", | 13876 "^": "", |
13160 _validateArgList: function(method, args) { | 13877 _validateArgList: function(method, args) { |
13161 var i, numArgs, numArgs0, message, t1, t2; | 13878 var numArgs, i, numArgs0, message, t1, t2, t3, t4; |
13162 for (i = 1; i < 8; ++i) { | 13879 for (numArgs = args.length, i = 1; i < numArgs; ++i) { |
13163 if (args[i] == null || args[i - 1] != null) | 13880 if (args[i] == null || args[i - 1] != null) |
13164 continue; | 13881 continue; |
13165 for (numArgs = 8; numArgs >= 1; numArgs = numArgs0) { | 13882 for (; numArgs >= 1; numArgs = numArgs0) { |
13166 numArgs0 = numArgs - 1; | 13883 numArgs0 = numArgs - 1; |
13167 if (args[numArgs0] != null) | 13884 if (args[numArgs0] != null) |
13168 break; | 13885 break; |
13169 } | 13886 } |
13170 message = new P.StringBuffer(""); | 13887 message = new P.StringBuffer(""); |
13171 t1 = method + "("; | 13888 t1 = method + "("; |
13172 message._contents = t1; | 13889 message._contents = t1; |
13173 t2 = new H.SubListIterable(args, 0, numArgs); | 13890 t2 = H.setRuntimeTypeInfo(new H.SubListIterable(args, 0, numArgs), [H.ge
tTypeArgumentByIndex(args, 0)]); |
13174 t2.$builtinTypeInfo = [H.getTypeArgumentByIndex(args, 0)]; | 13891 t3 = t2.__internal$_start; |
13175 if (numArgs < 0) | 13892 if (t3 < 0) |
13176 H.throwExpression(P.RangeError$range(numArgs, 0, null, "end", null)); | 13893 H.throwExpression(P.RangeError$range(t3, 0, null, "start", null)); |
13177 if (0 > numArgs) | 13894 t4 = t2._endOrLength; |
13178 H.throwExpression(P.RangeError$range(0, 0, numArgs, "start", null)); | 13895 if (t4 != null) { |
13179 t2 = new H.MappedListIterable(t2, new F._validateArgList_closure()); | 13896 if (typeof t4 !== "number") |
13180 t2.$builtinTypeInfo = [null, null]; | 13897 return t4.$lt(); |
13181 t1 += t2.join$1(0, ", "); | 13898 if (t4 < 0) |
| 13899 H.throwExpression(P.RangeError$range(t4, 0, null, "end", null)); |
| 13900 if (t3 > t4) |
| 13901 H.throwExpression(P.RangeError$range(t3, 0, t4, "start", null)); |
| 13902 } |
| 13903 t1 += H.setRuntimeTypeInfo(new H.MappedListIterable(t2, new F._validateA
rgList_closure()), [null, null]).join$1(0, ", "); |
13182 message._contents = t1; | 13904 message._contents = t1; |
13183 message._contents = t1 + ("): part " + (i - 1) + " was null, but part "
+ i + " was not."); | 13905 message._contents = t1 + ("): part " + (i - 1) + " was null, but part "
+ i + " was not."); |
13184 throw H.wrapException(P.ArgumentError$(message.toString$0(0))); | 13906 throw H.wrapException(P.ArgumentError$(message.toString$0(0))); |
13185 } | 13907 } |
13186 }, | 13908 }, |
13187 Context: { | 13909 Context: { |
13188 "^": "Object;style,_context$_current", | 13910 "^": "Object;style,_context$_current", |
| 13911 absolute$7: function(_, part1, part2, part3, part4, part5, part6, part7) { |
| 13912 var t1; |
| 13913 F._validateArgList("absolute", [part1, part2, part3, part4, part5, part6
, part7]); |
| 13914 t1 = this.style; |
| 13915 t1 = J.$gt$n(t1.rootLength$1(part1), 0) && !t1.isRootRelative$1(part1); |
| 13916 if (t1) |
| 13917 return part1; |
| 13918 t1 = this._context$_current; |
| 13919 return this.join$8(0, t1 != null ? t1 : B.current(), part1, part2, part3
, part4, part5, part6, part7); |
| 13920 }, |
| 13921 absolute$1: function($receiver, part1) { |
| 13922 return this.absolute$7($receiver, part1, null, null, null, null, null, n
ull); |
| 13923 }, |
13189 join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8
) { | 13924 join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8
) { |
13190 var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, par
t6, part7, part8], [P.String]); | 13925 var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, par
t6, part7, part8], [P.String]); |
13191 F._validateArgList("join", parts); | 13926 F._validateArgList("join", parts); |
13192 return this.joinAll$1(H.setRuntimeTypeInfo(new H.WhereIterable(parts, ne
w F.Context_join_closure()), [H.getTypeArgumentByIndex(parts, 0)])); | 13927 return this.joinAll$1(H.setRuntimeTypeInfo(new H.WhereIterable(parts, ne
w F.Context_join_closure()), [H.getTypeArgumentByIndex(parts, 0)])); |
13193 }, | 13928 }, |
13194 join$2: function($receiver, part1, part2) { | 13929 join$2: function($receiver, part1, part2) { |
13195 return this.join$8($receiver, part1, part2, null, null, null, null, null
, null); | 13930 return this.join$8($receiver, part1, part2, null, null, null, null, null
, null); |
13196 }, | 13931 }, |
13197 joinAll$1: function(parts) { | 13932 joinAll$1: function(parts) { |
13198 var buffer, t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, pa
rt, parsed, t4, t5; | 13933 var buffer, t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, pa
rt, parsed, t4, t5; |
13199 buffer = new P.StringBuffer(""); | 13934 buffer = new P.StringBuffer(""); |
13200 for (t1 = H.setRuntimeTypeInfo(new H.WhereIterable(parts, new F.Context_
joinAll_closure()), [H.getRuntimeTypeArgument(parts, "Iterable", 0)]), t1 = H.se
tRuntimeTypeInfo(new H.WhereIterator(J.get$iterator$ax(t1._iterable), t1._f), [H
.getTypeArgumentByIndex(t1, 0)]), t2 = this.style, t3 = t1._iterator, needsSepar
ator = false, isAbsoluteAndNotRootRelative = false; t1.moveNext$0();) { | 13935 for (t1 = H.setRuntimeTypeInfo(new H.WhereIterable(parts, new F.Context_
joinAll_closure()), [H.getRuntimeTypeArgument(parts, "Iterable", 0)]), t1 = H.se
tRuntimeTypeInfo(new H.WhereIterator(J.get$iterator$ax(t1.__internal$_iterable),
t1._f), [H.getTypeArgumentByIndex(t1, 0)]), t2 = this.style, t3 = t1._iterator,
needsSeparator = false, isAbsoluteAndNotRootRelative = false; t1.moveNext$0();)
{ |
13201 part = t3.get$current(); | 13936 part = t3.get$current(); |
13202 if (t2.isRootRelative$1(part) && isAbsoluteAndNotRootRelative) { | 13937 if (t2.isRootRelative$1(part) && isAbsoluteAndNotRootRelative) { |
13203 parsed = Q.ParsedPath_ParsedPath$parse(part, t2); | 13938 parsed = Q.ParsedPath_ParsedPath$parse(part, t2); |
13204 t4 = buffer._contents; | 13939 t4 = buffer._contents; |
13205 t4 = t4.charCodeAt(0) == 0 ? t4 : t4; | 13940 t4 = t4.charCodeAt(0) == 0 ? t4 : t4; |
13206 t4 = C.JSString_methods.substring$2(t4, 0, t2.rootLength$1(t4)); | 13941 t4 = C.JSString_methods.substring$2(t4, 0, t2.rootLength$1(t4)); |
13207 parsed.root = t4; | 13942 parsed.root = t4; |
13208 if (t2.needsSeparator$1(t4)) { | 13943 if (t2.needsSeparator$1(t4)) { |
13209 t4 = parsed.separators; | 13944 t4 = parsed.separators; |
13210 t5 = t2.get$separator(); | 13945 t5 = t2.get$separator(); |
(...skipping 26 matching lines...) Expand all Loading... |
13237 t1 = parsed.parts; | 13972 t1 = parsed.parts; |
13238 t1 = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new F.Context_split_cl
osure()), [H.getTypeArgumentByIndex(t1, 0)]); | 13973 t1 = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new F.Context_split_cl
osure()), [H.getTypeArgumentByIndex(t1, 0)]); |
13239 t1 = P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "Iterable",
0)); | 13974 t1 = P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "Iterable",
0)); |
13240 parsed.parts = t1; | 13975 parsed.parts = t1; |
13241 t2 = parsed.root; | 13976 t2 = parsed.root; |
13242 if (t2 != null) | 13977 if (t2 != null) |
13243 C.JSArray_methods.insert$2(t1, 0, t2); | 13978 C.JSArray_methods.insert$2(t1, 0, t2); |
13244 return parsed.parts; | 13979 return parsed.parts; |
13245 }, | 13980 }, |
13246 normalize$1: function(path) { | 13981 normalize$1: function(path) { |
13247 var parsed = Q.ParsedPath_ParsedPath$parse(path, this.style); | 13982 var parsed; |
| 13983 if (!this._needsNormalization$1(path)) |
| 13984 return path; |
| 13985 parsed = Q.ParsedPath_ParsedPath$parse(path, this.style); |
13248 parsed.normalize$0(); | 13986 parsed.normalize$0(); |
13249 return parsed.toString$0(0); | 13987 return parsed.toString$0(0); |
13250 }, | 13988 }, |
| 13989 _needsNormalization$1: function(path) { |
| 13990 var t1, root, i, start, previous, t2, t3, previousPrevious, t4, codeUnit
, t5; |
| 13991 t1 = this.style; |
| 13992 root = t1.rootLength$1(path); |
| 13993 if (!J.$eq$(root, 0)) { |
| 13994 if (t1 === $.$get$Style_windows()) { |
| 13995 if (typeof root !== "number") |
| 13996 return H.iae(root); |
| 13997 i = 0; |
| 13998 for (; i < root; ++i) |
| 13999 if (C.JSString_methods.codeUnitAt$1(path, i) === 47) |
| 14000 return true; |
| 14001 } |
| 14002 start = root; |
| 14003 previous = 47; |
| 14004 } else { |
| 14005 start = 0; |
| 14006 previous = null; |
| 14007 } |
| 14008 for (t2 = new H.CodeUnits(path).__internal$_string, t3 = t2.length, i =
start, previousPrevious = null; t4 = J.getInterceptor$n(i), t4.$lt(i, t3); i = t
4.$add(i, 1), previousPrevious = previous, previous = codeUnit) { |
| 14009 codeUnit = C.JSString_methods.codeUnitAt$1(t2, i); |
| 14010 if (t1.isSeparator$1(codeUnit)) { |
| 14011 if (t1 === $.$get$Style_windows() && codeUnit === 47) |
| 14012 return true; |
| 14013 if (previous != null && t1.isSeparator$1(previous)) |
| 14014 return true; |
| 14015 if (previous === 46) |
| 14016 t5 = previousPrevious == null || previousPrevious === 46 || t1.isS
eparator$1(previousPrevious); |
| 14017 else |
| 14018 t5 = false; |
| 14019 if (t5) |
| 14020 return true; |
| 14021 } |
| 14022 } |
| 14023 if (previous == null) |
| 14024 return true; |
| 14025 if (t1.isSeparator$1(previous)) |
| 14026 return true; |
| 14027 if (previous === 46) |
| 14028 t1 = previousPrevious == null || previousPrevious === 47 || previousPr
evious === 46; |
| 14029 else |
| 14030 t1 = false; |
| 14031 if (t1) |
| 14032 return true; |
| 14033 return false; |
| 14034 }, |
13251 relative$2$from: function(path, from) { | 14035 relative$2$from: function(path, from) { |
13252 var t1, t2, fromParsed, pathParsed, t3; | 14036 var t1, fromParsed, pathParsed, t2, t3; |
13253 from = this._context$_current; | 14037 if (!J.$gt$n(this.style.rootLength$1(path), 0)) |
13254 from = from != null ? from : B.current(); | 14038 return this.normalize$1(path); |
| 14039 t1 = this._context$_current; |
| 14040 from = t1 != null ? t1 : B.current(); |
13255 t1 = this.style; | 14041 t1 = this.style; |
13256 if (!J.$gt$n(t1.rootLength$1(from), 0) && J.$gt$n(t1.rootLength$1(path),
0)) | 14042 if (!J.$gt$n(t1.rootLength$1(from), 0) && J.$gt$n(t1.rootLength$1(path),
0)) |
13257 return this.normalize$1(path); | 14043 return this.normalize$1(path); |
13258 if (!J.$gt$n(t1.rootLength$1(path), 0) || t1.isRootRelative$1(path)) { | 14044 if (!J.$gt$n(t1.rootLength$1(path), 0) || t1.isRootRelative$1(path)) |
13259 t2 = this._context$_current; | 14045 path = this.absolute$1(0, path); |
13260 path = this.join$8(0, t2 != null ? t2 : B.current(), path, null, null,
null, null, null, null); | |
13261 } | |
13262 if (!J.$gt$n(t1.rootLength$1(path), 0) && J.$gt$n(t1.rootLength$1(from),
0)) | 14046 if (!J.$gt$n(t1.rootLength$1(path), 0) && J.$gt$n(t1.rootLength$1(from),
0)) |
13263 throw H.wrapException(new E.PathException("Unable to find a path to \"
" + path + "\" from \"" + H.S(from) + "\".")); | 14047 throw H.wrapException(new E.PathException("Unable to find a path to \"
" + path + "\" from \"" + H.S(from) + "\".")); |
13264 fromParsed = Q.ParsedPath_ParsedPath$parse(from, t1); | 14048 fromParsed = Q.ParsedPath_ParsedPath$parse(from, t1); |
13265 fromParsed.normalize$0(); | 14049 fromParsed.normalize$0(); |
13266 pathParsed = Q.ParsedPath_ParsedPath$parse(path, t1); | 14050 pathParsed = Q.ParsedPath_ParsedPath$parse(path, t1); |
13267 pathParsed.normalize$0(); | 14051 pathParsed.normalize$0(); |
13268 t2 = fromParsed.parts; | 14052 t2 = fromParsed.parts; |
13269 if (t2.length > 0 && J.$eq$(t2[0], ".")) | 14053 if (t2.length > 0 && J.$eq$(t2[0], ".")) |
13270 return pathParsed.toString$0(0); | 14054 return pathParsed.toString$0(0); |
13271 if (!J.$eq$(fromParsed.root, pathParsed.root)) { | 14055 if (!J.$eq$(fromParsed.root, pathParsed.root)) { |
(...skipping 22 matching lines...) Expand all Loading... |
13294 if (!t2) | 14078 if (!t2) |
13295 break; | 14079 break; |
13296 C.JSArray_methods.removeAt$1(fromParsed.parts, 0); | 14080 C.JSArray_methods.removeAt$1(fromParsed.parts, 0); |
13297 C.JSArray_methods.removeAt$1(fromParsed.separators, 1); | 14081 C.JSArray_methods.removeAt$1(fromParsed.separators, 1); |
13298 C.JSArray_methods.removeAt$1(pathParsed.parts, 0); | 14082 C.JSArray_methods.removeAt$1(pathParsed.parts, 0); |
13299 C.JSArray_methods.removeAt$1(pathParsed.separators, 1); | 14083 C.JSArray_methods.removeAt$1(pathParsed.separators, 1); |
13300 } | 14084 } |
13301 t2 = fromParsed.parts; | 14085 t2 = fromParsed.parts; |
13302 if (t2.length > 0 && J.$eq$(t2[0], "..")) | 14086 if (t2.length > 0 && J.$eq$(t2[0], "..")) |
13303 throw H.wrapException(new E.PathException("Unable to find a path to \"
" + path + "\" from \"" + H.S(from) + "\".")); | 14087 throw H.wrapException(new E.PathException("Unable to find a path to \"
" + path + "\" from \"" + H.S(from) + "\".")); |
13304 C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fr
omParsed.parts.length, "..", null)); | 14088 C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fr
omParsed.parts.length, "..", false, null)); |
13305 t2 = pathParsed.separators; | 14089 t2 = pathParsed.separators; |
13306 if (0 >= t2.length) | 14090 if (0 >= t2.length) |
13307 return H.ioore(t2, 0); | 14091 return H.ioore(t2, 0); |
13308 t2[0] = ""; | 14092 t2[0] = ""; |
13309 C.JSArray_methods.insertAll$2(t2, 1, P.List_List$filled(fromParsed.parts
.length, t1.get$separator(), null)); | 14093 C.JSArray_methods.insertAll$2(t2, 1, P.List_List$filled(fromParsed.parts
.length, t1.get$separator(), false, null)); |
13310 t1 = pathParsed.parts; | 14094 t1 = pathParsed.parts; |
13311 t2 = t1.length; | 14095 t2 = t1.length; |
13312 if (t2 === 0) | 14096 if (t2 === 0) |
13313 return "."; | 14097 return "."; |
13314 if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) { | 14098 if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) { |
13315 C.JSArray_methods.removeLast$0(pathParsed.parts); | 14099 C.JSArray_methods.removeLast$0(pathParsed.parts); |
13316 t1 = pathParsed.separators; | 14100 t1 = pathParsed.separators; |
13317 C.JSArray_methods.removeLast$0(t1); | 14101 C.JSArray_methods.removeLast$0(t1); |
13318 C.JSArray_methods.removeLast$0(t1); | 14102 C.JSArray_methods.removeLast$0(t1); |
13319 C.JSArray_methods.add$1(t1, ""); | 14103 C.JSArray_methods.add$1(t1, ""); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13364 if (t1) | 14148 if (t1) |
13365 return uri.toString$0(0); | 14149 return uri.toString$0(0); |
13366 path = this.normalize$1(this.fromUri$1(uri)); | 14150 path = this.normalize$1(this.fromUri$1(uri)); |
13367 rel = this.relative$1(path); | 14151 rel = this.relative$1(path); |
13368 return this.split$1(0, rel).length > this.split$1(0, path).length ? path
: rel; | 14152 return this.split$1(0, rel).length > this.split$1(0, path).length ? path
: rel; |
13369 }, | 14153 }, |
13370 static: {Context_Context: function(current, style) { | 14154 static: {Context_Context: function(current, style) { |
13371 current = style == null ? B.current() : "."; | 14155 current = style == null ? B.current() : "."; |
13372 if (style == null) | 14156 if (style == null) |
13373 style = $.$get$Style_platform(); | 14157 style = $.$get$Style_platform(); |
13374 else if (!style.$isInternalStyle) | 14158 return new F.Context(style, current); |
13375 throw H.wrapException(P.ArgumentError$("Only styles defined by the p
ath package are allowed.")); | |
13376 return new F.Context(H.interceptedTypeCast(style, "$isInternalStyle"),
current); | |
13377 }} | 14159 }} |
13378 }, | 14160 }, |
13379 Context_join_closure: { | 14161 Context_join_closure: { |
13380 "^": "Closure:0;", | 14162 "^": "Closure:0;", |
13381 call$1: function(part) { | 14163 call$1: function(part) { |
13382 return part != null; | 14164 return part != null; |
13383 } | 14165 } |
13384 }, | 14166 }, |
13385 Context_joinAll_closure: { | 14167 Context_joinAll_closure: { |
13386 "^": "Closure:0;", | 14168 "^": "Closure:0;", |
13387 call$1: function(part) { | 14169 call$1: function(part) { |
13388 return !J.$eq$(part, ""); | 14170 return !J.$eq$(part, ""); |
13389 } | 14171 } |
13390 }, | 14172 }, |
13391 Context_split_closure: { | 14173 Context_split_closure: { |
13392 "^": "Closure:0;", | 14174 "^": "Closure:0;", |
13393 call$1: function(part) { | 14175 call$1: function(part) { |
13394 return J.get$isEmpty$asx(part) !== true; | 14176 return J.get$isEmpty$asx(part) !== true; |
13395 } | 14177 } |
13396 }, | 14178 }, |
13397 _validateArgList_closure: { | 14179 _validateArgList_closure: { |
13398 "^": "Closure:0;", | 14180 "^": "Closure:0;", |
13399 call$1: [function(arg) { | 14181 call$1: [function(arg) { |
13400 return arg == null ? "null" : "\"" + H.S(arg) + "\""; | 14182 return arg == null ? "null" : "\"" + H.S(arg) + "\""; |
13401 }, null, null, 2, 0, null, 9, "call"] | 14183 }, null, null, 2, 0, null, 13, "call"] |
13402 } | 14184 } |
13403 }], ["path.internal_style", "package:path/src/internal_style.dart",, E, { | 14185 }], ["path.internal_style", "package:path/src/internal_style.dart",, E, { |
13404 "^": "", | 14186 "^": "", |
13405 InternalStyle: { | 14187 InternalStyle: { |
13406 "^": "Style;", | 14188 "^": "Style;", |
13407 getRoot$1: function(path) { | 14189 getRoot$1: function(path) { |
13408 var $length = this.rootLength$1(path); | 14190 var $length = this.rootLength$1(path); |
13409 if (J.$gt$n($length, 0)) | 14191 if (J.$gt$n($length, 0)) |
13410 return J.substring$2$s(path, 0, $length); | 14192 return J.substring$2$s(path, 0, $length); |
13411 return this.isRootRelative$1(path) ? J.$index$asx(path, 0) : null; | 14193 return this.isRootRelative$1(path) ? J.$index$asx(path, 0) : null; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13455 ; | 14237 ; |
13456 else if (t3.$eq(part, "..")) | 14238 else if (t3.$eq(part, "..")) |
13457 if (newParts.length > 0) | 14239 if (newParts.length > 0) |
13458 newParts.pop(); | 14240 newParts.pop(); |
13459 else | 14241 else |
13460 ++leadingDoubles; | 14242 ++leadingDoubles; |
13461 else | 14243 else |
13462 newParts.push(part); | 14244 newParts.push(part); |
13463 } | 14245 } |
13464 if (this.root == null) | 14246 if (this.root == null) |
13465 C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingD
oubles, "..", null)); | 14247 C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingD
oubles, "..", false, null)); |
13466 if (newParts.length === 0 && this.root == null) | 14248 if (newParts.length === 0 && this.root == null) |
13467 newParts.push("."); | 14249 newParts.push("."); |
13468 newSeparators = P.List_List$generate(newParts.length, new Q.ParsedPath_n
ormalize_closure(this), true, P.String); | 14250 newSeparators = P.List_List$generate(newParts.length, new Q.ParsedPath_n
ormalize_closure(this), true, P.String); |
13469 t1 = this.root; | 14251 t1 = this.root; |
13470 C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.leng
th > 0 && this.style.needsSeparator$1(t1) ? this.style.get$separator() : ""); | 14252 C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.leng
th > 0 && this.style.needsSeparator$1(t1) ? this.style.get$separator() : ""); |
13471 this.parts = newParts; | 14253 this.parts = newParts; |
13472 this.separators = newSeparators; | 14254 this.separators = newSeparators; |
13473 t1 = this.root; | 14255 t1 = this.root; |
13474 if (t1 != null) { | 14256 if (t1 != null) { |
13475 t2 = this.style; | 14257 t2 = this.style; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13535 if (typeof t2 !== "number") | 14317 if (typeof t2 !== "number") |
13536 return H.iae(t2); | 14318 return H.iae(t2); |
13537 if (start < t2) { | 14319 if (start < t2) { |
13538 parts.push(t1.substring$1(path, start)); | 14320 parts.push(t1.substring$1(path, start)); |
13539 separators.push(""); | 14321 separators.push(""); |
13540 } | 14322 } |
13541 return new Q.ParsedPath(style, root, isRootRelative, parts, separators
); | 14323 return new Q.ParsedPath(style, root, isRootRelative, parts, separators
); |
13542 }} | 14324 }} |
13543 }, | 14325 }, |
13544 ParsedPath_normalize_closure: { | 14326 ParsedPath_normalize_closure: { |
13545 "^": "Closure:0;_parsed_path$_captured_this_0", | 14327 "^": "Closure:0;$this", |
13546 call$1: function(_) { | 14328 call$1: function(_) { |
13547 return this._parsed_path$_captured_this_0.style.get$separator(); | 14329 return this.$this.style.get$separator(); |
13548 } | 14330 } |
13549 } | 14331 } |
13550 }], ["path.path_exception", "package:path/src/path_exception.dart",, E, { | 14332 }], ["path.path_exception", "package:path/src/path_exception.dart",, E, { |
13551 "^": "", | 14333 "^": "", |
13552 PathException: { | 14334 PathException: { |
13553 "^": "Object;message>", | 14335 "^": "Object;message>", |
13554 toString$0: function(_) { | 14336 toString$0: function(_) { |
13555 return "PathException: " + this.message; | 14337 return "PathException: " + this.message; |
13556 } | 14338 } |
13557 } | 14339 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13590 var t1 = J.getInterceptor$asx(path); | 14372 var t1 = J.getInterceptor$asx(path); |
13591 if (t1.get$isNotEmpty(path) && t1.codeUnitAt$1(path, 0) === 47) | 14373 if (t1.get$isNotEmpty(path) && t1.codeUnitAt$1(path, 0) === 47) |
13592 return 1; | 14374 return 1; |
13593 return 0; | 14375 return 0; |
13594 }, | 14376 }, |
13595 isRootRelative$1: function(path) { | 14377 isRootRelative$1: function(path) { |
13596 return false; | 14378 return false; |
13597 }, | 14379 }, |
13598 pathFromUri$1: function(uri) { | 14380 pathFromUri$1: function(uri) { |
13599 var t1 = uri.scheme; | 14381 var t1 = uri.scheme; |
13600 if (t1 === "" || t1 === "file") | 14382 if (t1 === "" || t1 === "file") { |
13601 return P.Uri__uriDecode(uri._path, C.Utf8Codec_false, false); | 14383 t1 = uri._path; |
| 14384 return P.Uri__uriDecode(t1, 0, t1.length, C.Utf8Codec_false, false); |
| 14385 } |
13602 throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " mu
st have scheme 'file:'.")); | 14386 throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " mu
st have scheme 'file:'.")); |
13603 }, | 14387 }, |
13604 absolutePathToUri$1: function(path) { | 14388 absolutePathToUri$1: function(path) { |
13605 var parsed, t1; | 14389 var parsed, t1; |
13606 parsed = Q.ParsedPath_ParsedPath$parse(path, this); | 14390 parsed = Q.ParsedPath_ParsedPath$parse(path, this); |
13607 t1 = parsed.parts; | 14391 t1 = parsed.parts; |
13608 if (t1.length === 0) | 14392 if (t1.length === 0) |
13609 C.JSArray_methods.addAll$1(t1, ["", ""]); | 14393 C.JSArray_methods.addAll$1(t1, ["", ""]); |
13610 else if (parsed.get$hasTrailingSeparator()) | 14394 else if (parsed.get$hasTrailingSeparator()) |
13611 C.JSArray_methods.add$1(parsed.parts, ""); | 14395 C.JSArray_methods.add$1(parsed.parts, ""); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13721 t1 = uri.scheme; | 14505 t1 = uri.scheme; |
13722 if (t1 !== "" && t1 !== "file") | 14506 if (t1 !== "" && t1 !== "file") |
13723 throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + "
must have scheme 'file:'.")); | 14507 throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + "
must have scheme 'file:'.")); |
13724 path = uri._path; | 14508 path = uri._path; |
13725 if (uri.get$host(uri) === "") { | 14509 if (uri.get$host(uri) === "") { |
13726 if (C.JSString_methods.startsWith$1(path, "/")) | 14510 if (C.JSString_methods.startsWith$1(path, "/")) |
13727 path = C.JSString_methods.replaceFirst$2(path, "/", ""); | 14511 path = C.JSString_methods.replaceFirst$2(path, "/", ""); |
13728 } else | 14512 } else |
13729 path = "\\\\" + H.S(uri.get$host(uri)) + path; | 14513 path = "\\\\" + H.S(uri.get$host(uri)) + path; |
13730 H.checkString("\\"); | 14514 H.checkString("\\"); |
13731 return P.Uri__uriDecode(H.stringReplaceAllUnchecked(path, "/", "\\"), C.
Utf8Codec_false, false); | 14515 t1 = H.stringReplaceAllUnchecked(path, "/", "\\"); |
| 14516 return P.Uri__uriDecode(t1, 0, t1.length, C.Utf8Codec_false, false); |
13732 }, | 14517 }, |
13733 absolutePathToUri$1: function(path) { | 14518 absolutePathToUri$1: function(path) { |
13734 var parsed, t1, rootParts, t2; | 14519 var parsed, t1, rootParts, t2; |
13735 parsed = Q.ParsedPath_ParsedPath$parse(path, this); | 14520 parsed = Q.ParsedPath_ParsedPath$parse(path, this); |
13736 if (J.startsWith$1$s(parsed.root, "\\\\")) { | 14521 if (J.startsWith$1$s(parsed.root, "\\\\")) { |
13737 t1 = J.split$1$s(parsed.root, "\\"); | 14522 t1 = J.split$1$s(parsed.root, "\\"); |
13738 rootParts = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new T.Windows
Style_absolutePathToUri_closure()), [H.getTypeArgumentByIndex(t1, 0)]); | 14523 rootParts = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new T.Windows
Style_absolutePathToUri_closure()), [H.getTypeArgumentByIndex(t1, 0)]); |
13739 C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootPar
ts)); | 14524 C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootPar
ts)); |
13740 if (parsed.get$hasTrailingSeparator()) | 14525 if (parsed.get$hasTrailingSeparator()) |
13741 C.JSArray_methods.add$1(parsed.parts, ""); | 14526 C.JSArray_methods.add$1(parsed.parts, ""); |
13742 return P.Uri_Uri(null, rootParts.get$first(rootParts), null, parsed.pa
rts, null, null, null, "file", ""); | 14527 return P.Uri_Uri(null, rootParts.get$first(rootParts), null, parsed.pa
rts, null, null, null, "file", ""); |
13743 } else { | 14528 } else { |
13744 if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator()) | 14529 if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator()) |
13745 C.JSArray_methods.add$1(parsed.parts, ""); | 14530 C.JSArray_methods.add$1(parsed.parts, ""); |
13746 t1 = parsed.parts; | 14531 t1 = parsed.parts; |
13747 t2 = J.replaceAll$2$s(parsed.root, "/", ""); | 14532 t2 = J.replaceAll$2$s(parsed.root, "/", ""); |
13748 H.checkString(""); | 14533 H.checkString(""); |
13749 C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\"
, "")); | 14534 C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\"
, "")); |
13750 return P.Uri_Uri(null, null, null, parsed.parts, null, null, null, "fi
le", ""); | 14535 return P.Uri_Uri(null, null, null, parsed.parts, null, null, null, "fi
le", ""); |
13751 } | 14536 } |
13752 } | 14537 } |
13753 }, | 14538 }, |
13754 WindowsStyle_absolutePathToUri_closure: { | 14539 WindowsStyle_absolutePathToUri_closure: { |
13755 "^": "Closure:0;", | 14540 "^": "Closure:0;", |
13756 call$1: function(part) { | 14541 call$1: function(part) { |
13757 return !J.$eq$(part, ""); | 14542 return !J.$eq$(part, ""); |
13758 } | 14543 } |
13759 } | 14544 } |
| 14545 }], ["stack_trace.chain", "package:stack_trace/src/chain.dart",, O, { |
| 14546 "^": "", |
| 14547 Chain: { |
| 14548 "^": "Object;traces", |
| 14549 get$terse: function() { |
| 14550 return this.foldFrames$2$terse(new O.Chain_terse_closure(), true); |
| 14551 }, |
| 14552 foldFrames$2$terse: function(predicate, terse) { |
| 14553 var t1, foldedTraces, nonEmptyTraces; |
| 14554 t1 = this.traces; |
| 14555 foldedTraces = t1.map$1(t1, new O.Chain_foldFrames_closure(predicate, tr
ue)); |
| 14556 nonEmptyTraces = foldedTraces.super$Iterable$where(foldedTraces, new O.C
hain_foldFrames_closure0(true)); |
| 14557 if (!nonEmptyTraces.get$iterator(nonEmptyTraces).moveNext$0() && !folded
Traces.get$isEmpty(foldedTraces)) |
| 14558 return new O.Chain(H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.J
SArray_methods.toList$0([foldedTraces.get$last(foldedTraces)])), [R.Trace])); |
| 14559 return new O.Chain(H.setRuntimeTypeInfo(new P.UnmodifiableListView(nonEm
ptyTraces.toList$0(0)), [R.Trace])); |
| 14560 }, |
| 14561 toTrace$0: function() { |
| 14562 var t1 = this.traces; |
| 14563 return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.JSA
rray_methods.toList$0(N.flatten(t1.map$1(t1, new O.Chain_toTrace_closure())))),
[S.Frame])); |
| 14564 }, |
| 14565 toString$0: function(_) { |
| 14566 var t1 = this.traces; |
| 14567 return t1.map$1(t1, new O.Chain_toString_closure(t1.map$1(t1, new O.Chai
n_toString_closure0()).fold$2(0, 0, P.math__max$closure()))).join$1(0, "===== as
ynchronous gap ===========================\n"); |
| 14568 }, |
| 14569 static: {Chain_Chain$parse: function(chain) { |
| 14570 var t1 = J.getInterceptor$asx(chain); |
| 14571 if (t1.get$isEmpty(chain) === true) |
| 14572 return new O.Chain(H.setRuntimeTypeInfo(new P.UnmodifiableListView(C
.JSArray_methods.toList$0([])), [R.Trace])); |
| 14573 if (t1.contains$1(chain, "===== asynchronous gap =====================
======\n") !== true) |
| 14574 return new O.Chain(H.setRuntimeTypeInfo(new P.UnmodifiableListView(C
.JSArray_methods.toList$0([R.Trace_Trace$parse(chain)])), [R.Trace])); |
| 14575 return new O.Chain(H.setRuntimeTypeInfo(new P.UnmodifiableListView(H.s
etRuntimeTypeInfo(new H.MappedListIterable(t1.split$1(chain, "===== asynchronous
gap ===========================\n"), new O.closure2()), [null, null]).toList$0(
0)), [R.Trace])); |
| 14576 }} |
| 14577 }, |
| 14578 closure2: { |
| 14579 "^": "Closure:0;", |
| 14580 call$1: [function(trace) { |
| 14581 return R.Trace$parseFriendly(trace); |
| 14582 }, null, null, 2, 0, null, 11, "call"] |
| 14583 }, |
| 14584 Chain_terse_closure: { |
| 14585 "^": "Closure:0;", |
| 14586 call$1: function(_) { |
| 14587 return false; |
| 14588 } |
| 14589 }, |
| 14590 Chain_foldFrames_closure: { |
| 14591 "^": "Closure:0;predicate,terse", |
| 14592 call$1: [function(trace) { |
| 14593 return trace.foldFrames$2$terse(this.predicate, this.terse); |
| 14594 }, null, null, 2, 0, null, 11, "call"] |
| 14595 }, |
| 14596 Chain_foldFrames_closure0: { |
| 14597 "^": "Closure:0;terse", |
| 14598 call$1: function(trace) { |
| 14599 var t1; |
| 14600 if (trace.get$frames()._collection$_source.length > 1) |
| 14601 return true; |
| 14602 t1 = trace.get$frames(); |
| 14603 if (t1.get$isEmpty(t1)) |
| 14604 return false; |
| 14605 if (!this.terse) |
| 14606 return false; |
| 14607 t1 = trace.get$frames(); |
| 14608 return t1.get$single(t1).get$line() != null; |
| 14609 } |
| 14610 }, |
| 14611 Chain_toTrace_closure: { |
| 14612 "^": "Closure:0;", |
| 14613 call$1: [function(trace) { |
| 14614 return trace.get$frames(); |
| 14615 }, null, null, 2, 0, null, 11, "call"] |
| 14616 }, |
| 14617 Chain_toString_closure0: { |
| 14618 "^": "Closure:0;", |
| 14619 call$1: [function(trace) { |
| 14620 var t1 = trace.get$frames(); |
| 14621 return t1.map$1(t1, new O.Chain_toString__closure0()).fold$2(0, 0, P.mat
h__max$closure()); |
| 14622 }, null, null, 2, 0, null, 11, "call"] |
| 14623 }, |
| 14624 Chain_toString__closure0: { |
| 14625 "^": "Closure:0;", |
| 14626 call$1: [function(frame) { |
| 14627 return J.get$length$asx(J.get$location$x(frame)); |
| 14628 }, null, null, 2, 0, null, 12, "call"] |
| 14629 }, |
| 14630 Chain_toString_closure: { |
| 14631 "^": "Closure:0;longest", |
| 14632 call$1: [function(trace) { |
| 14633 var t1 = trace.get$frames(); |
| 14634 return t1.map$1(t1, new O.Chain_toString__closure(this.longest)).join$0(
0); |
| 14635 }, null, null, 2, 0, null, 11, "call"] |
| 14636 }, |
| 14637 Chain_toString__closure: { |
| 14638 "^": "Closure:0;longest", |
| 14639 call$1: [function(frame) { |
| 14640 return H.S(N.padRight(J.get$location$x(frame), this.longest)) + " " + H
.S(frame.get$member()) + "\n"; |
| 14641 }, null, null, 2, 0, null, 12, "call"] |
| 14642 } |
13760 }], ["stack_trace.src.utils", "package:stack_trace/src/utils.dart",, N, { | 14643 }], ["stack_trace.src.utils", "package:stack_trace/src/utils.dart",, N, { |
13761 "^": "", | 14644 "^": "", |
13762 padRight: function(string, $length) { | 14645 padRight: function(string, $length) { |
13763 var t1, t2, result, i; | 14646 var t1, t2, result, i; |
13764 t1 = J.getInterceptor$asx(string); | 14647 t1 = J.getInterceptor$asx(string); |
13765 t2 = t1.get$length(string); | 14648 t2 = t1.get$length(string); |
13766 if (typeof $length !== "number") | 14649 if (typeof $length !== "number") |
13767 return H.iae($length); | 14650 return H.iae($length); |
13768 if (t2 >= $length) | 14651 if (t2 >= $length) |
13769 return string; | 14652 return string; |
13770 result = new P.StringBuffer(""); | 14653 result = new P.StringBuffer(""); |
13771 result._contents = H.S(string); | 14654 result._contents = H.S(string); |
13772 for (i = 0; i < $length - t1.get$length(string); ++i) | 14655 for (i = 0; i < $length - t1.get$length(string); ++i) |
13773 result._contents += " "; | 14656 result._contents += " "; |
13774 t1 = result._contents; | 14657 t1 = result._contents; |
13775 return t1.charCodeAt(0) == 0 ? t1 : t1; | 14658 return t1.charCodeAt(0) == 0 ? t1 : t1; |
| 14659 }, |
| 14660 flatten: function(nested) { |
| 14661 var result = []; |
| 14662 new N.flatten_helper(result).call$1(nested); |
| 14663 return result; |
| 14664 }, |
| 14665 flatten_helper: { |
| 14666 "^": "Closure:0;result", |
| 14667 call$1: function(list) { |
| 14668 var t1, t2, element; |
| 14669 for (t1 = J.get$iterator$ax(list), t2 = this.result; t1.moveNext$0();) { |
| 14670 element = t1.get$current(); |
| 14671 if (!!J.getInterceptor(element).$isList) |
| 14672 this.call$1(element); |
| 14673 else |
| 14674 t2.push(element); |
| 14675 } |
| 14676 } |
13776 } | 14677 } |
13777 }], ["test.multi_channel", "package:test/src/util/multi_channel.dart",, V, { | 14678 }], ["stack_trace.unparsed_frame", "package:stack_trace/src/unparsed_frame.dar
t",, N, { |
13778 "^": "", | 14679 "^": "", |
13779 _MultiChannel: { | 14680 UnparsedFrame: { |
13780 "^": "StreamChannelMixin;_innerStream,_innerSink,_innerStreamSubscription,
_streamController,_sinkController,_streamControllers,_sinkControllers,_nextId", | 14681 "^": "Object;uri<,line<,column<,isCore<,library<,$package<,location>,membe
r<", |
13781 virtualChannel$1: function(id) { | 14682 toString$0: function(_) { |
13782 var t1, t2, inputId, t3, streamController, sinkController; | 14683 return this.member; |
13783 t1 = {}; | 14684 } |
13784 if (this._innerStream == null) | 14685 } |
13785 throw H.wrapException(new P.StateError("The underlying channel is clos
ed.")); | 14686 }], ["", "package:stream_channel/stream_channel.dart",, R, { |
13786 t1._captured_inputId_0 = null; | 14687 "^": "", |
13787 t1._captured_outputId_1 = null; | 14688 StreamChannelMixin: { |
13788 if (id != null) { | 14689 "^": "Object;" |
13789 t1._captured_inputId_0 = id; | 14690 } |
13790 t1._captured_outputId_1 = H.intTypeCast(id) + 1; | 14691 }], ["", "package:stream_channel/src/stream_channel_controller.dart",, B, { |
13791 t2 = id; | 14692 "^": "", |
13792 } else { | 14693 StreamChannelController: { |
13793 t2 = this._nextId; | 14694 "^": "Object;_local,_foreign", |
13794 inputId = t2 + 1; | 14695 get$local: function() { |
13795 t1._captured_inputId_0 = inputId; | 14696 return this._local; |
13796 t1._captured_outputId_1 = t2; | |
13797 this._nextId = t2 + 2; | |
13798 t2 = inputId; | |
13799 } | |
13800 t3 = this._streamControllers; | |
13801 if (t3.containsKey$1(t2)) | |
13802 throw H.wrapException(P.ArgumentError$("A virtual channel with id " +
H.S(id) + " already exists.")); | |
13803 streamController = P.StreamController_StreamController(null, null, null,
null, true, null); | |
13804 sinkController = P.StreamController_StreamController(null, null, null, n
ull, true, null); | |
13805 t3.$indexSet(0, t2, streamController); | |
13806 this._sinkControllers.$indexSet(0, t2, sinkController); | |
13807 H.setRuntimeTypeInfo(new P._ControllerStream(sinkController), [H.getType
ArgumentByIndex(sinkController, 0)]).listen$2$onDone(new V._MultiChannel_virtual
Channel_closure(t1, this), new V._MultiChannel_virtualChannel_closure0(t1, this)
); | |
13808 return new V.VirtualChannel(this, t1._captured_outputId_1, H.setRuntimeT
ypeInfo(new P._ControllerStream(streamController), [H.getTypeArgumentByIndex(str
eamController, 0)]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(sinkControlle
r), [H.getTypeArgumentByIndex(sinkController, 0)])); | |
13809 }, | 14697 }, |
13810 _closeChannel$2: function(inputId, outputId) { | 14698 StreamChannelController$2$allowForeignErrors$sync: function(allowForeignEr
rors, sync, $T) { |
13811 var t1, t2; | 14699 var localToForeignController, foreignToLocalController; |
13812 t1 = this._streamControllers; | 14700 localToForeignController = P.StreamController_StreamController(null, nul
l, null, null, true, $T); |
13813 J.close$0$x(t1.remove$1(0, inputId)); | 14701 foreignToLocalController = P.StreamController_StreamController(null, nul
l, null, null, true, $T); |
13814 J.close$0$x(this._sinkControllers.remove$1(0, inputId)); | 14702 this._local = K.GuaranteeChannel$(H.setRuntimeTypeInfo(new P._Controller
Stream(foreignToLocalController), [H.getTypeArgumentByIndex(foreignToLocalContro
ller, 0)]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(localToForeignControll
er), [H.getTypeArgumentByIndex(localToForeignController, 0)]), true, null); |
13815 t2 = this._innerSink; | 14703 this._foreign = K.GuaranteeChannel$(H.setRuntimeTypeInfo(new P._Controll
erStream(localToForeignController), [H.getTypeArgumentByIndex(localToForeignCont
roller, 0)]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(foreignToLocalContro
ller), [H.getTypeArgumentByIndex(foreignToLocalController, 0)]), true, null); |
13816 if (t2 == null) | |
13817 return; | |
13818 t2 = t2._async$_target; | |
13819 if (t2._state >= 4) | |
13820 H.throwExpression(t2._badEventState$0()); | |
13821 t2._async$_add$1([outputId]); | |
13822 if (t1.get$isEmpty(t1)) | |
13823 this._closeInnerChannel$0(); | |
13824 }, | 14704 }, |
13825 _closeInnerChannel$0: [function() { | 14705 static: {StreamChannelController$: function(allowForeignErrors, sync, $T)
{ |
13826 var t1, t2, _i; | 14706 var t1 = H.setRuntimeTypeInfo(new B.StreamChannelController(null, null
), [$T]); |
13827 this._innerSink._async$_target.close$0(0); | 14707 t1.StreamChannelController$2$allowForeignErrors$sync(true, true, $T); |
13828 this._innerStreamSubscription.cancel$0(); | |
13829 this._innerStream = null; | |
13830 this._innerSink = null; | |
13831 for (t1 = this._sinkControllers, t1 = t1.get$values(t1), t1 = P.List_Lis
t$from(t1, true, H.getRuntimeTypeArgument(t1, "Iterable", 0)), t2 = t1.length, _
i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationErro
r)(t1), ++_i) | |
13832 J.close$0$x(t1[_i]); | |
13833 }, "call$0", "get$_closeInnerChannel", 0, 0, 2], | |
13834 _MultiChannel$2: function(_innerStream, _innerSink) { | |
13835 var t1, t2; | |
13836 t1 = this._streamController; | |
13837 this._streamControllers.$indexSet(0, 0, t1); | |
13838 t2 = this._sinkController; | |
13839 this._sinkControllers.$indexSet(0, 0, t2); | |
13840 H.setRuntimeTypeInfo(new P._ControllerStream(t2), [H.getTypeArgumentByIn
dex(t2, 0)]).listen$2$onDone(new V._MultiChannel_closure(this), new V._MultiChan
nel_closure0(this)); | |
13841 this._innerStreamSubscription = this._innerStream.listen$3$onDone$onErro
r(new V._MultiChannel_closure1(this), this.get$_closeInnerChannel(), t1.get$addE
rror()); | |
13842 }, | |
13843 static: {_MultiChannel$: function(_innerStream, _innerSink) { | |
13844 var t1 = new V._MultiChannel(_innerStream, _innerSink, null, P.StreamC
ontroller_StreamController(null, null, null, null, true, null), P.StreamControll
er_StreamController(null, null, null, null, true, null), P.LinkedHashMap_LinkedH
ashMap(null, null, null, P.$int, P.StreamController), P.LinkedHashMap_LinkedHash
Map(null, null, null, P.$int, P.StreamController), 1); | |
13845 t1._MultiChannel$2(_innerStream, _innerSink); | |
13846 return t1; | 14708 return t1; |
13847 }} | 14709 }} |
13848 }, | |
13849 _MultiChannel_closure: { | |
13850 "^": "Closure:0;_multi_channel$_captured_this_0", | |
13851 call$1: [function(message) { | |
13852 var t1 = this._multi_channel$_captured_this_0._innerSink._async$_target; | |
13853 if (t1._state >= 4) | |
13854 H.throwExpression(t1._badEventState$0()); | |
13855 t1._async$_add$1([0, message]); | |
13856 return; | |
13857 }, null, null, 2, 0, null, 6, "call"] | |
13858 }, | |
13859 _MultiChannel_closure0: { | |
13860 "^": "Closure:1;_captured_this_1", | |
13861 call$0: [function() { | |
13862 return this._captured_this_1._closeChannel$2(0, 0); | |
13863 }, null, null, 0, 0, null, "call"] | |
13864 }, | |
13865 _MultiChannel_closure1: { | |
13866 "^": "Closure:0;_multi_channel$_captured_this_2", | |
13867 call$1: [function(message) { | |
13868 var t1, id, t2, sink; | |
13869 t1 = J.getInterceptor$asx(message); | |
13870 id = t1.$index(message, 0); | |
13871 t2 = this._multi_channel$_captured_this_2; | |
13872 sink = t2._streamControllers.$index(0, id); | |
13873 if (sink == null) | |
13874 return; | |
13875 if (J.$gt$n(t1.get$length(message), 1)) { | |
13876 J.add$1$ax(sink, t1.$index(message, 1)); | |
13877 return; | |
13878 } | |
13879 J.close$0$x(t2._sinkControllers.$index(0, id)); | |
13880 }, null, null, 2, 0, null, 6, "call"] | |
13881 }, | |
13882 _MultiChannel_virtualChannel_closure: { | |
13883 "^": "Closure:0;_multi_channel$_box_0,_captured_this_1", | |
13884 call$1: [function(message) { | |
13885 var t1, t2; | |
13886 t1 = this._captured_this_1._innerSink; | |
13887 t2 = this._multi_channel$_box_0._captured_outputId_1; | |
13888 t1 = t1._async$_target; | |
13889 if (t1._state >= 4) | |
13890 H.throwExpression(t1._badEventState$0()); | |
13891 t1._async$_add$1([t2, message]); | |
13892 return; | |
13893 }, null, null, 2, 0, null, 6, "call"] | |
13894 }, | |
13895 _MultiChannel_virtualChannel_closure0: { | |
13896 "^": "Closure:1;_multi_channel$_box_0,_multi_channel$_captured_this_2", | |
13897 call$0: [function() { | |
13898 var t1 = this._multi_channel$_box_0; | |
13899 return this._multi_channel$_captured_this_2._closeChannel$2(t1._captured
_inputId_0, t1._captured_outputId_1); | |
13900 }, null, null, 0, 0, null, "call"] | |
13901 }, | |
13902 VirtualChannel: { | |
13903 "^": "StreamChannelMixin;_parent,id,stream,sink" | |
13904 } | |
13905 }], ["test.runner.browser.host", "host.dart",, R, { | |
13906 "^": "", | |
13907 main: [function() { | |
13908 var testRunner = J.$index$asx($.$get$context(), "testRunner"); | |
13909 if (testRunner != null) | |
13910 testRunner.callMethod$2("waitUntilDone", []); | |
13911 P.runZoned(new R.main_closure(), new R.main_closure0(), null, null); | |
13912 }, "call$0", "host__main$closure", 0, 0, 2], | |
13913 _connectToServer: function() { | |
13914 var currentUrl, t1, webSocket, inputController, outputController; | |
13915 currentUrl = P.Uri_parse(window.location.href, 0, null); | |
13916 t1 = currentUrl._queryParameters; | |
13917 if (t1 == null) { | |
13918 t1 = currentUrl._query; | |
13919 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryStri
ng(t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]); | |
13920 currentUrl._queryParameters = t1; | |
13921 } | |
13922 webSocket = W.WebSocket_WebSocket(J.$index$asx(t1._collection$_map, "manag
erUrl"), null); | |
13923 inputController = P.StreamController_StreamController(null, null, null, nu
ll, true, null); | |
13924 t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false),
[null]); | |
13925 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._eve
ntType, W._wrapZone(new R._connectToServer_closure(inputController)), t1._useCap
ture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0(); | |
13926 outputController = P.StreamController_StreamController(null, null, null, n
ull, true, null); | |
13927 H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [H.getType
ArgumentByIndex(outputController, 0)]).listen$1(new R._connectToServer_closure0(
webSocket)); | |
13928 return V._MultiChannel$(H.setRuntimeTypeInfo(new P._ControllerStream(input
Controller), [H.getTypeArgumentByIndex(inputController, 0)]), H.setRuntimeTypeIn
fo(new P._StreamSinkWrapper(outputController), [H.getTypeArgumentByIndex(outputC
ontroller, 0)])); | |
13929 }, | |
13930 _connectToIframe: function(url, id) { | |
13931 var iframe, inputController, outputController, readyCompleter, t1; | |
13932 iframe = document.createElement("iframe", null); | |
13933 $.$get$_iframes().$indexSet(0, id, iframe); | |
13934 J.set$src$x(iframe, url); | |
13935 document.body.appendChild(iframe); | |
13936 inputController = P.StreamController_StreamController(null, null, null, nu
ll, true, null); | |
13937 outputController = P.StreamController_StreamController(null, null, null, n
ull, true, null); | |
13938 readyCompleter = H.setRuntimeTypeInfo(new P._AsyncCompleter(H.setRuntimeTy
peInfo(new P._Future(0, $.Zone__current, null), [null])), [null]); | |
13939 t1 = H.setRuntimeTypeInfo(new W._EventStream(window, "message", false), [n
ull]); | |
13940 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._eve
ntType, W._wrapZone(new R._connectToIframe_closure(iframe, inputController, read
yCompleter)), t1._useCapture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0()
; | |
13941 H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [H.getType
ArgumentByIndex(outputController, 0)]).listen$1(new R._connectToIframe_closure0(
iframe, readyCompleter)); | |
13942 return H.setRuntimeTypeInfo(new A._StreamChannel(H.setRuntimeTypeInfo(new
P._ControllerStream(inputController), [H.getTypeArgumentByIndex(inputController,
0)]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputController), [H.getTy
peArgumentByIndex(outputController, 0)])), [null]); | |
13943 }, | |
13944 main_closure: { | |
13945 "^": "Closure:1;", | |
13946 call$0: [function() { | |
13947 var serverChannel, t1; | |
13948 serverChannel = R._connectToServer(); | |
13949 t1 = serverChannel._streamController; | |
13950 H.setRuntimeTypeInfo(new P._ControllerStream(t1), [H.getTypeArgumentByIn
dex(t1, 0)]).listen$1(new R.main__closure(serverChannel)); | |
13951 t1 = J.get$onClick$x(document.querySelector("#play")); | |
13952 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._target, t1._e
ventType, W._wrapZone(new R.main__closure0(serverChannel)), t1._useCapture), [H.
getTypeArgumentByIndex(t1, 0)])._tryResume$0(); | |
13953 }, null, null, 0, 0, null, "call"] | |
13954 }, | |
13955 main__closure: { | |
13956 "^": "Closure:0;_captured_serverChannel_0", | |
13957 call$1: [function(message) { | |
13958 var t1, suiteChannel, iframeChannel; | |
13959 t1 = J.getInterceptor$asx(message); | |
13960 if (J.$eq$(t1.$index(message, "command"), "loadSuite")) { | |
13961 suiteChannel = this._captured_serverChannel_0.virtualChannel$1(t1.$ind
ex(message, "channel")); | |
13962 iframeChannel = R._connectToIframe(t1.$index(message, "url"), t1.$inde
x(message, "id")); | |
13963 suiteChannel.stream.pipe$1(iframeChannel.sink); | |
13964 iframeChannel.stream.pipe$1(suiteChannel.sink); | |
13965 } else if (J.$eq$(t1.$index(message, "command"), "displayPause")) { | |
13966 t1 = document.body; | |
13967 t1.toString; | |
13968 W._ElementCssClassSet__add(t1, "paused"); | |
13969 } else if (J.$eq$(t1.$index(message, "command"), "resume")) { | |
13970 t1 = document.body; | |
13971 t1.toString; | |
13972 W._ElementCssClassSet__remove(t1, "paused"); | |
13973 } else | |
13974 J.remove$0$ax($.$get$_iframes().$index(0, t1.$index(message, "id"))); | |
13975 }, null, null, 2, 0, null, 6, "call"] | |
13976 }, | |
13977 main__closure0: { | |
13978 "^": "Closure:0;_captured_serverChannel_1", | |
13979 call$1: [function(_) { | |
13980 var t1, t2; | |
13981 t1 = document.body; | |
13982 t1.toString; | |
13983 W._ElementCssClassSet__remove(t1, "paused"); | |
13984 t1 = this._captured_serverChannel_1._sinkController; | |
13985 t1 = H.setRuntimeTypeInfo(new P._StreamSinkWrapper(t1), [H.getTypeArgume
ntByIndex(t1, 0)]); | |
13986 t2 = P.LinkedHashMap__makeLiteral(["command", "resume"]); | |
13987 t1 = t1._async$_target; | |
13988 if (t1._state >= 4) | |
13989 H.throwExpression(t1._badEventState$0()); | |
13990 t1._async$_add$1(t2); | |
13991 }, null, null, 2, 0, null, 11, "call"] | |
13992 }, | |
13993 main_closure0: { | |
13994 "^": "Closure:3;", | |
13995 call$2: [function(error, stackTrace) { | |
13996 P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse
())); | |
13997 }, null, null, 4, 0, null, 3, 4, "call"] | |
13998 }, | |
13999 _connectToServer_closure: { | |
14000 "^": "Closure:0;_captured_inputController_0", | |
14001 call$1: [function(message) { | |
14002 var t1, t2; | |
14003 t1 = this._captured_inputController_0; | |
14004 t2 = C.JsonCodec_null_null.decode$1(J.get$data$x(message)); | |
14005 if (t1._state >= 4) | |
14006 H.throwExpression(t1._badEventState$0()); | |
14007 t1._async$_add$1(t2); | |
14008 }, null, null, 2, 0, null, 6, "call"] | |
14009 }, | |
14010 _connectToServer_closure0: { | |
14011 "^": "Closure:0;_captured_webSocket_1", | |
14012 call$1: [function(message) { | |
14013 return this._captured_webSocket_1.send(C.JsonCodec_null_null.encode$1(me
ssage)); | |
14014 }, null, null, 2, 0, null, 6, "call"] | |
14015 }, | |
14016 _connectToIframe_closure: { | |
14017 "^": "Closure:0;_captured_iframe_0,_captured_inputController_1,_captured_r
eadyCompleter_2", | |
14018 call$1: [function(message) { | |
14019 var t1, t2, t3; | |
14020 t1 = J.getInterceptor$x(message); | |
14021 t2 = t1.get$origin(message); | |
14022 t3 = window.location; | |
14023 if (t2 !== (t3 && C.Location_methods).get$origin(t3)) | |
14024 return; | |
14025 if (!J.$eq$(J.$index$asx(t1.get$data(message), "href"), J.get$src$x(this
._captured_iframe_0))) | |
14026 return; | |
14027 t1.stopPropagation$0(message); | |
14028 t2 = this._captured_inputController_1; | |
14029 t1 = J.$index$asx(t1.get$data(message), "data"); | |
14030 if (t2._state >= 4) | |
14031 H.throwExpression(t2._badEventState$0()); | |
14032 t2._async$_add$1(t1); | |
14033 t1 = this._captured_readyCompleter_2; | |
14034 if (t1.future._state === 0) | |
14035 t1.complete$0(0); | |
14036 }, null, null, 2, 0, null, 6, "call"] | |
14037 }, | |
14038 _connectToIframe_closure0: { | |
14039 "^": "Closure:52;_captured_iframe_3,_captured_readyCompleter_4", | |
14040 call$1: [function(message) { | |
14041 var $async$goto = 0, $async$completer = new P.Completer_Completer(), $as
ync$handler = 1, $async$currentError, $async$self = this, t1, t2, $async$temp1,
$async$temp2, $async$temp3, $async$temp4; | |
14042 function $async$call$1($async$errorCode, $async$result) { | |
14043 if ($async$errorCode === 1) { | |
14044 $async$currentError = $async$result; | |
14045 $async$goto = $async$handler; | |
14046 } | |
14047 while (true) | |
14048 switch ($async$goto) { | |
14049 case 0: | |
14050 // Function start | |
14051 $async$temp1 = $async$self; | |
14052 $async$temp1 = $async$temp1._captured_readyCompleter_4; | |
14053 $async$goto = 2; | |
14054 return H.asyncHelper($async$temp1.future, $async$call$1, $async$
completer); | |
14055 case 2: | |
14056 // returning from await. | |
14057 $async$temp1 = J; | |
14058 $async$temp1 = $async$temp1; | |
14059 $async$temp2 = $async$self; | |
14060 t1 = $async$temp1.get$contentWindow$x($async$temp2._captured_ifr
ame_3); | |
14061 t2 = window.location; | |
14062 $async$temp1 = J; | |
14063 $async$temp1 = $async$temp1; | |
14064 $async$temp2 = t1; | |
14065 $async$temp3 = message; | |
14066 $async$temp4 = t2; | |
14067 if ($async$temp4) { | |
14068 // goto then | |
14069 $async$goto = 3; | |
14070 break; | |
14071 } else | |
14072 $async$result = $async$temp4; | |
14073 // goto join | |
14074 $async$goto = 4; | |
14075 break; | |
14076 case 3: | |
14077 // then | |
14078 $async$temp4 = C; | |
14079 $async$result = $async$temp4.Location_methods; | |
14080 case 4: | |
14081 // join | |
14082 $async$temp4 = $async$result; | |
14083 $async$temp1.postMessage$2$x($async$temp2, $async$temp3, $async$
temp4.get$origin(t2)); | |
14084 // implicit return | |
14085 return H.asyncHelper(null, 0, $async$completer, null); | |
14086 case 1: | |
14087 // rethrow | |
14088 return H.asyncHelper($async$currentError, 1, $async$completer); | |
14089 } | |
14090 } | |
14091 return H.asyncHelper(null, $async$call$1, $async$completer, null); | |
14092 }, null, null, 2, 0, null, 6, "call"] | |
14093 } | |
14094 }, 1], ["test.stream_channel", "package:test/src/util/stream_channel.dart",, A
, { | |
14095 "^": "", | |
14096 _StreamChannel: { | |
14097 "^": "StreamChannelMixin;stream,sink" | |
14098 }, | |
14099 StreamChannelMixin: { | |
14100 "^": "Object;" | |
14101 } | 14710 } |
14102 }], ["trace", "package:stack_trace/src/trace.dart",, R, { | 14711 }], ["trace", "package:stack_trace/src/trace.dart",, R, { |
14103 "^": "", | 14712 "^": "", |
14104 Trace: { | 14713 Trace: { |
14105 "^": "Object;frames", | 14714 "^": "Object;frames<", |
14106 get$terse: function() { | 14715 get$terse: function() { |
14107 return this.foldFrames$2$terse(new R.Trace_terse_closure(), true); | 14716 return this.foldFrames$2$terse(new R.Trace_terse_closure(), true); |
14108 }, | 14717 }, |
14109 foldFrames$2$terse: function(predicate, terse) { | 14718 foldFrames$2$terse: function(predicate, terse) { |
14110 var t1, newFrames, t2, frame; | 14719 var t1, newFrames, t2, frame; |
14111 t1 = {}; | 14720 t1 = {}; |
14112 t1._captured_predicate_0 = predicate; | 14721 t1.predicate = predicate; |
14113 if (terse) | 14722 t1.predicate = new R.Trace_foldFrames_closure(predicate); |
14114 t1._captured_predicate_0 = new R.Trace_foldFrames_closure(predicate); | |
14115 newFrames = []; | 14723 newFrames = []; |
14116 for (t2 = this.frames, t2 = t2.get$reversed(t2), t2 = new H.ListIterator
(t2, t2.get$length(t2), 0, null); t2.moveNext$0();) { | 14724 for (t2 = this.frames, t2 = t2.get$reversed(t2), t2 = new H.ListIterator
(t2, t2.get$length(t2), 0, null); t2.moveNext$0();) { |
14117 frame = t2.__internal$_current; | 14725 frame = t2._current; |
14118 if (t1._captured_predicate_0.call$1(frame) !== true) | 14726 if (frame instanceof N.UnparsedFrame || t1.predicate.call$1(frame) !==
true) |
14119 newFrames.push(frame); | 14727 newFrames.push(frame); |
14120 else if (newFrames.length === 0 || t1._captured_predicate_0.call$1(C.J
SArray_methods.get$last(newFrames)) !== true) | 14728 else if (newFrames.length === 0 || t1.predicate.call$1(C.JSArray_metho
ds.get$last(newFrames)) !== true) |
14121 newFrames.push(new S.Frame(frame.get$uri(), frame.get$line(), frame.
get$column(), frame.get$member())); | 14729 newFrames.push(new S.Frame(frame.get$uri(), frame.get$line(), frame.
get$column(), frame.get$member())); |
14122 } | 14730 } |
14123 if (terse) { | 14731 newFrames = H.setRuntimeTypeInfo(new H.MappedListIterable(newFrames, new
R.Trace_foldFrames_closure0(t1)), [null, null]).toList$0(0); |
14124 newFrames = H.setRuntimeTypeInfo(new H.MappedListIterable(newFrames, n
ew R.Trace_foldFrames_closure0(t1)), [null, null]).toList$0(0); | 14732 if (newFrames.length > 1 && C.JSArray_methods.get$first(newFrames).get$i
sCore()) |
14125 if (newFrames.length > 1 && C.JSArray_methods.get$first(newFrames).get
$isCore()) | 14733 C.JSArray_methods.removeAt$1(newFrames, 0); |
14126 C.JSArray_methods.removeAt$1(newFrames, 0); | |
14127 } | |
14128 return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(H.set
RuntimeTypeInfo(new H.ReversedListIterable(newFrames), [H.getTypeArgumentByIndex
(newFrames, 0)]).toList$0(0)), [S.Frame])); | 14734 return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(H.set
RuntimeTypeInfo(new H.ReversedListIterable(newFrames), [H.getTypeArgumentByIndex
(newFrames, 0)]).toList$0(0)), [S.Frame])); |
14129 }, | 14735 }, |
14130 toString$0: function(_) { | 14736 toString$0: function(_) { |
14131 var t1 = this.frames; | 14737 var t1 = this.frames; |
14132 return t1.map$1(t1, new R.Trace_toString_closure(t1.map$1(t1, new R.Trac
e_toString_closure0()).fold$2(0, 0, P.math__max$closure()))).join$0(0); | 14738 return t1.map$1(t1, new R.Trace_toString_closure(t1.map$1(t1, new R.Trac
e_toString_closure0()).fold$2(0, 0, P.math__max$closure()))).join$0(0); |
14133 }, | 14739 }, |
| 14740 $isStackTrace: 1, |
14134 static: {Trace_Trace$from: function(trace) { | 14741 static: {Trace_Trace$from: function(trace) { |
| 14742 var t1; |
14135 if (trace == null) | 14743 if (trace == null) |
14136 throw H.wrapException(P.ArgumentError$("Cannot create a Trace from n
ull.")); | 14744 throw H.wrapException(P.ArgumentError$("Cannot create a Trace from n
ull.")); |
14137 if (!!J.getInterceptor(trace).$isTrace) | 14745 t1 = J.getInterceptor(trace); |
| 14746 if (!!t1.$isTrace) |
14138 return trace; | 14747 return trace; |
14139 return new S.LazyTrace(new R.Trace_Trace$from_closure(trace), null); | 14748 if (!!t1.$isChain) |
| 14749 return trace.toTrace$0(); |
| 14750 return new S.LazyTrace(new R.closure(trace), null); |
14140 }, Trace_Trace$parse: function(trace) { | 14751 }, Trace_Trace$parse: function(trace) { |
14141 var error, t1, exception; | 14752 var error, t1, exception; |
14142 try { | 14753 try { |
14143 if (J.get$isEmpty$asx(trace) === true) { | 14754 if (J.get$isEmpty$asx(trace) === true) { |
14144 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.JSArray_met
hods.toList$0(H.setRuntimeTypeInfo([], [S.Frame]))), [S.Frame]); | 14755 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.JSArray_met
hods.toList$0(H.setRuntimeTypeInfo([], [S.Frame]))), [S.Frame]); |
14145 return new R.Trace(t1); | 14756 return new R.Trace(t1); |
14146 } | 14757 } |
14147 if (J.contains$1$asx(trace, $.$get$_v8Trace()) === true) { | 14758 if (J.contains$1$asx(trace, $.$get$_v8Trace()) === true) { |
14148 t1 = R.Trace$parseV8(trace); | 14759 t1 = R.Trace$parseV8(trace); |
14149 return t1; | 14760 return t1; |
14150 } | 14761 } |
14151 if (J.startsWith$1$s(trace, "\tat ")) { | 14762 if (J.contains$1$asx(trace, "\tat ") === true) { |
14152 t1 = R.Trace$parseJSCore(trace); | 14763 t1 = R.Trace$parseJSCore(trace); |
14153 return t1; | 14764 return t1; |
14154 } | 14765 } |
14155 if (J.contains$1$asx(trace, $.$get$_firefoxSafariTrace()) === true)
{ | 14766 if (J.contains$1$asx(trace, $.$get$_firefoxSafariTrace()) === true)
{ |
14156 t1 = R.Trace$parseFirefox(trace); | 14767 t1 = R.Trace$parseFirefox(trace); |
14157 return t1; | 14768 return t1; |
14158 } | 14769 } |
| 14770 if (J.contains$1$asx(trace, "===== asynchronous gap ================
===========\n") === true) { |
| 14771 t1 = O.Chain_Chain$parse(trace).toTrace$0(); |
| 14772 return t1; |
| 14773 } |
14159 if (J.contains$1$asx(trace, $.$get$_friendlyTrace()) === true) { | 14774 if (J.contains$1$asx(trace, $.$get$_friendlyTrace()) === true) { |
14160 t1 = R.Trace$parseFriendly(trace); | 14775 t1 = R.Trace$parseFriendly(trace); |
14161 return t1; | 14776 return t1; |
14162 } | 14777 } |
14163 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.JSArray_metho
ds.toList$0(R.Trace__parseVM(trace))), [S.Frame]); | 14778 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(C.JSArray_metho
ds.toList$0(R.Trace__parseVM(trace))), [S.Frame]); |
14164 return new R.Trace(t1); | 14779 return new R.Trace(t1); |
14165 } catch (exception) { | 14780 } catch (exception) { |
14166 t1 = H.unwrapException(exception); | 14781 t1 = H.unwrapException(exception); |
14167 if (t1 instanceof P.FormatException) { | 14782 if (t1 instanceof P.FormatException) { |
14168 error = t1; | 14783 error = t1; |
(...skipping 26 matching lines...) Expand all Loading... |
14195 if (t1.get$isEmpty(trace) === true) | 14810 if (t1.get$isEmpty(trace) === true) |
14196 t1 = []; | 14811 t1 = []; |
14197 else { | 14812 else { |
14198 t1 = t1.trim$0(trace).split("\n"); | 14813 t1 = t1.trim$0(trace).split("\n"); |
14199 t1 = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new R.Trace$parseF
riendly_closure()), [H.getTypeArgumentByIndex(t1, 0)]); | 14814 t1 = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new R.Trace$parseF
riendly_closure()), [H.getTypeArgumentByIndex(t1, 0)]); |
14200 t1 = H.MappedIterable_MappedIterable(t1, new R.Trace$parseFriendly_c
losure0(), H.getRuntimeTypeArgument(t1, "Iterable", 0), null); | 14815 t1 = H.MappedIterable_MappedIterable(t1, new R.Trace$parseFriendly_c
losure0(), H.getRuntimeTypeArgument(t1, "Iterable", 0), null); |
14201 } | 14816 } |
14202 return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(J.t
oList$0$ax(t1)), [S.Frame])); | 14817 return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(J.t
oList$0$ax(t1)), [S.Frame])); |
14203 }} | 14818 }} |
14204 }, | 14819 }, |
14205 Trace_Trace$from_closure: { | 14820 closure: { |
14206 "^": "Closure:1;_captured_trace_0", | 14821 "^": "Closure:1;trace", |
14207 call$0: function() { | 14822 call$0: function() { |
14208 return R.Trace_Trace$parse(J.toString$0$(this._captured_trace_0)); | 14823 return R.Trace_Trace$parse(J.toString$0$(this.trace)); |
14209 } | 14824 } |
14210 }, | 14825 }, |
14211 Trace__parseVM_closure: { | 14826 Trace__parseVM_closure: { |
14212 "^": "Closure:0;", | 14827 "^": "Closure:0;", |
14213 call$1: [function(line) { | 14828 call$1: [function(line) { |
14214 return S.Frame_Frame$parseVM(line); | 14829 return S.Frame_Frame$parseVM(line); |
14215 }, null, null, 2, 0, null, 10, "call"] | 14830 }, null, null, 2, 0, null, 10, "call"] |
14216 }, | 14831 }, |
14217 Trace$parseV8_closure: { | 14832 Trace$parseV8_closure: { |
14218 "^": "Closure:0;", | 14833 "^": "Closure:0;", |
(...skipping 22 matching lines...) Expand all Loading... |
14241 Trace$parseFirefox_closure: { | 14856 Trace$parseFirefox_closure: { |
14242 "^": "Closure:0;", | 14857 "^": "Closure:0;", |
14243 call$1: function(line) { | 14858 call$1: function(line) { |
14244 var t1 = J.getInterceptor$asx(line); | 14859 var t1 = J.getInterceptor$asx(line); |
14245 return t1.get$isNotEmpty(line) && !t1.$eq(line, "[native code]"); | 14860 return t1.get$isNotEmpty(line) && !t1.$eq(line, "[native code]"); |
14246 } | 14861 } |
14247 }, | 14862 }, |
14248 Trace$parseFirefox_closure0: { | 14863 Trace$parseFirefox_closure0: { |
14249 "^": "Closure:0;", | 14864 "^": "Closure:0;", |
14250 call$1: [function(line) { | 14865 call$1: [function(line) { |
14251 var match, t1, uri, t2, t3, member, column; | 14866 return S.Frame_Frame$parseFirefox(line); |
14252 match = $.$get$_firefoxSafariFrame().firstMatch$1(line); | |
14253 if (match == null) | |
14254 H.throwExpression(new P.FormatException("Couldn't parse Firefox/Safari
stack trace line '" + H.S(line) + "'.", null, null)); | |
14255 t1 = match._match; | |
14256 if (3 >= t1.length) | |
14257 return H.ioore(t1, 3); | |
14258 uri = S.Frame__uriOrPathToUri(t1[3]); | |
14259 t2 = t1.length; | |
14260 if (1 >= t2) | |
14261 return H.ioore(t1, 1); | |
14262 t3 = t1[1]; | |
14263 if (t3 != null) { | |
14264 if (2 >= t2) | |
14265 return H.ioore(t1, 2); | |
14266 member = J.$add$ns(t3, C.JSArray_methods.join$0(P.List_List$filled(C.J
SString_methods.allMatches$1("/", t1[2]).length, ".<fn>", null))); | |
14267 if (J.$eq$(member, "")) | |
14268 member = "<fn>"; | |
14269 member = J.replaceFirst$2$s(member, $.$get$_initialDot(), ""); | |
14270 } else | |
14271 member = "<fn>"; | |
14272 if (4 >= t1.length) | |
14273 return H.ioore(t1, 4); | |
14274 if (J.$eq$(t1[4], "")) | |
14275 line = null; | |
14276 else { | |
14277 if (4 >= t1.length) | |
14278 return H.ioore(t1, 4); | |
14279 line = H.Primitives_parseInt(t1[4], null, null); | |
14280 } | |
14281 if (5 >= t1.length) | |
14282 return H.ioore(t1, 5); | |
14283 t2 = t1[5]; | |
14284 if (t2 == null || J.$eq$(t2, "")) | |
14285 column = null; | |
14286 else { | |
14287 if (5 >= t1.length) | |
14288 return H.ioore(t1, 5); | |
14289 column = H.Primitives_parseInt(t1[5], null, null); | |
14290 } | |
14291 return new S.Frame(uri, line, column, member); | |
14292 }, null, null, 2, 0, null, 10, "call"] | 14867 }, null, null, 2, 0, null, 10, "call"] |
14293 }, | 14868 }, |
14294 Trace$parseFriendly_closure: { | 14869 Trace$parseFriendly_closure: { |
14295 "^": "Closure:0;", | 14870 "^": "Closure:0;", |
14296 call$1: function(line) { | 14871 call$1: function(line) { |
14297 return !J.startsWith$1$s(line, "====="); | 14872 return !J.startsWith$1$s(line, "====="); |
14298 } | 14873 } |
14299 }, | 14874 }, |
14300 Trace$parseFriendly_closure0: { | 14875 Trace$parseFriendly_closure0: { |
14301 "^": "Closure:0;", | 14876 "^": "Closure:0;", |
14302 call$1: [function(line) { | 14877 call$1: [function(line) { |
14303 var match, t1, uri, t2, t3, t4, column; | 14878 return S.Frame_Frame$parseFriendly(line); |
14304 match = $.$get$_friendlyFrame().firstMatch$1(line); | |
14305 if (match == null) | |
14306 H.throwExpression(new P.FormatException("Couldn't parse package:stack_
trace stack trace line '" + H.S(line) + "'.", null, null)); | |
14307 t1 = match._match; | |
14308 if (1 >= t1.length) | |
14309 return H.ioore(t1, 1); | |
14310 uri = P.Uri_parse(t1[1], 0, null); | |
14311 if (uri.scheme === "") { | |
14312 t2 = $.$get$context0(); | |
14313 t3 = t2.fromUri$1(uri); | |
14314 t4 = t2._context$_current; | |
14315 uri = t2.toUri$1(t2.join$8(0, t4 != null ? t4 : B.current(), t3, null,
null, null, null, null, null)); | |
14316 } | |
14317 if (2 >= t1.length) | |
14318 return H.ioore(t1, 2); | |
14319 t2 = t1[2]; | |
14320 line = t2 == null ? null : H.Primitives_parseInt(t2, null, null); | |
14321 if (3 >= t1.length) | |
14322 return H.ioore(t1, 3); | |
14323 t2 = t1[3]; | |
14324 column = t2 == null ? null : H.Primitives_parseInt(t2, null, null); | |
14325 if (4 >= t1.length) | |
14326 return H.ioore(t1, 4); | |
14327 return new S.Frame(uri, line, column, t1[4]); | |
14328 }, null, null, 2, 0, null, 10, "call"] | 14879 }, null, null, 2, 0, null, 10, "call"] |
14329 }, | 14880 }, |
14330 Trace_terse_closure: { | 14881 Trace_terse_closure: { |
14331 "^": "Closure:0;", | 14882 "^": "Closure:0;", |
14332 call$1: function(_) { | 14883 call$1: function(_) { |
14333 return false; | 14884 return false; |
14334 } | 14885 } |
14335 }, | 14886 }, |
14336 Trace_foldFrames_closure: { | 14887 Trace_foldFrames_closure: { |
14337 "^": "Closure:0;_captured_oldPredicate_1", | 14888 "^": "Closure:0;oldPredicate", |
14338 call$1: function(frame) { | 14889 call$1: function(frame) { |
14339 if (this._captured_oldPredicate_1.call$1(frame) === true) | 14890 if (this.oldPredicate.call$1(frame) === true) |
14340 return true; | 14891 return true; |
14341 if (frame.get$isCore()) | 14892 if (frame.get$isCore()) |
14342 return true; | 14893 return true; |
14343 if (J.$eq$(frame.get$$package(), "stack_trace")) | 14894 if (J.$eq$(frame.get$$package(), "stack_trace")) |
14344 return true; | 14895 return true; |
14345 if (J.contains$1$asx(frame.get$member(), "<async>") !== true) | 14896 if (J.contains$1$asx(frame.get$member(), "<async>") !== true) |
14346 return false; | 14897 return false; |
14347 return frame.get$line() == null; | 14898 return frame.get$line() == null; |
14348 } | 14899 } |
14349 }, | 14900 }, |
14350 Trace_foldFrames_closure0: { | 14901 Trace_foldFrames_closure0: { |
14351 "^": "Closure:0;_trace$_box_0", | 14902 "^": "Closure:0;_box_0", |
14352 call$1: [function(frame) { | 14903 call$1: [function(frame) { |
14353 var t1, t2; | 14904 var t1, t2; |
14354 if (this._trace$_box_0._captured_predicate_0.call$1(frame) !== true) | 14905 if (frame instanceof N.UnparsedFrame || this._box_0.predicate.call$1(fra
me) !== true) |
14355 return frame; | 14906 return frame; |
14356 t1 = frame.get$library(); | 14907 t1 = frame.get$library(); |
14357 t2 = $.$get$_terseRegExp(); | 14908 t2 = $.$get$_terseRegExp(); |
14358 H.checkString(""); | 14909 H.checkString(""); |
14359 return new S.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, ""),
0, null), null, null, frame.get$member()); | 14910 return new S.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, ""),
0, null), null, null, frame.get$member()); |
14360 }, null, null, 2, 0, null, 15, "call"] | 14911 }, null, null, 2, 0, null, 12, "call"] |
14361 }, | 14912 }, |
14362 Trace_toString_closure0: { | 14913 Trace_toString_closure0: { |
14363 "^": "Closure:0;", | 14914 "^": "Closure:0;", |
14364 call$1: [function(frame) { | 14915 call$1: [function(frame) { |
14365 return J.get$length$asx(J.get$location$x(frame)); | 14916 return J.get$length$asx(J.get$location$x(frame)); |
14366 }, null, null, 2, 0, null, 15, "call"] | 14917 }, null, null, 2, 0, null, 12, "call"] |
14367 }, | 14918 }, |
14368 Trace_toString_closure: { | 14919 Trace_toString_closure: { |
14369 "^": "Closure:0;_captured_longest_0", | 14920 "^": "Closure:0;longest", |
14370 call$1: [function(frame) { | 14921 call$1: [function(frame) { |
14371 return H.S(N.padRight(J.get$location$x(frame), this._captured_longest_0)
) + " " + H.S(frame.get$member()) + "\n"; | 14922 var t1 = J.getInterceptor(frame); |
14372 }, null, null, 2, 0, null, 15, "call"] | 14923 if (!!t1.$isUnparsedFrame) |
| 14924 return H.S(frame) + "\n"; |
| 14925 return H.S(N.padRight(t1.get$location(frame), this.longest)) + " " + H.
S(frame.get$member()) + "\n"; |
| 14926 }, null, null, 2, 0, null, 12, "call"] |
14373 } | 14927 } |
14374 }]]; | 14928 }]]; |
14375 setupProgram(dart, 0); | 14929 setupProgram(dart, 0); |
14376 // getInterceptor methods | 14930 // getInterceptor methods |
14377 J.getInterceptor = function(receiver) { | 14931 J.getInterceptor = function(receiver) { |
14378 if (typeof receiver == "number") { | 14932 if (typeof receiver == "number") { |
14379 if (Math.floor(receiver) == receiver) | 14933 if (Math.floor(receiver) == receiver) |
14380 return J.JSInt.prototype; | 14934 return J.JSInt.prototype; |
14381 return J.JSDouble.prototype; | 14935 return J.JSDouble.prototype; |
14382 } | 14936 } |
14383 if (typeof receiver == "string") | 14937 if (typeof receiver == "string") |
14384 return J.JSString.prototype; | 14938 return J.JSString.prototype; |
14385 if (receiver == null) | 14939 if (receiver == null) |
14386 return J.JSNull.prototype; | 14940 return J.JSNull.prototype; |
14387 if (typeof receiver == "boolean") | 14941 if (typeof receiver == "boolean") |
14388 return J.JSBool.prototype; | 14942 return J.JSBool.prototype; |
14389 if (receiver.constructor == Array) | 14943 if (receiver.constructor == Array) |
14390 return J.JSArray.prototype; | 14944 return J.JSArray.prototype; |
14391 if (typeof receiver != "object") | 14945 if (typeof receiver != "object") { |
| 14946 if (typeof receiver == "function") |
| 14947 return J.JavaScriptFunction.prototype; |
14392 return receiver; | 14948 return receiver; |
| 14949 } |
14393 if (receiver instanceof P.Object) | 14950 if (receiver instanceof P.Object) |
14394 return receiver; | 14951 return receiver; |
14395 return J.getNativeInterceptor(receiver); | 14952 return J.getNativeInterceptor(receiver); |
14396 }; | 14953 }; |
14397 J.getInterceptor$asx = function(receiver) { | 14954 J.getInterceptor$asx = function(receiver) { |
14398 if (typeof receiver == "string") | 14955 if (typeof receiver == "string") |
14399 return J.JSString.prototype; | 14956 return J.JSString.prototype; |
14400 if (receiver == null) | 14957 if (receiver == null) |
14401 return receiver; | 14958 return receiver; |
14402 if (receiver.constructor == Array) | 14959 if (receiver.constructor == Array) |
14403 return J.JSArray.prototype; | 14960 return J.JSArray.prototype; |
14404 if (typeof receiver != "object") | 14961 if (typeof receiver != "object") { |
| 14962 if (typeof receiver == "function") |
| 14963 return J.JavaScriptFunction.prototype; |
14405 return receiver; | 14964 return receiver; |
| 14965 } |
14406 if (receiver instanceof P.Object) | 14966 if (receiver instanceof P.Object) |
14407 return receiver; | 14967 return receiver; |
14408 return J.getNativeInterceptor(receiver); | 14968 return J.getNativeInterceptor(receiver); |
14409 }; | 14969 }; |
14410 J.getInterceptor$ax = function(receiver) { | 14970 J.getInterceptor$ax = function(receiver) { |
14411 if (receiver == null) | 14971 if (receiver == null) |
14412 return receiver; | 14972 return receiver; |
14413 if (receiver.constructor == Array) | 14973 if (receiver.constructor == Array) |
14414 return J.JSArray.prototype; | 14974 return J.JSArray.prototype; |
14415 if (typeof receiver != "object") | 14975 if (typeof receiver != "object") { |
| 14976 if (typeof receiver == "function") |
| 14977 return J.JavaScriptFunction.prototype; |
14416 return receiver; | 14978 return receiver; |
| 14979 } |
14417 if (receiver instanceof P.Object) | 14980 if (receiver instanceof P.Object) |
14418 return receiver; | 14981 return receiver; |
14419 return J.getNativeInterceptor(receiver); | 14982 return J.getNativeInterceptor(receiver); |
14420 }; | 14983 }; |
14421 J.getInterceptor$n = function(receiver) { | 14984 J.getInterceptor$n = function(receiver) { |
14422 if (typeof receiver == "number") | 14985 if (typeof receiver == "number") |
14423 return J.JSNumber.prototype; | 14986 return J.JSNumber.prototype; |
14424 if (receiver == null) | 14987 if (receiver == null) |
14425 return receiver; | 14988 return receiver; |
14426 if (!(receiver instanceof P.Object)) | 14989 if (!(receiver instanceof P.Object)) |
(...skipping 16 matching lines...) Expand all Loading... |
14443 return J.JSString.prototype; | 15006 return J.JSString.prototype; |
14444 if (receiver == null) | 15007 if (receiver == null) |
14445 return receiver; | 15008 return receiver; |
14446 if (!(receiver instanceof P.Object)) | 15009 if (!(receiver instanceof P.Object)) |
14447 return J.UnknownJavaScriptObject.prototype; | 15010 return J.UnknownJavaScriptObject.prototype; |
14448 return receiver; | 15011 return receiver; |
14449 }; | 15012 }; |
14450 J.getInterceptor$x = function(receiver) { | 15013 J.getInterceptor$x = function(receiver) { |
14451 if (receiver == null) | 15014 if (receiver == null) |
14452 return receiver; | 15015 return receiver; |
14453 if (typeof receiver != "object") | 15016 if (typeof receiver != "object") { |
| 15017 if (typeof receiver == "function") |
| 15018 return J.JavaScriptFunction.prototype; |
14454 return receiver; | 15019 return receiver; |
| 15020 } |
14455 if (receiver instanceof P.Object) | 15021 if (receiver instanceof P.Object) |
14456 return receiver; | 15022 return receiver; |
14457 return J.getNativeInterceptor(receiver); | 15023 return J.getNativeInterceptor(receiver); |
14458 }; | 15024 }; |
14459 J.set$src$x = function(receiver, value) { | 15025 J.set$src$x = function(receiver, value) { |
14460 return J.getInterceptor$x(receiver).set$src(receiver, value); | 15026 return J.getInterceptor$x(receiver).set$src(receiver, value); |
14461 }; | 15027 }; |
14462 J.get$contentWindow$x = function(receiver) { | 15028 J.get$contentWindow$x = function(receiver) { |
14463 return J.getInterceptor$x(receiver).get$contentWindow(receiver); | 15029 return J.getInterceptor$x(receiver).get$contentWindow(receiver); |
14464 }; | 15030 }; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14497 }; | 15063 }; |
14498 J.get$print$x = function(receiver) { | 15064 J.get$print$x = function(receiver) { |
14499 return J.getInterceptor$x(receiver).get$print(receiver); | 15065 return J.getInterceptor$x(receiver).get$print(receiver); |
14500 }; | 15066 }; |
14501 J.get$result$x = function(receiver) { | 15067 J.get$result$x = function(receiver) { |
14502 return J.getInterceptor$x(receiver).get$result(receiver); | 15068 return J.getInterceptor$x(receiver).get$result(receiver); |
14503 }; | 15069 }; |
14504 J.get$src$x = function(receiver) { | 15070 J.get$src$x = function(receiver) { |
14505 return J.getInterceptor$x(receiver).get$src(receiver); | 15071 return J.getInterceptor$x(receiver).get$src(receiver); |
14506 }; | 15072 }; |
14507 J.get$start$x = function(receiver) { | |
14508 return J.getInterceptor$x(receiver).get$start(receiver); | |
14509 }; | |
14510 J.$add$ns = function(receiver, a0) { | 15073 J.$add$ns = function(receiver, a0) { |
14511 if (typeof receiver == "number" && typeof a0 == "number") | 15074 if (typeof receiver == "number" && typeof a0 == "number") |
14512 return receiver + a0; | 15075 return receiver + a0; |
14513 return J.getInterceptor$ns(receiver).$add(receiver, a0); | 15076 return J.getInterceptor$ns(receiver).$add(receiver, a0); |
14514 }; | 15077 }; |
14515 J.$and$n = function(receiver, a0) { | 15078 J.$and$n = function(receiver, a0) { |
14516 if (typeof receiver == "number" && typeof a0 == "number") | 15079 if (typeof receiver == "number" && typeof a0 == "number") |
14517 return (receiver & a0) >>> 0; | 15080 return (receiver & a0) >>> 0; |
14518 return J.getInterceptor$n(receiver).$and(receiver, a0); | 15081 return J.getInterceptor$n(receiver).$and(receiver, a0); |
14519 }; | 15082 }; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14563 }; | 15126 }; |
14564 J._addEventListener$3$x = function(receiver, a0, a1, a2) { | 15127 J._addEventListener$3$x = function(receiver, a0, a1, a2) { |
14565 return J.getInterceptor$x(receiver)._addEventListener$3(receiver, a0, a1, a2
); | 15128 return J.getInterceptor$x(receiver)._addEventListener$3(receiver, a0, a1, a2
); |
14566 }; | 15129 }; |
14567 J._removeEventListener$3$x = function(receiver, a0, a1, a2) { | 15130 J._removeEventListener$3$x = function(receiver, a0, a1, a2) { |
14568 return J.getInterceptor$x(receiver)._removeEventListener$3(receiver, a0, a1,
a2); | 15131 return J.getInterceptor$x(receiver)._removeEventListener$3(receiver, a0, a1,
a2); |
14569 }; | 15132 }; |
14570 J.add$1$ax = function(receiver, a0) { | 15133 J.add$1$ax = function(receiver, a0) { |
14571 return J.getInterceptor$ax(receiver).add$1(receiver, a0); | 15134 return J.getInterceptor$ax(receiver).add$1(receiver, a0); |
14572 }; | 15135 }; |
14573 J.close$0$x = function(receiver) { | 15136 J.clear$0$ax = function(receiver) { |
14574 return J.getInterceptor$x(receiver).close$0(receiver); | 15137 return J.getInterceptor$ax(receiver).clear$0(receiver); |
14575 }; | 15138 }; |
14576 J.codeUnitAt$1$s = function(receiver, a0) { | 15139 J.codeUnitAt$1$s = function(receiver, a0) { |
14577 return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0); | 15140 return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0); |
14578 }; | 15141 }; |
14579 J.complete$1$x = function(receiver, a0) { | 15142 J.complete$1$x = function(receiver, a0) { |
14580 return J.getInterceptor$x(receiver).complete$1(receiver, a0); | 15143 return J.getInterceptor$x(receiver).complete$1(receiver, a0); |
14581 }; | 15144 }; |
14582 J.contains$1$asx = function(receiver, a0) { | 15145 J.contains$1$asx = function(receiver, a0) { |
14583 return J.getInterceptor$asx(receiver).contains$1(receiver, a0); | 15146 return J.getInterceptor$asx(receiver).contains$1(receiver, a0); |
14584 }; | 15147 }; |
(...skipping 23 matching lines...) Expand all Loading... |
14608 }; | 15171 }; |
14609 J.replaceAll$2$s = function(receiver, a0, a1) { | 15172 J.replaceAll$2$s = function(receiver, a0, a1) { |
14610 return J.getInterceptor$s(receiver).replaceAll$2(receiver, a0, a1); | 15173 return J.getInterceptor$s(receiver).replaceAll$2(receiver, a0, a1); |
14611 }; | 15174 }; |
14612 J.replaceFirst$2$s = function(receiver, a0, a1) { | 15175 J.replaceFirst$2$s = function(receiver, a0, a1) { |
14613 return J.getInterceptor$s(receiver).replaceFirst$2(receiver, a0, a1); | 15176 return J.getInterceptor$s(receiver).replaceFirst$2(receiver, a0, a1); |
14614 }; | 15177 }; |
14615 J.send$1$x = function(receiver, a0) { | 15178 J.send$1$x = function(receiver, a0) { |
14616 return J.getInterceptor$x(receiver).send$1(receiver, a0); | 15179 return J.getInterceptor$x(receiver).send$1(receiver, a0); |
14617 }; | 15180 }; |
14618 J.skip$1$ax = function(receiver, a0) { | |
14619 return J.getInterceptor$ax(receiver).skip$1(receiver, a0); | |
14620 }; | |
14621 J.split$1$s = function(receiver, a0) { | 15181 J.split$1$s = function(receiver, a0) { |
14622 return J.getInterceptor$s(receiver).split$1(receiver, a0); | 15182 return J.getInterceptor$s(receiver).split$1(receiver, a0); |
14623 }; | 15183 }; |
14624 J.startsWith$1$s = function(receiver, a0) { | 15184 J.startsWith$1$s = function(receiver, a0) { |
14625 return J.getInterceptor$s(receiver).startsWith$1(receiver, a0); | 15185 return J.getInterceptor$s(receiver).startsWith$1(receiver, a0); |
14626 }; | 15186 }; |
14627 J.substring$1$s = function(receiver, a0) { | 15187 J.substring$1$s = function(receiver, a0) { |
14628 return J.getInterceptor$s(receiver).substring$1(receiver, a0); | 15188 return J.getInterceptor$s(receiver).substring$1(receiver, a0); |
14629 }; | 15189 }; |
14630 J.substring$2$s = function(receiver, a0, a1) { | 15190 J.substring$2$s = function(receiver, a0, a1) { |
(...skipping 26 matching lines...) Expand all Loading... |
14657 }; | 15217 }; |
14658 J.toString$0$ = function(receiver) { | 15218 J.toString$0$ = function(receiver) { |
14659 return J.getInterceptor(receiver).toString$0(receiver); | 15219 return J.getInterceptor(receiver).toString$0(receiver); |
14660 }; | 15220 }; |
14661 Isolate.makeConstantList = function(list) { | 15221 Isolate.makeConstantList = function(list) { |
14662 list.immutable$list = Array; | 15222 list.immutable$list = Array; |
14663 list.fixed$length = Array; | 15223 list.fixed$length = Array; |
14664 return list; | 15224 return list; |
14665 }; | 15225 }; |
14666 var $ = Isolate.$isolateProperties; | 15226 var $ = Isolate.$isolateProperties; |
| 15227 C.Interceptor_methods = J.Interceptor.prototype; |
14667 C.JSArray_methods = J.JSArray.prototype; | 15228 C.JSArray_methods = J.JSArray.prototype; |
14668 C.JSDouble_methods = J.JSDouble.prototype; | |
14669 C.JSInt_methods = J.JSInt.prototype; | 15229 C.JSInt_methods = J.JSInt.prototype; |
14670 C.JSNull_methods = J.JSNull.prototype; | 15230 C.JSNull_methods = J.JSNull.prototype; |
14671 C.JSNumber_methods = J.JSNumber.prototype; | 15231 C.JSNumber_methods = J.JSNumber.prototype; |
14672 C.JSString_methods = J.JSString.prototype; | 15232 C.JSString_methods = J.JSString.prototype; |
| 15233 C.JavaScriptFunction_methods = J.JavaScriptFunction.prototype; |
14673 C.Location_methods = W.Location.prototype; | 15234 C.Location_methods = W.Location.prototype; |
14674 C.NativeUint8List_methods = H.NativeUint8List.prototype; | 15235 C.NativeUint8List_methods = H.NativeUint8List.prototype; |
14675 C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype; | 15236 C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype; |
14676 C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; | 15237 C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; |
14677 C.C_DynamicRuntimeType = new H.DynamicRuntimeType(); | 15238 C.C_DynamicRuntimeType = new H.DynamicRuntimeType(); |
14678 C.C_OutOfMemoryError = new P.OutOfMemoryError(); | 15239 C.C_OutOfMemoryError = new P.OutOfMemoryError(); |
| 15240 C.C_Utf8Encoder = new P.Utf8Encoder(); |
14679 C.C__DelayedDone = new P._DelayedDone(); | 15241 C.C__DelayedDone = new P._DelayedDone(); |
14680 C.C__RootZone = new P._RootZone(); | 15242 C.C__RootZone = new P._RootZone(); |
14681 C.Duration_0 = new P.Duration(0); | 15243 C.Duration_0 = new P.Duration(0); |
14682 C.JS_CONST_0 = function(hooks) { | 15244 C.JS_CONST_0 = function(hooks) { |
14683 if (typeof dartExperimentalFixupGetTag != "function") return hooks; | 15245 if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
14684 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); | 15246 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
14685 }; | 15247 }; |
14686 C.JS_CONST_4hp = function(hooks) { | 15248 C.JS_CONST_4hp = function(hooks) { |
14687 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; | 15249 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
14688 if (userAgent.indexOf("Firefox") == -1) return hooks; | 15250 if (userAgent.indexOf("Firefox") == -1) return hooks; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14859 $.interceptorsForUncacheableTags = null; | 15421 $.interceptorsForUncacheableTags = null; |
14860 $.initNativeDispatchFlag = null; | 15422 $.initNativeDispatchFlag = null; |
14861 $.printToZone = null; | 15423 $.printToZone = null; |
14862 $._nextCallback = null; | 15424 $._nextCallback = null; |
14863 $._lastCallback = null; | 15425 $._lastCallback = null; |
14864 $._lastPriorityCallback = null; | 15426 $._lastPriorityCallback = null; |
14865 $._isInCallbackLoop = false; | 15427 $._isInCallbackLoop = false; |
14866 $.Zone__current = C.C__RootZone; | 15428 $.Zone__current = C.C__RootZone; |
14867 $._RootZone__rootDelegate = null; | 15429 $._RootZone__rootDelegate = null; |
14868 $.Expando__keyCount = 0; | 15430 $.Expando__keyCount = 0; |
| 15431 $._currentUriBase = null; |
| 15432 $._current = null; |
14869 $ = null; | 15433 $ = null; |
14870 init.isHunkLoaded = function(hunkHash) { | 15434 init.isHunkLoaded = function(hunkHash) { |
14871 return !!$dart_deferred_initializers$[hunkHash]; | 15435 return !!$dart_deferred_initializers$[hunkHash]; |
14872 }; | 15436 }; |
14873 init.deferredInitialized = new Object(null); | 15437 init.deferredInitialized = new Object(null); |
14874 init.isHunkInitialized = function(hunkHash) { | 15438 init.isHunkInitialized = function(hunkHash) { |
14875 return init.deferredInitialized[hunkHash]; | 15439 return init.deferredInitialized[hunkHash]; |
14876 }; | 15440 }; |
14877 init.initializeLoadedHunk = function(hunkHash) { | 15441 init.initializeLoadedHunk = function(hunkHash) { |
14878 $dart_deferred_initializers$[hunkHash]($globals$, $); | 15442 $dart_deferred_initializers$[hunkHash]($globals$, $); |
14879 init.deferredInitialized[hunkHash] = true; | 15443 init.deferredInitialized[hunkHash] = true; |
14880 }; | 15444 }; |
14881 init.deferredLibraryUris = {}; | 15445 init.deferredLibraryUris = {}; |
14882 init.deferredLibraryHashes = {}; | 15446 init.deferredLibraryHashes = {}; |
14883 // Empty type-to-interceptor map. | 15447 // Empty type-to-interceptor map. |
14884 (function(lazies) { | 15448 (function(lazies) { |
14885 for (var i = 0; i < lazies.length;) { | 15449 for (var i = 0; i < lazies.length;) { |
14886 var fieldName = lazies[i++]; | 15450 var fieldName = lazies[i++]; |
14887 var getterName = lazies[i++]; | 15451 var getterName = lazies[i++]; |
14888 var staticName = lazies[i++]; | 15452 var staticName = lazies[i++]; |
14889 var lazyValue = lazies[i++]; | 15453 var lazyValue = lazies[i++]; |
14890 Isolate.$lazy(fieldName, getterName, lazyValue, staticName); | 15454 Isolate.$lazy(fieldName, getterName, lazyValue, staticName); |
14891 } | 15455 } |
14892 })(["IsolateNatives_thisScript", "$get$IsolateNatives_thisScript", "thisScript
", function() { | 15456 })(["DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", "DART_CLO
SURE_PROPERTY_NAME", function() { |
| 15457 return H.getIsolateAffinityTag("_$dart_dartClosure"); |
| 15458 }, "IsolateNatives_thisScript", "$get$IsolateNatives_thisScript", "thisScript"
, function() { |
14893 return H.IsolateNatives_computeThisScript(); | 15459 return H.IsolateNatives_computeThisScript(); |
14894 }, "IsolateNatives_workerIds", "$get$IsolateNatives_workerIds", "workerIds", f
unction() { | 15460 }, "IsolateNatives_workerIds", "$get$IsolateNatives_workerIds", "workerIds", f
unction() { |
14895 return new P.Expando(null); | 15461 return new P.Expando(null); |
14896 }, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethod
Pattern", "noSuchMethodPattern", function() { | 15462 }, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethod
Pattern", "noSuchMethodPattern", function() { |
14897 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallError
On({toString: function() { | 15463 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallError
On({toString: function() { |
14898 return "$receiver$"; | 15464 return "$receiver$"; |
14899 }})); | 15465 }})); |
14900 }, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePatt
ern", "notClosurePattern", function() { | 15466 }, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePatt
ern", "notClosurePattern", function() { |
14901 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallError
On({$method$: null, toString: function() { | 15467 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallError
On({$method$: null, toString: function() { |
14902 return "$receiver$"; | 15468 return "$receiver$"; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14936 }, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefin
edPropertyPattern", "undefinedPropertyPattern", function() { | 15502 }, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefin
edPropertyPattern", "undefinedPropertyPattern", function() { |
14937 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyE
rrorOn(void 0)); | 15503 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyE
rrorOn(void 0)); |
14938 }, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_
undefinedLiteralPropertyPattern", "undefinedLiteralPropertyPattern", function()
{ | 15504 }, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_
undefinedLiteralPropertyPattern", "undefinedLiteralPropertyPattern", function()
{ |
14939 return H.TypeErrorDecoder_extractPattern(function() { | 15505 return H.TypeErrorDecoder_extractPattern(function() { |
14940 try { | 15506 try { |
14941 (void 0).$method$; | 15507 (void 0).$method$; |
14942 } catch (e) { | 15508 } catch (e) { |
14943 return e.message; | 15509 return e.message; |
14944 } | 15510 } |
14945 }()); | 15511 }()); |
14946 }, "_AsyncRun_scheduleImmediateClosure", "$get$_AsyncRun_scheduleImmediateClos
ure", "scheduleImmediateClosure", function() { | 15512 }, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateCl
osure", "_scheduleImmediateClosure", function() { |
14947 return P._AsyncRun__initializeScheduleImmediate(); | 15513 return P._AsyncRun__initializeScheduleImmediate(); |
14948 }, "Future__nullFuture", "$get$Future__nullFuture", "_nullFuture", function()
{ | 15514 }, "Future__nullFuture", "$get$Future__nullFuture", "_nullFuture", function()
{ |
14949 return P.Future_Future$value(null, null); | 15515 return P.Future_Future$value(null, null); |
14950 }, "_RootZone__rootMap", "$get$_RootZone__rootMap", "_rootMap", function() { | 15516 }, "_RootZone__rootMap", "$get$_RootZone__rootMap", "_rootMap", function() { |
14951 return P.HashMap_HashMap(null, null, null, null, null); | 15517 return P.HashMap_HashMap(null, null, null, null, null); |
14952 }, "_toStringVisiting", "$get$_toStringVisiting", "_toStringVisiting", functio
n() { | 15518 }, "_toStringVisiting", "$get$_toStringVisiting", "_toStringVisiting", functio
n() { |
14953 return []; | 15519 return []; |
| 15520 }, "Uri__needsNoEncoding", "$get$Uri__needsNoEncoding", "_needsNoEncoding", fu
nction() { |
| 15521 return P.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", true, false); |
14954 }, "context", "$get$context", "context", function() { | 15522 }, "context", "$get$context", "context", function() { |
14955 return P._wrapToDart(self); | 15523 return P._wrapToDart(self); |
14956 }, "_DART_OBJECT_PROPERTY_NAME", "$get$_DART_OBJECT_PROPERTY_NAME", "_DART_OBJ
ECT_PROPERTY_NAME", function() { | 15524 }, "_DART_OBJECT_PROPERTY_NAME", "$get$_DART_OBJECT_PROPERTY_NAME", "_DART_OBJ
ECT_PROPERTY_NAME", function() { |
14957 return H.getIsolateAffinityTag("_$dart_dartObject"); | 15525 return H.getIsolateAffinityTag("_$dart_dartObject"); |
14958 }, "_DART_CLOSURE_PROPERTY_NAME", "$get$_DART_CLOSURE_PROPERTY_NAME", "_DART_C
LOSURE_PROPERTY_NAME", function() { | |
14959 return H.getIsolateAffinityTag("_$dart_dartClosure"); | |
14960 }, "_dartProxyCtor", "$get$_dartProxyCtor", "_dartProxyCtor", function() { | 15526 }, "_dartProxyCtor", "$get$_dartProxyCtor", "_dartProxyCtor", function() { |
14961 return function DartObject(o) { | 15527 return function DartObject(o) { |
14962 this.o = o; | 15528 this.o = o; |
14963 }; | 15529 }; |
14964 }, "_vmFrame", "$get$_vmFrame", "_vmFrame", function() { | 15530 }, "_vmFrame", "$get$_vmFrame", "_vmFrame", function() { |
14965 return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", tru
e, false); | 15531 return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", tru
e, false); |
14966 }, "_v8Frame", "$get$_v8Frame", "_v8Frame", function() { | 15532 }, "_v8Frame", "$get$_v8Frame", "_v8Frame", function() { |
14967 return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)
|(.*))$", true, false); | 15533 return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)
|(.*))$", true, false); |
14968 }, "_v8UrlLocation", "$get$_v8UrlLocation", "_v8UrlLocation", function() { | 15534 }, "_v8UrlLocation", "$get$_v8UrlLocation", "_v8UrlLocation", function() { |
14969 return P.RegExp_RegExp("^(.*):(\\d+):(\\d+)$", true, false); | 15535 return P.RegExp_RegExp("^(.*):(\\d+):(\\d+)|native$", true, false); |
14970 }, "_v8EvalLocation", "$get$_v8EvalLocation", "_v8EvalLocation", function() { | 15536 }, "_v8EvalLocation", "$get$_v8EvalLocation", "_v8EvalLocation", function() { |
14971 return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$"
, true, false); | 15537 return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$"
, true, false); |
14972 }, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", "_firefoxSafariFrame", f
unction() { | 15538 }, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", "_firefoxSafariFrame", f
unction() { |
14973 return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?
@)?(.*?):(\\d*)(?::(\\d*))?$", true, false); | 15539 return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?
@)?(.*?):(\\d*)(?::(\\d*))?$", true, false); |
14974 }, "_friendlyFrame", "$get$_friendlyFrame", "_friendlyFrame", function() { | 15540 }, "_friendlyFrame", "$get$_friendlyFrame", "_friendlyFrame", function() { |
14975 return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d]\\S*)$", t
rue, false); | 15541 return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d]\\S*)$", t
rue, false); |
14976 }, "_asyncBody", "$get$_asyncBody", "_asyncBody", function() { | 15542 }, "_asyncBody", "$get$_asyncBody", "_asyncBody", function() { |
14977 return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", true, fal
se); | 15543 return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", true, fal
se); |
14978 }, "_initialDot", "$get$_initialDot", "_initialDot", function() { | 15544 }, "_initialDot", "$get$_initialDot", "_initialDot", function() { |
14979 return P.RegExp_RegExp("^\\.", true, false); | 15545 return P.RegExp_RegExp("^\\.", true, false); |
14980 }, "Frame__uriRegExp", "$get$Frame__uriRegExp", "_uriRegExp", function() { | 15546 }, "Frame__uriRegExp", "$get$Frame__uriRegExp", "_uriRegExp", function() { |
14981 return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", true, false); | 15547 return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", true, false); |
14982 }, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", "_windowsRegExp", func
tion() { | 15548 }, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", "_windowsRegExp", func
tion() { |
14983 return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", true, false); | 15549 return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", true, false); |
| 15550 }, "_iframes", "$get$_iframes", "_iframes", function() { |
| 15551 return H.JsLinkedHashMap_JsLinkedHashMap$es6(P.$int, W.IFrameElement); |
14984 }, "windows", "$get$windows", "windows", function() { | 15552 }, "windows", "$get$windows", "windows", function() { |
14985 return F.Context_Context(null, $.$get$Style_windows()); | 15553 return F.Context_Context(null, $.$get$Style_windows()); |
14986 }, "context0", "$get$context0", "context", function() { | 15554 }, "context0", "$get$context0", "context", function() { |
14987 return new F.Context($.$get$Style_platform(), null); | 15555 return new F.Context($.$get$Style_platform(), null); |
14988 }, "Style_posix", "$get$Style_posix", "posix", function() { | 15556 }, "Style_posix", "$get$Style_posix", "posix", function() { |
14989 return new Z.PosixStyle("posix", "/", C.List_cSk, P.RegExp_RegExp("/", true,
false), P.RegExp_RegExp("[^/]$", true, false), P.RegExp_RegExp("^/", true, fals
e), null); | 15557 return new Z.PosixStyle("posix", "/", C.List_cSk, P.RegExp_RegExp("/", true,
false), P.RegExp_RegExp("[^/]$", true, false), P.RegExp_RegExp("^/", true, fals
e), null); |
14990 }, "Style_windows", "$get$Style_windows", "windows", function() { | 15558 }, "Style_windows", "$get$Style_windows", "windows", function() { |
14991 return new T.WindowsStyle("windows", "\\", C.List_WnV, P.RegExp_RegExp("[/\\
\\]", true, false), P.RegExp_RegExp("[^/\\\\]$", true, false), P.RegExp_RegExp("
^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", true, false), P.RegExp_RegEx
p("^[/\\\\](?![/\\\\])", true, false)); | 15559 return new T.WindowsStyle("windows", "\\", C.List_WnV, P.RegExp_RegExp("[/\\
\\]", true, false), P.RegExp_RegExp("[^/\\\\]$", true, false), P.RegExp_RegExp("
^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", true, false), P.RegExp_RegEx
p("^[/\\\\](?![/\\\\])", true, false)); |
14992 }, "Style_url", "$get$Style_url", "url", function() { | 15560 }, "Style_url", "$get$Style_url", "url", function() { |
14993 return new E.UrlStyle("url", "/", C.List_cSk, P.RegExp_RegExp("/", true, fal
se), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", true, false), P.RegE
xp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", true, false), P.RegExp_RegExp("^/",
true, false)); | 15561 return new E.UrlStyle("url", "/", C.List_cSk, P.RegExp_RegExp("/", true, fal
se), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", true, false), P.RegE
xp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", true, false), P.RegExp_RegExp("^/",
true, false)); |
14994 }, "Style_platform", "$get$Style_platform", "platform", function() { | 15562 }, "Style_platform", "$get$Style_platform", "platform", function() { |
14995 return S.Style__getPlatformStyle(); | 15563 return S.Style__getPlatformStyle(); |
14996 }, "_iframes", "$get$_iframes", "_iframes", function() { | |
14997 return P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, W.IFrameEleme
nt); | |
14998 }, "_terseRegExp", "$get$_terseRegExp", "_terseRegExp", function() { | 15564 }, "_terseRegExp", "$get$_terseRegExp", "_terseRegExp", function() { |
14999 return P.RegExp_RegExp("(-patch)?(/.*)?$", true, false); | 15565 return P.RegExp_RegExp("(-patch)?([/\\\\].*)?$", true, false); |
15000 }, "_v8Trace", "$get$_v8Trace", "_v8Trace", function() { | 15566 }, "_v8Trace", "$get$_v8Trace", "_v8Trace", function() { |
15001 return P.RegExp_RegExp("\\n ?at ", true, false); | 15567 return P.RegExp_RegExp("\\n ?at ", true, false); |
15002 }, "_v8TraceLine", "$get$_v8TraceLine", "_v8TraceLine", function() { | 15568 }, "_v8TraceLine", "$get$_v8TraceLine", "_v8TraceLine", function() { |
15003 return P.RegExp_RegExp(" ?at ", true, false); | 15569 return P.RegExp_RegExp(" ?at ", true, false); |
15004 }, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", "_firefoxSafariTrace", f
unction() { | 15570 }, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", "_firefoxSafariTrace", f
unction() { |
15005 return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", tru
e, true); | 15571 return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", tru
e, true); |
15006 }, "_friendlyTrace", "$get$_friendlyTrace", "_friendlyTrace", function() { | 15572 }, "_friendlyTrace", "$get$_friendlyTrace", "_friendlyTrace", function() { |
15007 return P.RegExp_RegExp("^[^\\s]+( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true, true
); | 15573 return P.RegExp_RegExp("^[^\\s]+( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true, true
); |
15008 }]); | 15574 }]); |
15009 Isolate = Isolate.$finishIsolateConstructor(Isolate); | 15575 Isolate = Isolate.$finishIsolateConstructor(Isolate); |
15010 $ = new Isolate(); | 15576 $ = new Isolate(); |
15011 init.metadata = ["self", "parent", "zone", "error", "stackTrace", null, "messa
ge", "f", "value", "arg", "line", "_", "data", "key", "callback", "frame", "invo
cation", "x", "arg2", "duration", "object", "element", "arg1", "e", "s", "o", "c
losure", "isolate", "arg4", "sender", "zoneValues", "arg3", "each", "ignored", "
k", "v", 0, "result", "encodedComponent", "byteString", "captureThis", "argument
s", "specification", "numberOfArguments"]; | 15577 init.metadata = ["self", "error", "stackTrace", "parent", "zone", null, "value
", "message", "f", "_", "line", "trace", "frame", "arg", "result", "data", "call
back", "key", "duration", "object", "arg1", "arg2", "each", "element", "invocati
on", "x", "o", "numberOfArguments", "arg3", "arg4", "specification", "zoneValues
", "sender", "e", "ignored", "k", "v", 0, "encodedComponent", "s", "byteString",
"captureThis", "arguments", "closure", "isolate", "errorCode"]; |
15012 init.types = [{func: 1, args: [,]}, {func: 1}, {func: 1, void: true}, {func: 1
, args: [,,]}, {func: 1, args: [, P.StackTrace]}, {func: 1, void: true, args: [{
func: 1, void: true}]}, {func: 1, void: true, args: [P.String]}, {func: 1, ret:
P.String, args: [P.$int]}, {func: 1, void: true, args: [,], opt: [P.StackTrace]}
, {func: 1, args: [,], opt: [,]}, {func: 1, ret: {func: 1, args: [,,]}, args: [{
func: 1, args: [,,]}]}, {func: 1, void: true, args: [P.Object], opt: [P.StackTra
ce]}, {func: 1, args: [P.$int,,]}, {func: 1, ret: P.Object, args: [,]}, {func: 1
, args: [P.$int]}, {func: 1, ret: P.$int, args: [,]}, {func: 1, ret: P.Timer, ar
gs: [P.Duration, {func: 1, void: true, args: [P.Timer]}]}, {func: 1, ret: P.Time
r, args: [P.Duration, {func: 1, void: true}]}, {func: 1, void: true, args: [, P.
StackTrace]}, {func: 1, ret: P.AsyncError, args: [P.Object, P.StackTrace]}, {fun
c: 1, ret: {func: 1, args: [,]}, args: [{func: 1, args: [,]}]}, {func: 1, ret: {
func: 1}, args: [{func: 1}]}, {func: 1, args: [{func: 1, args: [,,]},,,]}, {func
: 1, args: [{func: 1, args: [,]},,]}, {func: 1, args: [{func: 1}]}, {func: 1, re
t: P.Zone, named: {specification: P.ZoneSpecification, zoneValues: P.Map}}, {fun
c: 1, void: true, args: [P.Zone, P.String]}, {func: 1, ret: P.Zone, args: [P.Zon
e, P.ZoneSpecification, P.Map]}, {func: 1, ret: P.Timer, args: [P.Zone, P.Durati
on, {func: 1, void: true, args: [P.Timer]}]}, {func: 1, ret: P.Timer, args: [P.Z
one, P.Duration, {func: 1, void: true}]}, {func: 1, args: [P.String,,]}, {func:
1, ret: P.AsyncError, args: [P.Zone, P.Object, P.StackTrace]}, {func: 1, ret: {f
unc: 1, args: [,,]}, args: [P.Zone, {func: 1, args: [,,]}]}, {func: 1, ret: {fun
c: 1, args: [,]}, args: [P.Zone, {func: 1, args: [,]}]}, {func: 1, void: true, a
rgs: [P.Zone, {func: 1}]}, {func: 1, ret: {func: 1}, args: [P.Zone, {func: 1}]},
{func: 1, args: [P.Zone, {func: 1, args: [,,]},,,]}, {func: 1, args: [P.Zone, {
func: 1, args: [,]},,]}, {func: 1, args: [P.Zone, {func: 1}]}, {func: 1, args: [
, P.String]}, {func: 1, args: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackTrace]},
{func: 1, args: [P.String]}, {func: 1, ret: P.$int, args: [, P.$int]}, {func: 1,
void: true, args: [P.$int, P.$int]}, {func: 1, args: [P.Symbol,,]}, {func: 1, r
et: P.num, args: [P.num, P.num]}, {func: 1, ret: P.$int, args: [,,]}, {func: 1,
void: true, args: [P.String], opt: [,]}, {func: 1, ret: P.$int, args: [P.$int, P
.$int]}, {func: 1, args: [P.Zone,, P.StackTrace]}, {func: 1, void: true, args: [
P.Object, P.StackTrace]}, {func: 1, args: [P.bool]}, {func: 1, ret: P.Future, ar
gs: [,]}, {func: 1, void: true, args: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackT
race]}, {func: 1, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1}]}, {func: 1,
args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1, args: [,]},,]}, {func: 1, args:
[P.Zone, P.ZoneDelegate, P.Zone, {func: 1, args: [,,]},,,]}, {func: 1, ret: {fu
nc: 1}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1}]}, {func: 1, ret: {func
: 1, args: [,]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1, args: [,]}]},
{func: 1, ret: {func: 1, args: [,,]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {fu
nc: 1, args: [,,]}]}, {func: 1, ret: P.AsyncError, args: [P.Zone, P.ZoneDelegate
, P.Zone, P.Object, P.StackTrace]}, {func: 1, void: true, args: [P.Zone, P.ZoneD
elegate, P.Zone, {func: 1}]}, {func: 1, ret: P.Timer, args: [P.Zone, P.ZoneDeleg
ate, P.Zone, P.Duration, {func: 1, void: true}]}, {func: 1, ret: P.Timer, args:
[P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: 1, void: true, args: [P.Time
r]}]}, {func: 1, void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, P.String]},
{func: 1, ret: P.Zone, args: [P.Zone, P.ZoneDelegate, P.Zone, P.ZoneSpecificatio
n, P.Map]}, {func: 1, args: [{func: 1, void: true}]}, {func: 1, ret: P.String, a
rgs: [P.String]}, {func: 1, ret: P.bool}]; | 15578 init.types = [{func: 1, args: [,]}, {func: 1}, {func: 1, v: true}, {func: 1, a
rgs: [,,]}, {func: 1, v: true, args: [{func: 1, v: true}]}, {func: 1, args: [, P
.StackTrace]}, {func: 1, v: true, args: [,], opt: [P.StackTrace]}, {func: 1, v:
true, args: [P.String]}, {func: 1, ret: {func: 1}, args: [{func: 1}]}, {func: 1,
args: [,], opt: [,]}, {func: 1, v: true, args: [P.Object], opt: [P.StackTrace]}
, {func: 1, v: true, args: [, P.StackTrace]}, {func: 1, ret: P.Object, args: [,]
}, {func: 1, ret: P.Timer, args: [P.Duration, {func: 1, v: true, args: [P.Timer]
}]}, {func: 1, ret: P.Timer, args: [P.Duration, {func: 1, v: true}]}, {func: 1,
ret: P.String, args: [P.$int]}, {func: 1, ret: P.AsyncError, args: [P.Object, P.
StackTrace]}, {func: 1, ret: {func: 1, args: [,,]}, args: [{func: 1, args: [,,]}
]}, {func: 1, ret: {func: 1, args: [,]}, args: [{func: 1, args: [,]}]}, {func: 1
, args: [{func: 1, args: [,,]},,,]}, {func: 1, args: [{func: 1, args: [,]},,]},
{func: 1, args: [{func: 1}]}, {func: 1, ret: P.Zone, named: {specification: P.Zo
neSpecification, zoneValues: P.Map}}, {func: 1, ret: P.AsyncError, args: [P.Zone
, P.Object, P.StackTrace]}, {func: 1, v: true, args: [P.Zone, {func: 1}]}, {func
: 1, ret: P.Timer, args: [P.Zone, P.Duration, {func: 1, v: true}]}, {func: 1, re
t: P.Timer, args: [P.Zone, P.Duration, {func: 1, v: true, args: [P.Timer]}]}, {f
unc: 1, v: true, args: [P.Zone, P.String]}, {func: 1, ret: P.Zone, args: [P.Zone
, P.ZoneSpecification, P.Map]}, {func: 1, args: [, P.String]}, {func: 1, ret: {f
unc: 1, args: [,]}, args: [P.Zone, {func: 1, args: [,]}]}, {func: 1, ret: {func:
1}, args: [P.Zone, {func: 1}]}, {func: 1, args: [P.Zone, {func: 1, args: [,,]},
,,]}, {func: 1, ret: {func: 1, args: [,,]}, args: [P.Zone, {func: 1, args: [,,]}
]}, {func: 1, args: [P.Zone, {func: 1, args: [,]},,]}, {func: 1, args: [P.Zone,
{func: 1}]}, {func: 1, args: [P.Zone,, P.StackTrace]}, {func: 1, args: [P.String
]}, {func: 1, args: [P.bool]}, {func: 1, ret: P.bool}, {func: 1, args: [{func: 1
, v: true}]}, {func: 1, args: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackTrace]},
{func: 1, args: [P.String,,]}, {func: 1, ret: P.$int, args: [, P.$int]}, {func:
1, ret: P.num, args: [P.num, P.num]}, {func: 1, args: [P.Symbol,,]}, {func: 1, v
: true, opt: [,]}, {func: 1, ret: P.$int, args: [,,]}, {func: 1, v: true, args:
[P.String], opt: [,]}, {func: 1, ret: P.$int, args: [P.$int, P.$int]}, {func: 1,
ret: P.Future, args: [,]}, {func: 1, v: true, args: [,]}, {func: 1, v: true, ar
gs: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackTrace]}, {func: 1, args: [P.Zone, P
.ZoneDelegate, P.Zone, {func: 1}]}, {func: 1, args: [P.Zone, P.ZoneDelegate, P.Z
one, {func: 1, args: [,]},,]}, {func: 1, args: [P.Zone, P.ZoneDelegate, P.Zone,
{func: 1, args: [,,]},,,]}, {func: 1, ret: {func: 1}, args: [P.Zone, P.ZoneDeleg
ate, P.Zone, {func: 1}]}, {func: 1, ret: {func: 1, args: [,]}, args: [P.Zone, P.
ZoneDelegate, P.Zone, {func: 1, args: [,]}]}, {func: 1, ret: {func: 1, args: [,,
]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1, args: [,,]}]}, {func: 1, re
t: P.AsyncError, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Object, P.StackTrace]}
, {func: 1, v: true, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: 1}]}, {func:
1, ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: 1, v:
true}]}, {func: 1, ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Durat
ion, {func: 1, v: true, args: [P.Timer]}]}, {func: 1, v: true, args: [P.Zone, P.
ZoneDelegate, P.Zone, P.String]}, {func: 1, ret: P.Zone, args: [P.Zone, P.ZoneDe
legate, P.Zone, P.ZoneSpecification, P.Map]}, {func: 1, args: [P.$int,,]}, {func
: 1, ret: P.String, args: [P.String]}, {func: 1, v: true, args: [P.$int, P.$int]
}]; |
15013 function convertToFastObject(properties) { | 15579 function convertToFastObject(properties) { |
15014 function MyClass() { | 15580 function MyClass() { |
15015 } | 15581 } |
15016 MyClass.prototype = properties; | 15582 MyClass.prototype = properties; |
15017 new MyClass(); | 15583 new MyClass(); |
15018 return properties; | 15584 return properties; |
15019 } | 15585 } |
15020 function convertToSlowObject(properties) { | 15586 function convertToSlowObject(properties) { |
15021 properties.__MAGIC_SLOW_PROPERTY = 1; | 15587 properties.__MAGIC_SLOW_PROPERTY = 1; |
15022 delete properties.__MAGIC_SLOW_PROPERTY; | 15588 delete properties.__MAGIC_SLOW_PROPERTY; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15109 } | 15675 } |
15110 Isolate.prototype = oldIsolate.prototype; | 15676 Isolate.prototype = oldIsolate.prototype; |
15111 Isolate.prototype.constructor = Isolate; | 15677 Isolate.prototype.constructor = Isolate; |
15112 Isolate.$isolateProperties = isolateProperties; | 15678 Isolate.$isolateProperties = isolateProperties; |
15113 Isolate.makeConstantList = oldIsolate.makeConstantList; | 15679 Isolate.makeConstantList = oldIsolate.makeConstantList; |
15114 Isolate.functionThatReturnsNull = oldIsolate.functionThatReturnsNull; | 15680 Isolate.functionThatReturnsNull = oldIsolate.functionThatReturnsNull; |
15115 return Isolate; | 15681 return Isolate; |
15116 }; | 15682 }; |
15117 } | 15683 } |
15118 !function() { | 15684 !function() { |
15119 function intern(s) { | 15685 var intern = function(s) { |
15120 var o = {}; | 15686 var o = {}; |
15121 o[s] = 1; | 15687 o[s] = 1; |
15122 return Object.keys(convertToFastObject(o))[0]; | 15688 return Object.keys(convertToFastObject(o))[0]; |
15123 } | 15689 }; |
15124 init.getIsolateTag = function(name) { | 15690 init.getIsolateTag = function(name) { |
15125 return intern("___dart_" + name + init.isolateTag); | 15691 return intern("___dart_" + name + init.isolateTag); |
15126 }; | 15692 }; |
15127 var tableProperty = "___dart_isolate_tags_"; | 15693 var tableProperty = "___dart_isolate_tags_"; |
15128 var usedProperties = Object[tableProperty] || (Object[tableProperty] = Objec
t.create(null)); | 15694 var usedProperties = Object[tableProperty] || (Object[tableProperty] = Objec
t.create(null)); |
15129 var rootProperty = "_ZxYxX"; | 15695 var rootProperty = "_ZxYxX"; |
15130 for (var i = 0;; i++) { | 15696 for (var i = 0;; i++) { |
15131 var property = intern(rootProperty + "_" + i + "_"); | 15697 var property = intern(rootProperty + "_" + i + "_"); |
15132 if (!(property in usedProperties)) { | 15698 if (!(property in usedProperties)) { |
15133 usedProperties[property] = 1; | 15699 usedProperties[property] = 1; |
(...skipping 18 matching lines...) Expand all Loading... |
15152 for (var i = 0; i < scripts.length; ++i) | 15718 for (var i = 0; i < scripts.length; ++i) |
15153 scripts[i].removeEventListener("load", onLoad, false); | 15719 scripts[i].removeEventListener("load", onLoad, false); |
15154 callback(event.target); | 15720 callback(event.target); |
15155 } | 15721 } |
15156 for (var i = 0; i < scripts.length; ++i) | 15722 for (var i = 0; i < scripts.length; ++i) |
15157 scripts[i].addEventListener("load", onLoad, false); | 15723 scripts[i].addEventListener("load", onLoad, false); |
15158 })(function(currentScript) { | 15724 })(function(currentScript) { |
15159 init.currentScript = currentScript; | 15725 init.currentScript = currentScript; |
15160 if (typeof dartMainRunner === "function") | 15726 if (typeof dartMainRunner === "function") |
15161 dartMainRunner(function(a) { | 15727 dartMainRunner(function(a) { |
15162 H.startRootIsolate(R.host__main$closure(), a); | 15728 H.startRootIsolate(M.host__main$closure(), a); |
15163 }, []); | 15729 }, []); |
15164 else | 15730 else |
15165 (function(a) { | 15731 (function(a) { |
15166 H.startRootIsolate(R.host__main$closure(), a); | 15732 H.startRootIsolate(M.host__main$closure(), a); |
15167 })([]); | 15733 })([]); |
15168 }); | 15734 }); |
15169 // END invoke [main]. | 15735 // END invoke [main]. |
15170 })(); | 15736 })(); |
15171 | 15737 |
15172 //# sourceMappingURL=host.dart.js.map | 15738 //# sourceMappingURL=host.dart.js.map |
OLD | NEW |