| OLD | NEW |
| 1 var _js_helper = dart.defineLibrary(_js_helper, {}); | 1 var _js_helper = dart.defineLibrary(_js_helper, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var collection = dart.import(collection); | 3 var collection = dart.import(collection); |
| 4 var _internal = dart.import(_internal); | 4 var _internal = dart.import(_internal); |
| 5 var _foreign_helper = dart.import(_foreign_helper); | 5 var _foreign_helper = dart.import(_foreign_helper); |
| 6 var _js_embedded_names = dart.import(_js_embedded_names); | 6 var _js_embedded_names = dart.import(_js_embedded_names); |
| 7 var _interceptors = dart.lazyImport(_interceptors); | 7 var _interceptors = dart.lazyImport(_interceptors); |
| 8 var _js_names = dart.import(_js_names); | 8 var _js_names = dart.import(_js_names); |
| 9 var async = dart.import(async); | 9 var async = dart.import(async); |
| 10 var _isolate_helper = dart.lazyImport(_isolate_helper); | 10 var _isolate_helper = dart.lazyImport(_isolate_helper); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 addAll(other) { | 73 addAll(other) { |
| 74 dart.as(other, core.Map$(K, V)); | 74 dart.as(other, core.Map$(K, V)); |
| 75 return this[_throwUnmodifiable](); | 75 return this[_throwUnmodifiable](); |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; | 78 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; |
| 79 dart.defineNamedConstructor(ConstantMap, '_'); | 79 dart.defineNamedConstructor(ConstantMap, '_'); |
| 80 dart.setSignature(ConstantMap, { | 80 dart.setSignature(ConstantMap, { |
| 81 methods: () => ({ | 81 methods: () => ({ |
| 82 toString: dart.functionType(core.String, []), | 82 toString: [core.String, []], |
| 83 [_throwUnmodifiable]: dart.functionType(dart.dynamic, []), | 83 [_throwUnmodifiable]: [dart.dynamic, []], |
| 84 set: dart.functionType(dart.void, [K, V]), | 84 set: [dart.void, [K, V]], |
| 85 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), | 85 putIfAbsent: [V, [K, dart.functionType(V, [])]], |
| 86 remove: dart.functionType(V, [core.Object]), | 86 remove: [V, [core.Object]], |
| 87 clear: dart.functionType(dart.void, []), | 87 clear: [dart.void, []], |
| 88 addAll: dart.functionType(dart.void, [core.Map$(K, V)]) | 88 addAll: [dart.void, [core.Map$(K, V)]] |
| 89 }) | 89 }) |
| 90 }); | 90 }); |
| 91 return ConstantMap; | 91 return ConstantMap; |
| 92 }); | 92 }); |
| 93 let ConstantMap = ConstantMap$(); | 93 let ConstantMap = ConstantMap$(); |
| 94 let _jsObject = Symbol('_jsObject'); | 94 let _jsObject = Symbol('_jsObject'); |
| 95 let _keys = Symbol('_keys'); | 95 let _keys = Symbol('_keys'); |
| 96 let _fetch = Symbol('_fetch'); | 96 let _fetch = Symbol('_fetch'); |
| 97 let ConstantStringMap$ = dart.generic(function(K, V) { | 97 let ConstantStringMap$ = dart.generic(function(K, V) { |
| 98 class ConstantStringMap extends ConstantMap$(K, V) { | 98 class ConstantStringMap extends ConstantMap$(K, V) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return new (_ConstantMapKeyIterable$(K))(this); | 132 return new (_ConstantMapKeyIterable$(K))(this); |
| 133 } | 133 } |
| 134 get values() { | 134 get values() { |
| 135 return new (_internal.MappedIterable$(K, V))(this[_keys], dart.fn((key =
> dart.as(this[_fetch](key), V)).bind(this), V, [dart.dynamic])); | 135 return new (_internal.MappedIterable$(K, V))(this[_keys], dart.fn((key =
> dart.as(this[_fetch](key), V)).bind(this), V, [dart.dynamic])); |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; | 138 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; |
| 139 dart.defineNamedConstructor(ConstantStringMap, '_'); | 139 dart.defineNamedConstructor(ConstantStringMap, '_'); |
| 140 dart.setSignature(ConstantStringMap, { | 140 dart.setSignature(ConstantStringMap, { |
| 141 methods: () => ({ | 141 methods: () => ({ |
| 142 containsValue: dart.functionType(core.bool, [core.Object]), | 142 containsValue: [core.bool, [core.Object]], |
| 143 containsKey: dart.functionType(core.bool, [core.Object]), | 143 containsKey: [core.bool, [core.Object]], |
| 144 get: dart.functionType(V, [core.Object]), | 144 get: [V, [core.Object]], |
| 145 [_fetch]: dart.functionType(dart.dynamic, [dart.dynamic]), | 145 [_fetch]: [dart.dynamic, [dart.dynamic]], |
| 146 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]) | 146 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]] |
| 147 }) | 147 }) |
| 148 }); | 148 }); |
| 149 return ConstantStringMap; | 149 return ConstantStringMap; |
| 150 }); | 150 }); |
| 151 let ConstantStringMap = ConstantStringMap$(); | 151 let ConstantStringMap = ConstantStringMap$(); |
| 152 let _protoValue = Symbol('_protoValue'); | 152 let _protoValue = Symbol('_protoValue'); |
| 153 let ConstantProtoMap$ = dart.generic(function(K, V) { | 153 let ConstantProtoMap$ = dart.generic(function(K, V) { |
| 154 class ConstantProtoMap extends ConstantStringMap$(K, V) { | 154 class ConstantProtoMap extends ConstantStringMap$(K, V) { |
| 155 _(length, jsObject, keys, protoValue) { | 155 _(length, jsObject, keys, protoValue) { |
| 156 this[_protoValue] = protoValue; | 156 this[_protoValue] = protoValue; |
| 157 super._(dart.as(length, core.int), jsObject, dart.as(keys, core.List$(K)
)); | 157 super._(dart.as(length, core.int), jsObject, dart.as(keys, core.List$(K)
)); |
| 158 } | 158 } |
| 159 containsKey(key) { | 159 containsKey(key) { |
| 160 if (!(typeof key == 'string')) | 160 if (!(typeof key == 'string')) |
| 161 return false; | 161 return false; |
| 162 if (dart.equals('__proto__', key)) | 162 if (dart.equals('__proto__', key)) |
| 163 return true; | 163 return true; |
| 164 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); | 164 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); |
| 165 } | 165 } |
| 166 [_fetch](key) { | 166 [_fetch](key) { |
| 167 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); | 167 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 dart.defineNamedConstructor(ConstantProtoMap, '_'); | 170 dart.defineNamedConstructor(ConstantProtoMap, '_'); |
| 171 dart.setSignature(ConstantProtoMap, { | 171 dart.setSignature(ConstantProtoMap, { |
| 172 methods: () => ({ | 172 methods: () => ({ |
| 173 containsKey: dart.functionType(core.bool, [core.Object]), | 173 containsKey: [core.bool, [core.Object]], |
| 174 [_fetch]: dart.functionType(dart.dynamic, [dart.dynamic]) | 174 [_fetch]: [dart.dynamic, [dart.dynamic]] |
| 175 }) | 175 }) |
| 176 }); | 176 }); |
| 177 return ConstantProtoMap; | 177 return ConstantProtoMap; |
| 178 }); | 178 }); |
| 179 let ConstantProtoMap = ConstantProtoMap$(); | 179 let ConstantProtoMap = ConstantProtoMap$(); |
| 180 let _map = Symbol('_map'); | 180 let _map = Symbol('_map'); |
| 181 let _ConstantMapKeyIterable$ = dart.generic(function(K) { | 181 let _ConstantMapKeyIterable$ = dart.generic(function(K) { |
| 182 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { | 182 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { |
| 183 _ConstantMapKeyIterable(map) { | 183 _ConstantMapKeyIterable(map) { |
| 184 this[_map] = map; | 184 this[_map] = map; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 get values() { | 229 get values() { |
| 230 return this[_getMap]().values; | 230 return this[_getMap]().values; |
| 231 } | 231 } |
| 232 get length() { | 232 get length() { |
| 233 return this[_getMap]().length; | 233 return this[_getMap]().length; |
| 234 } | 234 } |
| 235 } | 235 } |
| 236 dart.setSignature(GeneralConstantMap, { | 236 dart.setSignature(GeneralConstantMap, { |
| 237 methods: () => ({ | 237 methods: () => ({ |
| 238 [_getMap]: dart.functionType(core.Map$(K, V), []), | 238 [_getMap]: [core.Map$(K, V), []], |
| 239 containsValue: dart.functionType(core.bool, [core.Object]), | 239 containsValue: [core.bool, [core.Object]], |
| 240 containsKey: dart.functionType(core.bool, [core.Object]), | 240 containsKey: [core.bool, [core.Object]], |
| 241 get: dart.functionType(V, [core.Object]), | 241 get: [V, [core.Object]], |
| 242 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]) | 242 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]] |
| 243 }) | 243 }) |
| 244 }); | 244 }); |
| 245 return GeneralConstantMap; | 245 return GeneralConstantMap; |
| 246 }); | 246 }); |
| 247 let GeneralConstantMap = GeneralConstantMap$(); | 247 let GeneralConstantMap = GeneralConstantMap$(); |
| 248 function contains(userAgent, name) { | 248 function contains(userAgent, name) { |
| 249 return userAgent.indexOf(name) != -1; | 249 return userAgent.indexOf(name) != -1; |
| 250 } | 250 } |
| 251 dart.fn(contains, core.bool, [core.String, core.String]); | 251 dart.fn(contains, core.bool, [core.String, core.String]); |
| 252 function arrayLength(array) { | 252 function arrayLength(array) { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 get isMultiLine() { | 630 get isMultiLine() { |
| 631 return this[_isMultiLine]; | 631 return this[_isMultiLine]; |
| 632 } | 632 } |
| 633 get isCaseSensitive() { | 633 get isCaseSensitive() { |
| 634 return this[_isCaseSensitive]; | 634 return this[_isCaseSensitive]; |
| 635 } | 635 } |
| 636 } | 636 } |
| 637 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; | 637 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; |
| 638 dart.setSignature(JSSyntaxRegExp, { | 638 dart.setSignature(JSSyntaxRegExp, { |
| 639 methods: () => ({ | 639 methods: () => ({ |
| 640 toString: dart.functionType(core.String, []), | 640 toString: [core.String, []], |
| 641 firstMatch: dart.functionType(core.Match, [core.String]), | 641 firstMatch: [core.Match, [core.String]], |
| 642 hasMatch: dart.functionType(core.bool, [core.String]), | 642 hasMatch: [core.bool, [core.String]], |
| 643 stringMatch: dart.functionType(core.String, [core.String]), | 643 stringMatch: [core.String, [core.String]], |
| 644 allMatches: dart.functionType(core.Iterable$(core.Match), [core.String], [
core.int]), | 644 allMatches: [core.Iterable$(core.Match), [core.String], [core.int]], |
| 645 [_execGlobal]: dart.functionType(core.Match, [core.String, core.int]), | 645 [_execGlobal]: [core.Match, [core.String, core.int]], |
| 646 [_execAnchored]: dart.functionType(core.Match, [core.String, core.int]), | 646 [_execAnchored]: [core.Match, [core.String, core.int]], |
| 647 matchAsPrefix: dart.functionType(core.Match, [core.String], [core.int]) | 647 matchAsPrefix: [core.Match, [core.String], [core.int]] |
| 648 }), | 648 }), |
| 649 statics: () => ({makeNative: dart.functionType(dart.dynamic, [core.String, c
ore.bool, core.bool, core.bool])}), | 649 statics: () => ({makeNative: [dart.dynamic, [core.String, core.bool, core.bo
ol, core.bool]]}), |
| 650 names: ['makeNative'] | 650 names: ['makeNative'] |
| 651 }); | 651 }); |
| 652 let _match = Symbol('_match'); | 652 let _match = Symbol('_match'); |
| 653 class _MatchImplementation extends core.Object { | 653 class _MatchImplementation extends core.Object { |
| 654 _MatchImplementation(pattern, match) { | 654 _MatchImplementation(pattern, match) { |
| 655 this.pattern = pattern; | 655 this.pattern = pattern; |
| 656 this[_match] = match; | 656 this[_match] = match; |
| 657 dart.assert(typeof this[_match].input == 'string'); | 657 dart.assert(typeof this[_match].input == 'string'); |
| 658 dart.assert(typeof this[_match].index == 'number'); | 658 dart.assert(typeof this[_match].index == 'number'); |
| 659 } | 659 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 679 let out = dart.setType([], core.List$(core.String)); | 679 let out = dart.setType([], core.List$(core.String)); |
| 680 for (let i of groups) { | 680 for (let i of groups) { |
| 681 out[core.$add](this.group(i)); | 681 out[core.$add](this.group(i)); |
| 682 } | 682 } |
| 683 return out; | 683 return out; |
| 684 } | 684 } |
| 685 } | 685 } |
| 686 _MatchImplementation[dart.implements] = () => [core.Match]; | 686 _MatchImplementation[dart.implements] = () => [core.Match]; |
| 687 dart.setSignature(_MatchImplementation, { | 687 dart.setSignature(_MatchImplementation, { |
| 688 methods: () => ({ | 688 methods: () => ({ |
| 689 group: dart.functionType(core.String, [core.int]), | 689 group: [core.String, [core.int]], |
| 690 get: dart.functionType(core.String, [core.int]), | 690 get: [core.String, [core.int]], |
| 691 groups: dart.functionType(core.List$(core.String), [core.List$(core.int)]) | 691 groups: [core.List$(core.String), [core.List$(core.int)]] |
| 692 }) | 692 }) |
| 693 }); | 693 }); |
| 694 let _re = Symbol('_re'); | 694 let _re = Symbol('_re'); |
| 695 let _string = Symbol('_string'); | 695 let _string = Symbol('_string'); |
| 696 let _start = Symbol('_start'); | 696 let _start = Symbol('_start'); |
| 697 class _AllMatchesIterable extends collection.IterableBase$(core.Match) { | 697 class _AllMatchesIterable extends collection.IterableBase$(core.Match) { |
| 698 _AllMatchesIterable(re, string, start) { | 698 _AllMatchesIterable(re, string, start) { |
| 699 this[_re] = re; | 699 this[_re] = re; |
| 700 this[_string] = string; | 700 this[_string] = string; |
| 701 this[_start] = start; | 701 this[_start] = start; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 return true; | 734 return true; |
| 735 } | 735 } |
| 736 } | 736 } |
| 737 this[_current] = null; | 737 this[_current] = null; |
| 738 this[_string] = null; | 738 this[_string] = null; |
| 739 return false; | 739 return false; |
| 740 } | 740 } |
| 741 } | 741 } |
| 742 _AllMatchesIterator[dart.implements] = () => [core.Iterator$(core.Match)]; | 742 _AllMatchesIterator[dart.implements] = () => [core.Iterator$(core.Match)]; |
| 743 dart.setSignature(_AllMatchesIterator, { | 743 dart.setSignature(_AllMatchesIterator, { |
| 744 methods: () => ({moveNext: dart.functionType(core.bool, [])}) | 744 methods: () => ({moveNext: [core.bool, []]}) |
| 745 }); | 745 }); |
| 746 function firstMatchAfter(regExp, string, start) { | 746 function firstMatchAfter(regExp, string, start) { |
| 747 return regExp[_execGlobal](string, start); | 747 return regExp[_execGlobal](string, start); |
| 748 } | 748 } |
| 749 dart.fn(firstMatchAfter, core.Match, [JSSyntaxRegExp, core.String, core.int]); | 749 dart.fn(firstMatchAfter, core.Match, [JSSyntaxRegExp, core.String, core.int]); |
| 750 class StringMatch extends core.Object { | 750 class StringMatch extends core.Object { |
| 751 StringMatch(start, input, pattern) { | 751 StringMatch(start, input, pattern) { |
| 752 this.start = start; | 752 this.start = start; |
| 753 this.input = input; | 753 this.input = input; |
| 754 this.pattern = pattern; | 754 this.pattern = pattern; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 772 let result = new (core.List$(core.String))(); | 772 let result = new (core.List$(core.String))(); |
| 773 for (let g of groups_) { | 773 for (let g of groups_) { |
| 774 result[core.$add](this.group(g)); | 774 result[core.$add](this.group(g)); |
| 775 } | 775 } |
| 776 return result; | 776 return result; |
| 777 } | 777 } |
| 778 } | 778 } |
| 779 StringMatch[dart.implements] = () => [core.Match]; | 779 StringMatch[dart.implements] = () => [core.Match]; |
| 780 dart.setSignature(StringMatch, { | 780 dart.setSignature(StringMatch, { |
| 781 methods: () => ({ | 781 methods: () => ({ |
| 782 get: dart.functionType(core.String, [core.int]), | 782 get: [core.String, [core.int]], |
| 783 group: dart.functionType(core.String, [core.int]), | 783 group: [core.String, [core.int]], |
| 784 groups: dart.functionType(core.List$(core.String), [core.List$(core.int)]) | 784 groups: [core.List$(core.String), [core.List$(core.int)]] |
| 785 }) | 785 }) |
| 786 }); | 786 }); |
| 787 function allMatchesInStringUnchecked(needle, haystack, startIndex) { | 787 function allMatchesInStringUnchecked(needle, haystack, startIndex) { |
| 788 let result = new (core.List$(core.Match))(); | 788 let result = new (core.List$(core.Match))(); |
| 789 let length = haystack.length; | 789 let length = haystack.length; |
| 790 let patternLength = needle.length; | 790 let patternLength = needle.length; |
| 791 while (true) { | 791 while (true) { |
| 792 let position = haystack.indexOf(needle, startIndex); | 792 let position = haystack.indexOf(needle, startIndex); |
| 793 if (position == -1) { | 793 if (position == -1) { |
| 794 break; | 794 break; |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 get hashCode() { | 978 get hashCode() { |
| 979 return dart.hashCode(this[_typeName]); | 979 return dart.hashCode(this[_typeName]); |
| 980 } | 980 } |
| 981 ['=='](other) { | 981 ['=='](other) { |
| 982 return dart.is(other, TypeImpl) && dart.equals(this[_typeName], dart.dload
(other, _typeName)); | 982 return dart.is(other, TypeImpl) && dart.equals(this[_typeName], dart.dload
(other, _typeName)); |
| 983 } | 983 } |
| 984 } | 984 } |
| 985 TypeImpl[dart.implements] = () => [core.Type]; | 985 TypeImpl[dart.implements] = () => [core.Type]; |
| 986 dart.setSignature(TypeImpl, { | 986 dart.setSignature(TypeImpl, { |
| 987 methods: () => ({ | 987 methods: () => ({ |
| 988 toString: dart.functionType(core.String, []), | 988 toString: [core.String, []], |
| 989 '==': dart.functionType(core.bool, [dart.dynamic]) | 989 '==': [core.bool, [dart.dynamic]] |
| 990 }) | 990 }) |
| 991 }); | 991 }); |
| 992 class TypeVariable extends core.Object { | 992 class TypeVariable extends core.Object { |
| 993 TypeVariable(owner, name, bound) { | 993 TypeVariable(owner, name, bound) { |
| 994 this.owner = owner; | 994 this.owner = owner; |
| 995 this.name = name; | 995 this.name = name; |
| 996 this.bound = bound; | 996 this.bound = bound; |
| 997 } | 997 } |
| 998 } | 998 } |
| 999 dart.setSignature(TypeVariable, {}); | 999 dart.setSignature(TypeVariable, {}); |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1616 } else { | 1616 } else { |
| 1617 return dart.dsend(cached, 'invokeOn', victim, invocation[_arguments]); | 1617 return dart.dsend(cached, 'invokeOn', victim, invocation[_arguments]); |
| 1618 } | 1618 } |
| 1619 } | 1619 } |
| 1620 static getCachedInvocation(invocation, victim) { | 1620 static getCachedInvocation(invocation, victim) { |
| 1621 return invocation[_getCachedInvocation](victim); | 1621 return invocation[_getCachedInvocation](victim); |
| 1622 } | 1622 } |
| 1623 } | 1623 } |
| 1624 JSInvocationMirror[dart.implements] = () => [core.Invocation]; | 1624 JSInvocationMirror[dart.implements] = () => [core.Invocation]; |
| 1625 dart.setSignature(JSInvocationMirror, { | 1625 dart.setSignature(JSInvocationMirror, { |
| 1626 methods: () => ({[_getCachedInvocation]: dart.functionType(dart.dynamic, [co
re.Object])}), | 1626 methods: () => ({[_getCachedInvocation]: [dart.dynamic, [core.Object]]}), |
| 1627 statics: () => ({ | 1627 statics: () => ({ |
| 1628 invokeFromMirror: dart.functionType(dart.dynamic, [JSInvocationMirror, cor
e.Object]), | 1628 invokeFromMirror: [dart.dynamic, [JSInvocationMirror, core.Object]], |
| 1629 getCachedInvocation: dart.functionType(dart.dynamic, [JSInvocationMirror,
core.Object]) | 1629 getCachedInvocation: [dart.dynamic, [JSInvocationMirror, core.Object]] |
| 1630 }), | 1630 }), |
| 1631 names: ['invokeFromMirror', 'getCachedInvocation'] | 1631 names: ['invokeFromMirror', 'getCachedInvocation'] |
| 1632 }); | 1632 }); |
| 1633 JSInvocationMirror.METHOD = 0; | 1633 JSInvocationMirror.METHOD = 0; |
| 1634 JSInvocationMirror.GETTER = 1; | 1634 JSInvocationMirror.GETTER = 1; |
| 1635 JSInvocationMirror.SETTER = 2; | 1635 JSInvocationMirror.SETTER = 2; |
| 1636 class CachedInvocation extends core.Object { | 1636 class CachedInvocation extends core.Object { |
| 1637 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor)
{ | 1637 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor)
{ |
| 1638 this.mangledName = mangledName; | 1638 this.mangledName = mangledName; |
| 1639 this.jsFunction = jsFunction; | 1639 this.jsFunction = jsFunction; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1655 let _ = [victim]; | 1655 let _ = [victim]; |
| 1656 _[core.$addAll](arguments$); | 1656 _[core.$addAll](arguments$); |
| 1657 arguments$ = _; | 1657 arguments$ = _; |
| 1658 if (this.cachedInterceptor != null) | 1658 if (this.cachedInterceptor != null) |
| 1659 receiver = this.cachedInterceptor; | 1659 receiver = this.cachedInterceptor; |
| 1660 } | 1660 } |
| 1661 return this.jsFunction.apply(receiver, arguments$); | 1661 return this.jsFunction.apply(receiver, arguments$); |
| 1662 } | 1662 } |
| 1663 } | 1663 } |
| 1664 dart.setSignature(CachedInvocation, { | 1664 dart.setSignature(CachedInvocation, { |
| 1665 methods: () => ({invokeOn: dart.functionType(dart.dynamic, [core.Object, cor
e.List])}) | 1665 methods: () => ({invokeOn: [dart.dynamic, [core.Object, core.List]]}) |
| 1666 }); | 1666 }); |
| 1667 class CachedCatchAllInvocation extends CachedInvocation { | 1667 class CachedCatchAllInvocation extends CachedInvocation { |
| 1668 CachedCatchAllInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
{ | 1668 CachedCatchAllInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
{ |
| 1669 this.info = new ReflectionInfo(jsFunction); | 1669 this.info = new ReflectionInfo(jsFunction); |
| 1670 super.CachedInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
; | 1670 super.CachedInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
; |
| 1671 } | 1671 } |
| 1672 get isGetterStub() { | 1672 get isGetterStub() { |
| 1673 return false; | 1673 return false; |
| 1674 } | 1674 } |
| 1675 invokeOn(victim, arguments$) { | 1675 invokeOn(victim, arguments$) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1701 } else if (dart.notNull(providedArgumentCount) > dart.notNull(fullParamete
rCount)) { | 1701 } else if (dart.notNull(providedArgumentCount) > dart.notNull(fullParamete
rCount)) { |
| 1702 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
many).`); | 1702 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
many).`); |
| 1703 } | 1703 } |
| 1704 for (let i = providedArgumentCount; dart.notNull(i) < dart.notNull(fullPar
ameterCount); i = dart.notNull(i) + 1) { | 1704 for (let i = providedArgumentCount; dart.notNull(i) < dart.notNull(fullPar
ameterCount); i = dart.notNull(i) + 1) { |
| 1705 arguments$[core.$add](getMetadata(this.info.defaultValue(i))); | 1705 arguments$[core.$add](getMetadata(this.info.defaultValue(i))); |
| 1706 } | 1706 } |
| 1707 return this.jsFunction.apply(receiver, arguments$); | 1707 return this.jsFunction.apply(receiver, arguments$); |
| 1708 } | 1708 } |
| 1709 } | 1709 } |
| 1710 dart.setSignature(CachedCatchAllInvocation, { | 1710 dart.setSignature(CachedCatchAllInvocation, { |
| 1711 methods: () => ({invokeOn: dart.functionType(dart.dynamic, [core.Object, cor
e.List])}) | 1711 methods: () => ({invokeOn: [dart.dynamic, [core.Object, core.List]]}) |
| 1712 }); | 1712 }); |
| 1713 class CachedNoSuchMethodInvocation extends core.Object { | 1713 class CachedNoSuchMethodInvocation extends core.Object { |
| 1714 CachedNoSuchMethodInvocation(interceptor) { | 1714 CachedNoSuchMethodInvocation(interceptor) { |
| 1715 this.interceptor = interceptor; | 1715 this.interceptor = interceptor; |
| 1716 } | 1716 } |
| 1717 get isNoSuchMethod() { | 1717 get isNoSuchMethod() { |
| 1718 return true; | 1718 return true; |
| 1719 } | 1719 } |
| 1720 get isGetterStub() { | 1720 get isGetterStub() { |
| 1721 return false; | 1721 return false; |
| 1722 } | 1722 } |
| 1723 invokeOn(victim, invocation) { | 1723 invokeOn(victim, invocation) { |
| 1724 let receiver = this.interceptor == null ? victim : this.interceptor; | 1724 let receiver = this.interceptor == null ? victim : this.interceptor; |
| 1725 return dart.dsend(receiver, 'noSuchMethod', invocation); | 1725 return dart.dsend(receiver, 'noSuchMethod', invocation); |
| 1726 } | 1726 } |
| 1727 } | 1727 } |
| 1728 dart.setSignature(CachedNoSuchMethodInvocation, { | 1728 dart.setSignature(CachedNoSuchMethodInvocation, { |
| 1729 methods: () => ({invokeOn: dart.functionType(dart.dynamic, [core.Object, cor
e.Invocation])}) | 1729 methods: () => ({invokeOn: [dart.dynamic, [core.Object, core.Invocation]]}) |
| 1730 }); | 1730 }); |
| 1731 class ReflectionInfo extends core.Object { | 1731 class ReflectionInfo extends core.Object { |
| 1732 internal(jsFunction, data, isAccessor, requiredParameterCount, optionalParam
eterCount, areOptionalParametersNamed, functionType) { | 1732 internal(jsFunction, data, isAccessor, requiredParameterCount, optionalParam
eterCount, areOptionalParametersNamed, functionType) { |
| 1733 this.jsFunction = jsFunction; | 1733 this.jsFunction = jsFunction; |
| 1734 this.data = data; | 1734 this.data = data; |
| 1735 this.isAccessor = isAccessor; | 1735 this.isAccessor = isAccessor; |
| 1736 this.requiredParameterCount = requiredParameterCount; | 1736 this.requiredParameterCount = requiredParameterCount; |
| 1737 this.optionalParameterCount = optionalParameterCount; | 1737 this.optionalParameterCount = optionalParameterCount; |
| 1738 this.areOptionalParametersNamed = areOptionalParametersNamed; | 1738 this.areOptionalParametersNamed = areOptionalParametersNamed; |
| 1739 this.functionType = functionType; | 1739 this.functionType = functionType; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 throw new RuntimeError('Unexpected function type'); | 1827 throw new RuntimeError('Unexpected function type'); |
| 1828 } | 1828 } |
| 1829 } | 1829 } |
| 1830 get reflectionName() { | 1830 get reflectionName() { |
| 1831 return this.jsFunction.$reflectionName; | 1831 return this.jsFunction.$reflectionName; |
| 1832 } | 1832 } |
| 1833 } | 1833 } |
| 1834 dart.defineNamedConstructor(ReflectionInfo, 'internal'); | 1834 dart.defineNamedConstructor(ReflectionInfo, 'internal'); |
| 1835 dart.setSignature(ReflectionInfo, { | 1835 dart.setSignature(ReflectionInfo, { |
| 1836 methods: () => ({ | 1836 methods: () => ({ |
| 1837 parameterName: dart.functionType(core.String, [core.int]), | 1837 parameterName: [core.String, [core.int]], |
| 1838 parameterMetadataAnnotations: dart.functionType(core.List$(core.int), [cor
e.int]), | 1838 parameterMetadataAnnotations: [core.List$(core.int), [core.int]], |
| 1839 defaultValue: dart.functionType(core.int, [core.int]), | 1839 defaultValue: [core.int, [core.int]], |
| 1840 defaultValueInOrder: dart.functionType(core.int, [core.int]), | 1840 defaultValueInOrder: [core.int, [core.int]], |
| 1841 parameterNameInOrder: dart.functionType(core.String, [core.int]), | 1841 parameterNameInOrder: [core.String, [core.int]], |
| 1842 sortedIndex: dart.functionType(core.int, [core.int]), | 1842 sortedIndex: [core.int, [core.int]], |
| 1843 computeFunctionRti: dart.functionType(dart.dynamic, [dart.dynamic]) | 1843 computeFunctionRti: [dart.dynamic, [dart.dynamic]] |
| 1844 }) | 1844 }) |
| 1845 }); | 1845 }); |
| 1846 ReflectionInfo.REQUIRED_PARAMETERS_INFO = 0; | 1846 ReflectionInfo.REQUIRED_PARAMETERS_INFO = 0; |
| 1847 ReflectionInfo.OPTIONAL_PARAMETERS_INFO = 1; | 1847 ReflectionInfo.OPTIONAL_PARAMETERS_INFO = 1; |
| 1848 ReflectionInfo.FUNCTION_TYPE_INDEX = 2; | 1848 ReflectionInfo.FUNCTION_TYPE_INDEX = 2; |
| 1849 ReflectionInfo.FIRST_DEFAULT_ARGUMENT = 3; | 1849 ReflectionInfo.FIRST_DEFAULT_ARGUMENT = 3; |
| 1850 function getMetadata(index) { | 1850 function getMetadata(index) { |
| 1851 let metadata = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.MET
ADATA); | 1851 let metadata = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.MET
ADATA); |
| 1852 return metadata[index]; | 1852 return metadata[index]; |
| 1853 } | 1853 } |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 } | 2240 } |
| 2241 static identicalImplementation(a, b) { | 2241 static identicalImplementation(a, b) { |
| 2242 return a == null ? b == null : a === b; | 2242 return a == null ? b == null : a === b; |
| 2243 } | 2243 } |
| 2244 static extractStackTrace(error) { | 2244 static extractStackTrace(error) { |
| 2245 return getTraceFromException(error.$thrownJsError); | 2245 return getTraceFromException(error.$thrownJsError); |
| 2246 } | 2246 } |
| 2247 } | 2247 } |
| 2248 dart.setSignature(Primitives, { | 2248 dart.setSignature(Primitives, { |
| 2249 statics: () => ({ | 2249 statics: () => ({ |
| 2250 initializeStatics: dart.functionType(dart.void, [core.int]), | 2250 initializeStatics: [dart.void, [core.int]], |
| 2251 objectHashCode: dart.functionType(core.int, [dart.dynamic]), | 2251 objectHashCode: [core.int, [dart.dynamic]], |
| 2252 _throwFormatException: dart.functionType(dart.dynamic, [core.String]), | 2252 _throwFormatException: [dart.dynamic, [core.String]], |
| 2253 parseInt: dart.functionType(core.int, [core.String, core.int, dart.functio
nType(core.int, [core.String])]), | 2253 parseInt: [core.int, [core.String, core.int, dart.functionType(core.int, [
core.String])]], |
| 2254 parseDouble: dart.functionType(core.double, [core.String, dart.functionTyp
e(core.double, [core.String])]), | 2254 parseDouble: [core.double, [core.String, dart.functionType(core.double, [c
ore.String])]], |
| 2255 formatType: dart.functionType(core.String, [core.String, core.List]), | 2255 formatType: [core.String, [core.String, core.List]], |
| 2256 objectTypeName: dart.functionType(core.String, [core.Object]), | 2256 objectTypeName: [core.String, [core.Object]], |
| 2257 objectToString: dart.functionType(core.String, [core.Object]), | 2257 objectToString: [core.String, [core.Object]], |
| 2258 dateNow: dart.functionType(core.num, []), | 2258 dateNow: [core.num, []], |
| 2259 initTicker: dart.functionType(dart.void, []), | 2259 initTicker: [dart.void, []], |
| 2260 currentUri: dart.functionType(core.String, []), | 2260 currentUri: [core.String, []], |
| 2261 _fromCharCodeApply: dart.functionType(core.String, [core.List$(core.int)])
, | 2261 _fromCharCodeApply: [core.String, [core.List$(core.int)]], |
| 2262 stringFromCodePoints: dart.functionType(core.String, [dart.dynamic]), | 2262 stringFromCodePoints: [core.String, [dart.dynamic]], |
| 2263 stringFromCharCodes: dart.functionType(core.String, [dart.dynamic]), | 2263 stringFromCharCodes: [core.String, [dart.dynamic]], |
| 2264 stringFromCharCode: dart.functionType(core.String, [dart.dynamic]), | 2264 stringFromCharCode: [core.String, [dart.dynamic]], |
| 2265 stringConcatUnchecked: dart.functionType(core.String, [core.String, core.S
tring]), | 2265 stringConcatUnchecked: [core.String, [core.String, core.String]], |
| 2266 flattenString: dart.functionType(core.String, [core.String]), | 2266 flattenString: [core.String, [core.String]], |
| 2267 getTimeZoneName: dart.functionType(core.String, [dart.dynamic]), | 2267 getTimeZoneName: [core.String, [dart.dynamic]], |
| 2268 getTimeZoneOffsetInMinutes: dart.functionType(core.int, [dart.dynamic]), | 2268 getTimeZoneOffsetInMinutes: [core.int, [dart.dynamic]], |
| 2269 valueFromDecomposedDate: dart.functionType(dart.dynamic, [dart.dynamic, da
rt.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic
, dart.dynamic]), | 2269 valueFromDecomposedDate: [dart.dynamic, [dart.dynamic, dart.dynamic, dart.
dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]], |
| 2270 patchUpY2K: dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic, d
art.dynamic]), | 2270 patchUpY2K: [dart.dynamic, [dart.dynamic, dart.dynamic, dart.dynamic]], |
| 2271 lazyAsJsDate: dart.functionType(dart.dynamic, [dart.dynamic]), | 2271 lazyAsJsDate: [dart.dynamic, [dart.dynamic]], |
| 2272 getYear: dart.functionType(dart.dynamic, [dart.dynamic]), | 2272 getYear: [dart.dynamic, [dart.dynamic]], |
| 2273 getMonth: dart.functionType(dart.dynamic, [dart.dynamic]), | 2273 getMonth: [dart.dynamic, [dart.dynamic]], |
| 2274 getDay: dart.functionType(dart.dynamic, [dart.dynamic]), | 2274 getDay: [dart.dynamic, [dart.dynamic]], |
| 2275 getHours: dart.functionType(dart.dynamic, [dart.dynamic]), | 2275 getHours: [dart.dynamic, [dart.dynamic]], |
| 2276 getMinutes: dart.functionType(dart.dynamic, [dart.dynamic]), | 2276 getMinutes: [dart.dynamic, [dart.dynamic]], |
| 2277 getSeconds: dart.functionType(dart.dynamic, [dart.dynamic]), | 2277 getSeconds: [dart.dynamic, [dart.dynamic]], |
| 2278 getMilliseconds: dart.functionType(dart.dynamic, [dart.dynamic]), | 2278 getMilliseconds: [dart.dynamic, [dart.dynamic]], |
| 2279 getWeekday: dart.functionType(dart.dynamic, [dart.dynamic]), | 2279 getWeekday: [dart.dynamic, [dart.dynamic]], |
| 2280 valueFromDateString: dart.functionType(dart.dynamic, [dart.dynamic]), | 2280 valueFromDateString: [dart.dynamic, [dart.dynamic]], |
| 2281 getProperty: dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])
, | 2281 getProperty: [dart.dynamic, [dart.dynamic, dart.dynamic]], |
| 2282 setProperty: dart.functionType(dart.void, [dart.dynamic, dart.dynamic, dar
t.dynamic]), | 2282 setProperty: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]], |
| 2283 functionNoSuchMethod: dart.functionType(dart.dynamic, [dart.dynamic, core.
List, core.Map$(core.String, dart.dynamic)]), | 2283 functionNoSuchMethod: [dart.dynamic, [dart.dynamic, core.List, core.Map$(c
ore.String, dart.dynamic)]], |
| 2284 applyFunction: dart.functionType(dart.dynamic, [core.Function, core.List,
core.Map$(core.String, dart.dynamic)]), | 2284 applyFunction: [dart.dynamic, [core.Function, core.List, core.Map$(core.St
ring, dart.dynamic)]], |
| 2285 applyFunctionWithPositionalArguments: dart.functionType(dart.dynamic, [cor
e.Function, core.List]), | 2285 applyFunctionWithPositionalArguments: [dart.dynamic, [core.Function, core.
List]], |
| 2286 applyFunctionWithNamedArguments: dart.functionType(dart.dynamic, [core.Fun
ction, core.List, core.Map$(core.String, dart.dynamic)]), | 2286 applyFunctionWithNamedArguments: [dart.dynamic, [core.Function, core.List,
core.Map$(core.String, dart.dynamic)]], |
| 2287 _mangledNameMatchesType: dart.functionType(dart.dynamic, [core.String, Typ
eImpl]), | 2287 _mangledNameMatchesType: [dart.dynamic, [core.String, TypeImpl]], |
| 2288 identicalImplementation: dart.functionType(core.bool, [dart.dynamic, dart.
dynamic]), | 2288 identicalImplementation: [core.bool, [dart.dynamic, dart.dynamic]], |
| 2289 extractStackTrace: dart.functionType(core.StackTrace, [core.Error]) | 2289 extractStackTrace: [core.StackTrace, [core.Error]] |
| 2290 }), | 2290 }), |
| 2291 names: ['initializeStatics', 'objectHashCode', '_throwFormatException', 'par
seInt', 'parseDouble', 'formatType', 'objectTypeName', 'objectToString', 'dateNo
w', 'initTicker', 'currentUri', '_fromCharCodeApply', 'stringFromCodePoints', 's
tringFromCharCodes', 'stringFromCharCode', 'stringConcatUnchecked', 'flattenStri
ng', 'getTimeZoneName', 'getTimeZoneOffsetInMinutes', 'valueFromDecomposedDate',
'patchUpY2K', 'lazyAsJsDate', 'getYear', 'getMonth', 'getDay', 'getHours', 'get
Minutes', 'getSeconds', 'getMilliseconds', 'getWeekday', 'valueFromDateString',
'getProperty', 'setProperty', 'functionNoSuchMethod', 'applyFunction', 'applyFun
ctionWithPositionalArguments', 'applyFunctionWithNamedArguments', '_mangledNameM
atchesType', 'identicalImplementation', 'extractStackTrace'] | 2291 names: ['initializeStatics', 'objectHashCode', '_throwFormatException', 'par
seInt', 'parseDouble', 'formatType', 'objectTypeName', 'objectToString', 'dateNo
w', 'initTicker', 'currentUri', '_fromCharCodeApply', 'stringFromCodePoints', 's
tringFromCharCodes', 'stringFromCharCode', 'stringConcatUnchecked', 'flattenStri
ng', 'getTimeZoneName', 'getTimeZoneOffsetInMinutes', 'valueFromDecomposedDate',
'patchUpY2K', 'lazyAsJsDate', 'getYear', 'getMonth', 'getDay', 'getHours', 'get
Minutes', 'getSeconds', 'getMilliseconds', 'getWeekday', 'valueFromDateString',
'getProperty', 'setProperty', 'functionNoSuchMethod', 'applyFunction', 'applyFun
ctionWithPositionalArguments', 'applyFunctionWithNamedArguments', '_mangledNameM
atchesType', 'identicalImplementation', 'extractStackTrace'] |
| 2292 }); | 2292 }); |
| 2293 Primitives.mirrorFunctionCacheName = '$cachedFunction'; | 2293 Primitives.mirrorFunctionCacheName = '$cachedFunction'; |
| 2294 Primitives.mirrorInvokeCacheName = '$cachedInvocation'; | 2294 Primitives.mirrorInvokeCacheName = '$cachedInvocation'; |
| 2295 Primitives.DOLLAR_CHAR_VALUE = 36; | 2295 Primitives.DOLLAR_CHAR_VALUE = 36; |
| 2296 Primitives.timerFrequency = null; | 2296 Primitives.timerFrequency = null; |
| 2297 Primitives.timerTicks = null; | 2297 Primitives.timerTicks = null; |
| 2298 dart.defineLazyProperties(Primitives, { | 2298 dart.defineLazyProperties(Primitives, { |
| 2299 get constructorNameFallback() { | 2299 get constructorNameFallback() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2320 } | 2320 } |
| 2321 static fetch(cache, key) { | 2321 static fetch(cache, key) { |
| 2322 return cache[key]; | 2322 return cache[key]; |
| 2323 } | 2323 } |
| 2324 static update(cache, key, value) { | 2324 static update(cache, key, value) { |
| 2325 cache[key] = value; | 2325 cache[key] = value; |
| 2326 } | 2326 } |
| 2327 } | 2327 } |
| 2328 dart.setSignature(JsCache, { | 2328 dart.setSignature(JsCache, { |
| 2329 statics: () => ({ | 2329 statics: () => ({ |
| 2330 allocate: dart.functionType(dart.dynamic, []), | 2330 allocate: [dart.dynamic, []], |
| 2331 fetch: dart.functionType(dart.dynamic, [dart.dynamic, core.String]), | 2331 fetch: [dart.dynamic, [dart.dynamic, core.String]], |
| 2332 update: dart.functionType(dart.void, [dart.dynamic, core.String, dart.dyna
mic]) | 2332 update: [dart.void, [dart.dynamic, core.String, dart.dynamic]] |
| 2333 }), | 2333 }), |
| 2334 names: ['allocate', 'fetch', 'update'] | 2334 names: ['allocate', 'fetch', 'update'] |
| 2335 }); | 2335 }); |
| 2336 function iae(argument) { | 2336 function iae(argument) { |
| 2337 throw new core.ArgumentError(argument); | 2337 throw new core.ArgumentError(argument); |
| 2338 } | 2338 } |
| 2339 dart.fn(iae); | 2339 dart.fn(iae); |
| 2340 function ioore(receiver, index) { | 2340 function ioore(receiver, index) { |
| 2341 if (receiver == null) | 2341 if (receiver == null) |
| 2342 dart.dload(receiver, 'length'); | 2342 dart.dload(receiver, 'length'); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2548 (void 0).$method$; | 2548 (void 0).$method$; |
| 2549 } catch (e) { | 2549 } catch (e) { |
| 2550 return e.message; | 2550 return e.message; |
| 2551 } | 2551 } |
| 2552 | 2552 |
| 2553 }; | 2553 }; |
| 2554 return func(); | 2554 return func(); |
| 2555 } | 2555 } |
| 2556 } | 2556 } |
| 2557 dart.setSignature(TypeErrorDecoder, { | 2557 dart.setSignature(TypeErrorDecoder, { |
| 2558 methods: () => ({matchTypeError: dart.functionType(dart.dynamic, [dart.dynam
ic])}), | 2558 methods: () => ({matchTypeError: [dart.dynamic, [dart.dynamic]]}), |
| 2559 statics: () => ({ | 2559 statics: () => ({ |
| 2560 buildJavaScriptObject: dart.functionType(dart.dynamic, []), | 2560 buildJavaScriptObject: [dart.dynamic, []], |
| 2561 buildJavaScriptObjectWithNonClosure: dart.functionType(dart.dynamic, []), | 2561 buildJavaScriptObjectWithNonClosure: [dart.dynamic, []], |
| 2562 extractPattern: dart.functionType(dart.dynamic, [core.String]), | 2562 extractPattern: [dart.dynamic, [core.String]], |
| 2563 provokeCallErrorOn: dart.functionType(core.String, [dart.dynamic]), | 2563 provokeCallErrorOn: [core.String, [dart.dynamic]], |
| 2564 provokeCallErrorOnNull: dart.functionType(core.String, []), | 2564 provokeCallErrorOnNull: [core.String, []], |
| 2565 provokeCallErrorOnUndefined: dart.functionType(core.String, []), | 2565 provokeCallErrorOnUndefined: [core.String, []], |
| 2566 provokePropertyErrorOn: dart.functionType(core.String, [dart.dynamic]), | 2566 provokePropertyErrorOn: [core.String, [dart.dynamic]], |
| 2567 provokePropertyErrorOnNull: dart.functionType(core.String, []), | 2567 provokePropertyErrorOnNull: [core.String, []], |
| 2568 provokePropertyErrorOnUndefined: dart.functionType(core.String, []) | 2568 provokePropertyErrorOnUndefined: [core.String, []] |
| 2569 }), | 2569 }), |
| 2570 names: ['buildJavaScriptObject', 'buildJavaScriptObjectWithNonClosure', 'ext
ractPattern', 'provokeCallErrorOn', 'provokeCallErrorOnNull', 'provokeCallErrorO
nUndefined', 'provokePropertyErrorOn', 'provokePropertyErrorOnNull', 'provokePro
pertyErrorOnUndefined'] | 2570 names: ['buildJavaScriptObject', 'buildJavaScriptObjectWithNonClosure', 'ext
ractPattern', 'provokeCallErrorOn', 'provokeCallErrorOnNull', 'provokeCallErrorO
nUndefined', 'provokePropertyErrorOn', 'provokePropertyErrorOnNull', 'provokePro
pertyErrorOnUndefined'] |
| 2571 }); | 2571 }); |
| 2572 dart.defineLazyProperties(TypeErrorDecoder, { | 2572 dart.defineLazyProperties(TypeErrorDecoder, { |
| 2573 get noSuchMethodPattern() { | 2573 get noSuchMethodPattern() { |
| 2574 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokeCal
lErrorOn(TypeErrorDecoder.buildJavaScriptObject())), TypeErrorDecoder); | 2574 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokeCal
lErrorOn(TypeErrorDecoder.buildJavaScriptObject())), TypeErrorDecoder); |
| 2575 }, | 2575 }, |
| 2576 get notClosurePattern() { | 2576 get notClosurePattern() { |
| 2577 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokeCal
lErrorOn(TypeErrorDecoder.buildJavaScriptObjectWithNonClosure())), TypeErrorDeco
der); | 2577 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokeCal
lErrorOn(TypeErrorDecoder.buildJavaScriptObjectWithNonClosure())), TypeErrorDeco
der); |
| 2578 }, | 2578 }, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2609 super.Error(); | 2609 super.Error(); |
| 2610 } | 2610 } |
| 2611 toString() { | 2611 toString() { |
| 2612 if (this[_method] == null) | 2612 if (this[_method] == null) |
| 2613 return `NullError: ${this[_message]}`; | 2613 return `NullError: ${this[_message]}`; |
| 2614 return `NullError: Cannot call "${this[_method]}" on null`; | 2614 return `NullError: Cannot call "${this[_method]}" on null`; |
| 2615 } | 2615 } |
| 2616 } | 2616 } |
| 2617 NullError[dart.implements] = () => [core.NoSuchMethodError]; | 2617 NullError[dart.implements] = () => [core.NoSuchMethodError]; |
| 2618 dart.setSignature(NullError, { | 2618 dart.setSignature(NullError, { |
| 2619 methods: () => ({toString: dart.functionType(core.String, [])}) | 2619 methods: () => ({toString: [core.String, []]}) |
| 2620 }); | 2620 }); |
| 2621 class JsNoSuchMethodError extends core.Error { | 2621 class JsNoSuchMethodError extends core.Error { |
| 2622 JsNoSuchMethodError(message, match) { | 2622 JsNoSuchMethodError(message, match) { |
| 2623 this[_message] = message; | 2623 this[_message] = message; |
| 2624 this[_method] = match == null ? null : dart.as(match.method, core.String); | 2624 this[_method] = match == null ? null : dart.as(match.method, core.String); |
| 2625 this[_receiver] = match == null ? null : dart.as(match.receiver, core.Stri
ng); | 2625 this[_receiver] = match == null ? null : dart.as(match.receiver, core.Stri
ng); |
| 2626 super.Error(); | 2626 super.Error(); |
| 2627 } | 2627 } |
| 2628 toString() { | 2628 toString() { |
| 2629 if (this[_method] == null) | 2629 if (this[_method] == null) |
| 2630 return `NoSuchMethodError: ${this[_message]}`; | 2630 return `NoSuchMethodError: ${this[_message]}`; |
| 2631 if (this[_receiver] == null) { | 2631 if (this[_receiver] == null) { |
| 2632 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; | 2632 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; |
| 2633 } | 2633 } |
| 2634 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; | 2634 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; |
| 2635 } | 2635 } |
| 2636 } | 2636 } |
| 2637 JsNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodError]; | 2637 JsNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodError]; |
| 2638 dart.setSignature(JsNoSuchMethodError, { | 2638 dart.setSignature(JsNoSuchMethodError, { |
| 2639 methods: () => ({toString: dart.functionType(core.String, [])}) | 2639 methods: () => ({toString: [core.String, []]}) |
| 2640 }); | 2640 }); |
| 2641 class UnknownJsTypeError extends core.Error { | 2641 class UnknownJsTypeError extends core.Error { |
| 2642 UnknownJsTypeError(message) { | 2642 UnknownJsTypeError(message) { |
| 2643 this[_message] = message; | 2643 this[_message] = message; |
| 2644 super.Error(); | 2644 super.Error(); |
| 2645 } | 2645 } |
| 2646 toString() { | 2646 toString() { |
| 2647 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; | 2647 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; |
| 2648 } | 2648 } |
| 2649 } | 2649 } |
| 2650 dart.setSignature(UnknownJsTypeError, { | 2650 dart.setSignature(UnknownJsTypeError, { |
| 2651 methods: () => ({toString: dart.functionType(core.String, [])}) | 2651 methods: () => ({toString: [core.String, []]}) |
| 2652 }); | 2652 }); |
| 2653 function unwrapException(ex) { | 2653 function unwrapException(ex) { |
| 2654 let saveStackTrace = error => { | 2654 let saveStackTrace = error => { |
| 2655 if (dart.is(error, core.Error)) { | 2655 if (dart.is(error, core.Error)) { |
| 2656 let thrownStackTrace = error.$thrownJsError; | 2656 let thrownStackTrace = error.$thrownJsError; |
| 2657 if (thrownStackTrace == null) { | 2657 if (thrownStackTrace == null) { |
| 2658 error.$thrownJsError = ex; | 2658 error.$thrownJsError = ex; |
| 2659 } | 2659 } |
| 2660 } | 2660 } |
| 2661 return error; | 2661 return error; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2741 return this[_trace]; | 2741 return this[_trace]; |
| 2742 let trace = null; | 2742 let trace = null; |
| 2743 if (typeof this[_exception] === "object") { | 2743 if (typeof this[_exception] === "object") { |
| 2744 trace = dart.as(this[_exception].stack, core.String); | 2744 trace = dart.as(this[_exception].stack, core.String); |
| 2745 } | 2745 } |
| 2746 return this[_trace] = trace == null ? '' : trace; | 2746 return this[_trace] = trace == null ? '' : trace; |
| 2747 } | 2747 } |
| 2748 } | 2748 } |
| 2749 _StackTrace[dart.implements] = () => [core.StackTrace]; | 2749 _StackTrace[dart.implements] = () => [core.StackTrace]; |
| 2750 dart.setSignature(_StackTrace, { | 2750 dart.setSignature(_StackTrace, { |
| 2751 methods: () => ({toString: dart.functionType(core.String, [])}) | 2751 methods: () => ({toString: [core.String, []]}) |
| 2752 }); | 2752 }); |
| 2753 function objectHashCode(object) { | 2753 function objectHashCode(object) { |
| 2754 if (dart.notNull(object == null) || typeof object != 'object') { | 2754 if (dart.notNull(object == null) || typeof object != 'object') { |
| 2755 return dart.hashCode(object); | 2755 return dart.hashCode(object); |
| 2756 } else { | 2756 } else { |
| 2757 return Primitives.objectHashCode(object); | 2757 return Primitives.objectHashCode(object); |
| 2758 } | 2758 } |
| 2759 } | 2759 } |
| 2760 dart.fn(objectHashCode, core.int, [dart.dynamic]); | 2760 dart.fn(objectHashCode, core.int, [dart.dynamic]); |
| 2761 function fillLiteralMap(keyValuePairs, result) { | 2761 function fillLiteralMap(keyValuePairs, result) { |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3051 Closure.functionCounter = dart.notNull(x) + 1; | 3051 Closure.functionCounter = dart.notNull(x) + 1; |
| 3052 return x; | 3052 return x; |
| 3053 })()}` + '}')(); | 3053 })()}` + '}')(); |
| 3054 } | 3054 } |
| 3055 toString() { | 3055 toString() { |
| 3056 return "Closure"; | 3056 return "Closure"; |
| 3057 } | 3057 } |
| 3058 } | 3058 } |
| 3059 Closure[dart.implements] = () => [core.Function]; | 3059 Closure[dart.implements] = () => [core.Function]; |
| 3060 dart.setSignature(Closure, { | 3060 dart.setSignature(Closure, { |
| 3061 methods: () => ({toString: dart.functionType(core.String, [])}), | 3061 methods: () => ({toString: [core.String, []]}), |
| 3062 statics: () => ({ | 3062 statics: () => ({ |
| 3063 fromTearOff: dart.functionType(dart.dynamic, [dart.dynamic, core.List, cor
e.List, core.bool, dart.dynamic, core.String]), | 3063 fromTearOff: [dart.dynamic, [dart.dynamic, core.List, core.List, core.bool
, dart.dynamic, core.String]], |
| 3064 cspForwardCall: dart.functionType(dart.dynamic, [core.int, core.bool, core
.String, dart.dynamic]), | 3064 cspForwardCall: [dart.dynamic, [core.int, core.bool, core.String, dart.dyn
amic]], |
| 3065 forwardCallTo: dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic
, core.bool]), | 3065 forwardCallTo: [dart.dynamic, [dart.dynamic, dart.dynamic, core.bool]], |
| 3066 cspForwardInterceptedCall: dart.functionType(dart.dynamic, [core.int, core
.bool, core.String, dart.dynamic]), | 3066 cspForwardInterceptedCall: [dart.dynamic, [core.int, core.bool, core.Strin
g, dart.dynamic]], |
| 3067 forwardInterceptedCallTo: dart.functionType(dart.dynamic, [dart.dynamic, d
art.dynamic]) | 3067 forwardInterceptedCallTo: [dart.dynamic, [dart.dynamic, dart.dynamic]] |
| 3068 }), | 3068 }), |
| 3069 names: ['fromTearOff', 'cspForwardCall', 'forwardCallTo', 'cspForwardInterce
ptedCall', 'forwardInterceptedCallTo'] | 3069 names: ['fromTearOff', 'cspForwardCall', 'forwardCallTo', 'cspForwardInterce
ptedCall', 'forwardInterceptedCallTo'] |
| 3070 }); | 3070 }); |
| 3071 Closure.FUNCTION_INDEX = 0; | 3071 Closure.FUNCTION_INDEX = 0; |
| 3072 Closure.NAME_INDEX = 1; | 3072 Closure.NAME_INDEX = 1; |
| 3073 Closure.CALL_NAME_INDEX = 2; | 3073 Closure.CALL_NAME_INDEX = 2; |
| 3074 Closure.REQUIRED_PARAMETER_INDEX = 3; | 3074 Closure.REQUIRED_PARAMETER_INDEX = 3; |
| 3075 Closure.OPTIONAL_PARAMETER_INDEX = 4; | 3075 Closure.OPTIONAL_PARAMETER_INDEX = 4; |
| 3076 Closure.DEFAULT_ARGUMENTS_INDEX = 5; | 3076 Closure.DEFAULT_ARGUMENTS_INDEX = 5; |
| 3077 Closure.functionCounter = 0; | 3077 Closure.functionCounter = 0; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3142 let names = _interceptors.JSArray.markFixedList(dart.as(Object.getOwnPrope
rtyNames(template), core.List)); | 3142 let names = _interceptors.JSArray.markFixedList(dart.as(Object.getOwnPrope
rtyNames(template), core.List)); |
| 3143 for (let i = 0; dart.notNull(i) < dart.notNull(names[core.$length]); i = d
art.notNull(i) + 1) { | 3143 for (let i = 0; dart.notNull(i) < dart.notNull(names[core.$length]); i = d
art.notNull(i) + 1) { |
| 3144 let name = names[core.$get](i); | 3144 let name = names[core.$get](i); |
| 3145 if (template[name] === fieldName) { | 3145 if (template[name] === fieldName) { |
| 3146 return name; | 3146 return name; |
| 3147 } | 3147 } |
| 3148 } | 3148 } |
| 3149 } | 3149 } |
| 3150 } | 3150 } |
| 3151 dart.setSignature(BoundClosure, { | 3151 dart.setSignature(BoundClosure, { |
| 3152 methods: () => ({'==': dart.functionType(core.bool, [dart.dynamic])}), | 3152 methods: () => ({'==': [core.bool, [dart.dynamic]]}), |
| 3153 statics: () => ({ | 3153 statics: () => ({ |
| 3154 selfOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3154 selfOf: [dart.dynamic, [BoundClosure]], |
| 3155 targetOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3155 targetOf: [dart.dynamic, [BoundClosure]], |
| 3156 receiverOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3156 receiverOf: [dart.dynamic, [BoundClosure]], |
| 3157 nameOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3157 nameOf: [dart.dynamic, [BoundClosure]], |
| 3158 selfFieldName: dart.functionType(core.String, []), | 3158 selfFieldName: [core.String, []], |
| 3159 receiverFieldName: dart.functionType(core.String, []), | 3159 receiverFieldName: [core.String, []], |
| 3160 computeFieldNamed: dart.functionType(core.String, [core.String]) | 3160 computeFieldNamed: [core.String, [core.String]] |
| 3161 }), | 3161 }), |
| 3162 names: ['selfOf', 'targetOf', 'receiverOf', 'nameOf', 'selfFieldName', 'rece
iverFieldName', 'computeFieldNamed'] | 3162 names: ['selfOf', 'targetOf', 'receiverOf', 'nameOf', 'selfFieldName', 'rece
iverFieldName', 'computeFieldNamed'] |
| 3163 }); | 3163 }); |
| 3164 BoundClosure.selfFieldNameCache = null; | 3164 BoundClosure.selfFieldNameCache = null; |
| 3165 BoundClosure.receiverFieldNameCache = null; | 3165 BoundClosure.receiverFieldNameCache = null; |
| 3166 function jsHasOwnProperty(jsObject, property) { | 3166 function jsHasOwnProperty(jsObject, property) { |
| 3167 return jsObject.hasOwnProperty(property); | 3167 return jsObject.hasOwnProperty(property); |
| 3168 } | 3168 } |
| 3169 dart.fn(jsHasOwnProperty, core.bool, [dart.dynamic, core.String]); | 3169 dart.fn(jsHasOwnProperty, core.bool, [dart.dynamic, core.String]); |
| 3170 function jsPropertyAccess(jsObject, property) { | 3170 function jsPropertyAccess(jsObject, property) { |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3472 this.message = message; | 3472 this.message = message; |
| 3473 super.Error(); | 3473 super.Error(); |
| 3474 } | 3474 } |
| 3475 toString() { | 3475 toString() { |
| 3476 return this.message; | 3476 return this.message; |
| 3477 } | 3477 } |
| 3478 } | 3478 } |
| 3479 TypeErrorImplementation[dart.implements] = () => [core.TypeError]; | 3479 TypeErrorImplementation[dart.implements] = () => [core.TypeError]; |
| 3480 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); | 3480 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); |
| 3481 dart.setSignature(TypeErrorImplementation, { | 3481 dart.setSignature(TypeErrorImplementation, { |
| 3482 methods: () => ({toString: dart.functionType(core.String, [])}) | 3482 methods: () => ({toString: [core.String, []]}) |
| 3483 }); | 3483 }); |
| 3484 class CastErrorImplementation extends core.Error { | 3484 class CastErrorImplementation extends core.Error { |
| 3485 CastErrorImplementation(actualType, expectedType) { | 3485 CastErrorImplementation(actualType, expectedType) { |
| 3486 this.message = `CastError: Casting value of type ${actualType} to` + ` inc
ompatible type ${expectedType}`; | 3486 this.message = `CastError: Casting value of type ${actualType} to` + ` inc
ompatible type ${expectedType}`; |
| 3487 super.Error(); | 3487 super.Error(); |
| 3488 } | 3488 } |
| 3489 toString() { | 3489 toString() { |
| 3490 return this.message; | 3490 return this.message; |
| 3491 } | 3491 } |
| 3492 } | 3492 } |
| 3493 CastErrorImplementation[dart.implements] = () => [core.CastError]; | 3493 CastErrorImplementation[dart.implements] = () => [core.CastError]; |
| 3494 dart.setSignature(CastErrorImplementation, { | 3494 dart.setSignature(CastErrorImplementation, { |
| 3495 methods: () => ({toString: dart.functionType(core.String, [])}) | 3495 methods: () => ({toString: [core.String, []]}) |
| 3496 }); | 3496 }); |
| 3497 class FallThroughErrorImplementation extends core.FallThroughError { | 3497 class FallThroughErrorImplementation extends core.FallThroughError { |
| 3498 FallThroughErrorImplementation() { | 3498 FallThroughErrorImplementation() { |
| 3499 super.FallThroughError(); | 3499 super.FallThroughError(); |
| 3500 } | 3500 } |
| 3501 toString() { | 3501 toString() { |
| 3502 return "Switch case fall-through."; | 3502 return "Switch case fall-through."; |
| 3503 } | 3503 } |
| 3504 } | 3504 } |
| 3505 dart.setSignature(FallThroughErrorImplementation, { | 3505 dart.setSignature(FallThroughErrorImplementation, { |
| 3506 methods: () => ({toString: dart.functionType(core.String, [])}) | 3506 methods: () => ({toString: [core.String, []]}) |
| 3507 }); | 3507 }); |
| 3508 function assertHelper(condition) { | 3508 function assertHelper(condition) { |
| 3509 if (!(typeof condition == 'boolean')) { | 3509 if (!(typeof condition == 'boolean')) { |
| 3510 if (dart.is(condition, core.Function)) | 3510 if (dart.is(condition, core.Function)) |
| 3511 condition = dart.dcall(condition); | 3511 condition = dart.dcall(condition); |
| 3512 if (!(typeof condition == 'boolean')) { | 3512 if (!(typeof condition == 'boolean')) { |
| 3513 throw new TypeErrorImplementation(condition, 'bool'); | 3513 throw new TypeErrorImplementation(condition, 'bool'); |
| 3514 } | 3514 } |
| 3515 } | 3515 } |
| 3516 if (!dart.equals(true, condition)) | 3516 if (!dart.equals(true, condition)) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3529 class RuntimeError extends core.Error { | 3529 class RuntimeError extends core.Error { |
| 3530 RuntimeError(message) { | 3530 RuntimeError(message) { |
| 3531 this.message = message; | 3531 this.message = message; |
| 3532 super.Error(); | 3532 super.Error(); |
| 3533 } | 3533 } |
| 3534 toString() { | 3534 toString() { |
| 3535 return `RuntimeError: ${this.message}`; | 3535 return `RuntimeError: ${this.message}`; |
| 3536 } | 3536 } |
| 3537 } | 3537 } |
| 3538 dart.setSignature(RuntimeError, { | 3538 dart.setSignature(RuntimeError, { |
| 3539 methods: () => ({toString: dart.functionType(core.String, [])}) | 3539 methods: () => ({toString: [core.String, []]}) |
| 3540 }); | 3540 }); |
| 3541 class DeferredNotLoadedError extends core.Error { | 3541 class DeferredNotLoadedError extends core.Error { |
| 3542 DeferredNotLoadedError(libraryName) { | 3542 DeferredNotLoadedError(libraryName) { |
| 3543 this.libraryName = libraryName; | 3543 this.libraryName = libraryName; |
| 3544 super.Error(); | 3544 super.Error(); |
| 3545 } | 3545 } |
| 3546 toString() { | 3546 toString() { |
| 3547 return `Deferred library ${this.libraryName} was not loaded.`; | 3547 return `Deferred library ${this.libraryName} was not loaded.`; |
| 3548 } | 3548 } |
| 3549 } | 3549 } |
| 3550 DeferredNotLoadedError[dart.implements] = () => [core.NoSuchMethodError]; | 3550 DeferredNotLoadedError[dart.implements] = () => [core.NoSuchMethodError]; |
| 3551 dart.setSignature(DeferredNotLoadedError, { | 3551 dart.setSignature(DeferredNotLoadedError, { |
| 3552 methods: () => ({toString: dart.functionType(core.String, [])}) | 3552 methods: () => ({toString: [core.String, []]}) |
| 3553 }); | 3553 }); |
| 3554 class RuntimeType extends core.Object { | 3554 class RuntimeType extends core.Object { |
| 3555 RuntimeType() { | 3555 RuntimeType() { |
| 3556 } | 3556 } |
| 3557 } | 3557 } |
| 3558 dart.setSignature(RuntimeType, {}); | 3558 dart.setSignature(RuntimeType, {}); |
| 3559 let _isTest = Symbol('_isTest'); | 3559 let _isTest = Symbol('_isTest'); |
| 3560 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); | 3560 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); |
| 3561 let _asCheck = Symbol('_asCheck'); | 3561 let _asCheck = Symbol('_asCheck'); |
| 3562 let _check = Symbol('_check'); | 3562 let _check = Symbol('_check'); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 needsComma = true; | 3692 needsComma = true; |
| 3693 } | 3693 } |
| 3694 result = dart.notNull(result) + '}'; | 3694 result = dart.notNull(result) + '}'; |
| 3695 } | 3695 } |
| 3696 result = dart.notNull(result) + `) -> ${this.returnType}`; | 3696 result = dart.notNull(result) + `) -> ${this.returnType}`; |
| 3697 return result; | 3697 return result; |
| 3698 } | 3698 } |
| 3699 } | 3699 } |
| 3700 dart.setSignature(RuntimeFunctionType, { | 3700 dart.setSignature(RuntimeFunctionType, { |
| 3701 methods: () => ({ | 3701 methods: () => ({ |
| 3702 [_isTest]: dart.functionType(core.bool, [dart.dynamic]), | 3702 [_isTest]: [core.bool, [dart.dynamic]], |
| 3703 [_asCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), | 3703 [_asCheck]: [dart.dynamic, [dart.dynamic]], |
| 3704 [_assertCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), | 3704 [_assertCheck]: [dart.dynamic, [dart.dynamic]], |
| 3705 [_check]: dart.functionType(dart.dynamic, [dart.dynamic, core.bool]), | 3705 [_check]: [dart.dynamic, [dart.dynamic, core.bool]], |
| 3706 [_extractFunctionTypeObjectFrom]: dart.functionType(dart.dynamic, [dart.dy
namic]), | 3706 [_extractFunctionTypeObjectFrom]: [dart.dynamic, [dart.dynamic]], |
| 3707 toRti: dart.functionType(dart.dynamic, []), | 3707 toRti: [dart.dynamic, []], |
| 3708 toString: dart.functionType(core.String, []) | 3708 toString: [core.String, []] |
| 3709 }), | 3709 }), |
| 3710 statics: () => ({listToRti: dart.functionType(dart.dynamic, [dart.dynamic])}
), | 3710 statics: () => ({listToRti: [dart.dynamic, [dart.dynamic]]}), |
| 3711 names: ['listToRti'] | 3711 names: ['listToRti'] |
| 3712 }); | 3712 }); |
| 3713 RuntimeFunctionType.inAssert = false; | 3713 RuntimeFunctionType.inAssert = false; |
| 3714 function buildFunctionType(returnType, parameterTypes, optionalParameterTypes)
{ | 3714 function buildFunctionType(returnType, parameterTypes, optionalParameterTypes)
{ |
| 3715 return new RuntimeFunctionType(dart.as(returnType, RuntimeType), dart.as(par
ameterTypes, core.List$(RuntimeType)), dart.as(optionalParameterTypes, core.List
$(RuntimeType)), null); | 3715 return new RuntimeFunctionType(dart.as(returnType, RuntimeType), dart.as(par
ameterTypes, core.List$(RuntimeType)), dart.as(optionalParameterTypes, core.List
$(RuntimeType)), null); |
| 3716 } | 3716 } |
| 3717 dart.fn(buildFunctionType, RuntimeFunctionType, [dart.dynamic, dart.dynamic, d
art.dynamic]); | 3717 dart.fn(buildFunctionType, RuntimeFunctionType, [dart.dynamic, dart.dynamic, d
art.dynamic]); |
| 3718 function buildNamedFunctionType(returnType, parameterTypes, namedParameters) { | 3718 function buildNamedFunctionType(returnType, parameterTypes, namedParameters) { |
| 3719 return new RuntimeFunctionType(dart.as(returnType, RuntimeType), dart.as(par
ameterTypes, core.List$(RuntimeType)), null, namedParameters); | 3719 return new RuntimeFunctionType(dart.as(returnType, RuntimeType), dart.as(par
ameterTypes, core.List$(RuntimeType)), null, namedParameters); |
| 3720 } | 3720 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3733 } | 3733 } |
| 3734 toString() { | 3734 toString() { |
| 3735 return 'dynamic'; | 3735 return 'dynamic'; |
| 3736 } | 3736 } |
| 3737 toRti() { | 3737 toRti() { |
| 3738 return null; | 3738 return null; |
| 3739 } | 3739 } |
| 3740 } | 3740 } |
| 3741 dart.setSignature(DynamicRuntimeType, { | 3741 dart.setSignature(DynamicRuntimeType, { |
| 3742 methods: () => ({ | 3742 methods: () => ({ |
| 3743 toString: dart.functionType(core.String, []), | 3743 toString: [core.String, []], |
| 3744 toRti: dart.functionType(dart.dynamic, []) | 3744 toRti: [dart.dynamic, []] |
| 3745 }) | 3745 }) |
| 3746 }); | 3746 }); |
| 3747 function getDynamicRuntimeType() { | 3747 function getDynamicRuntimeType() { |
| 3748 return dart.const(new DynamicRuntimeType()); | 3748 return dart.const(new DynamicRuntimeType()); |
| 3749 } | 3749 } |
| 3750 dart.fn(getDynamicRuntimeType, RuntimeType, []); | 3750 dart.fn(getDynamicRuntimeType, RuntimeType, []); |
| 3751 class VoidRuntimeType extends RuntimeType { | 3751 class VoidRuntimeType extends RuntimeType { |
| 3752 VoidRuntimeType() { | 3752 VoidRuntimeType() { |
| 3753 super.RuntimeType(); | 3753 super.RuntimeType(); |
| 3754 } | 3754 } |
| 3755 toString() { | 3755 toString() { |
| 3756 return 'void'; | 3756 return 'void'; |
| 3757 } | 3757 } |
| 3758 toRti() { | 3758 toRti() { |
| 3759 return dart.throw_('internal error'); | 3759 return dart.throw_('internal error'); |
| 3760 } | 3760 } |
| 3761 } | 3761 } |
| 3762 dart.setSignature(VoidRuntimeType, { | 3762 dart.setSignature(VoidRuntimeType, { |
| 3763 methods: () => ({ | 3763 methods: () => ({ |
| 3764 toString: dart.functionType(core.String, []), | 3764 toString: [core.String, []], |
| 3765 toRti: dart.functionType(dart.dynamic, []) | 3765 toRti: [dart.dynamic, []] |
| 3766 }) | 3766 }) |
| 3767 }); | 3767 }); |
| 3768 function getVoidRuntimeType() { | 3768 function getVoidRuntimeType() { |
| 3769 return dart.const(new VoidRuntimeType()); | 3769 return dart.const(new VoidRuntimeType()); |
| 3770 } | 3770 } |
| 3771 dart.fn(getVoidRuntimeType, RuntimeType, []); | 3771 dart.fn(getVoidRuntimeType, RuntimeType, []); |
| 3772 function functionTypeTestMetaHelper() { | 3772 function functionTypeTestMetaHelper() { |
| 3773 let dyn = x; | 3773 let dyn = x; |
| 3774 let dyn2 = x; | 3774 let dyn2 = x; |
| 3775 let fixedListOrNull = dart.as(x, core.List); | 3775 let fixedListOrNull = dart.as(x, core.List); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 if (rti == null) | 3818 if (rti == null) |
| 3819 throw `no type for '${this.name}'`; | 3819 throw `no type for '${this.name}'`; |
| 3820 return rti; | 3820 return rti; |
| 3821 } | 3821 } |
| 3822 toString() { | 3822 toString() { |
| 3823 return this.name; | 3823 return this.name; |
| 3824 } | 3824 } |
| 3825 } | 3825 } |
| 3826 dart.setSignature(RuntimeTypePlain, { | 3826 dart.setSignature(RuntimeTypePlain, { |
| 3827 methods: () => ({ | 3827 methods: () => ({ |
| 3828 toRti: dart.functionType(dart.dynamic, []), | 3828 toRti: [dart.dynamic, []], |
| 3829 toString: dart.functionType(core.String, []) | 3829 toString: [core.String, []] |
| 3830 }) | 3830 }) |
| 3831 }); | 3831 }); |
| 3832 class RuntimeTypeGeneric extends RuntimeType { | 3832 class RuntimeTypeGeneric extends RuntimeType { |
| 3833 RuntimeTypeGeneric(name, arguments$, rti) { | 3833 RuntimeTypeGeneric(name, arguments$, rti) { |
| 3834 this.name = name; | 3834 this.name = name; |
| 3835 this.arguments = arguments$; | 3835 this.arguments = arguments$; |
| 3836 this.rti = rti; | 3836 this.rti = rti; |
| 3837 super.RuntimeType(); | 3837 super.RuntimeType(); |
| 3838 } | 3838 } |
| 3839 toRti() { | 3839 toRti() { |
| 3840 if (this.rti != null) | 3840 if (this.rti != null) |
| 3841 return this.rti; | 3841 return this.rti; |
| 3842 let allClasses = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names
.ALL_CLASSES); | 3842 let allClasses = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names
.ALL_CLASSES); |
| 3843 let result = [allClasses[this.name]]; | 3843 let result = [allClasses[this.name]]; |
| 3844 if (dart.dindex(result, 0) == null) { | 3844 if (dart.dindex(result, 0) == null) { |
| 3845 throw `no type for '${this.name}<...>'`; | 3845 throw `no type for '${this.name}<...>'`; |
| 3846 } | 3846 } |
| 3847 for (let argument of this.arguments) { | 3847 for (let argument of this.arguments) { |
| 3848 result.push(argument.toRti()); | 3848 result.push(argument.toRti()); |
| 3849 } | 3849 } |
| 3850 return this.rti = result; | 3850 return this.rti = result; |
| 3851 } | 3851 } |
| 3852 toString() { | 3852 toString() { |
| 3853 return `${this.name}<${this.arguments[core.$join](", ")}>`; | 3853 return `${this.name}<${this.arguments[core.$join](", ")}>`; |
| 3854 } | 3854 } |
| 3855 } | 3855 } |
| 3856 dart.setSignature(RuntimeTypeGeneric, { | 3856 dart.setSignature(RuntimeTypeGeneric, { |
| 3857 methods: () => ({ | 3857 methods: () => ({ |
| 3858 toRti: dart.functionType(dart.dynamic, []), | 3858 toRti: [dart.dynamic, []], |
| 3859 toString: dart.functionType(core.String, []) | 3859 toString: [core.String, []] |
| 3860 }) | 3860 }) |
| 3861 }); | 3861 }); |
| 3862 let _typeData = Symbol('_typeData'); | 3862 let _typeData = Symbol('_typeData'); |
| 3863 let _cachedToString = Symbol('_cachedToString'); | 3863 let _cachedToString = Symbol('_cachedToString'); |
| 3864 let _hasReturnType = Symbol('_hasReturnType'); | 3864 let _hasReturnType = Symbol('_hasReturnType'); |
| 3865 let _returnType = Symbol('_returnType'); | 3865 let _returnType = Symbol('_returnType'); |
| 3866 let _isVoid = Symbol('_isVoid'); | 3866 let _isVoid = Symbol('_isVoid'); |
| 3867 let _hasArguments = Symbol('_hasArguments'); | 3867 let _hasArguments = Symbol('_hasArguments'); |
| 3868 let _hasOptionalArguments = Symbol('_hasOptionalArguments'); | 3868 let _hasOptionalArguments = Symbol('_hasOptionalArguments'); |
| 3869 let _optionalArguments = Symbol('_optionalArguments'); | 3869 let _optionalArguments = Symbol('_optionalArguments'); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3954 } else if (this[_hasReturnType]) { | 3954 } else if (this[_hasReturnType]) { |
| 3955 s = dart.notNull(s) + dart.notNull(this[_convert](this[_returnType])); | 3955 s = dart.notNull(s) + dart.notNull(this[_convert](this[_returnType])); |
| 3956 } else { | 3956 } else { |
| 3957 s = dart.notNull(s) + 'dynamic'; | 3957 s = dart.notNull(s) + 'dynamic'; |
| 3958 } | 3958 } |
| 3959 return this[_cachedToString] = `${s}`; | 3959 return this[_cachedToString] = `${s}`; |
| 3960 } | 3960 } |
| 3961 } | 3961 } |
| 3962 dart.setSignature(FunctionTypeInfoDecoderRing, { | 3962 dart.setSignature(FunctionTypeInfoDecoderRing, { |
| 3963 methods: () => ({ | 3963 methods: () => ({ |
| 3964 toRuntimeType: dart.functionType(RuntimeType, []), | 3964 toRuntimeType: [RuntimeType, []], |
| 3965 [_convert]: dart.functionType(core.String, [dart.dynamic]), | 3965 [_convert]: [core.String, [dart.dynamic]], |
| 3966 toString: dart.functionType(core.String, []) | 3966 toString: [core.String, []] |
| 3967 }) | 3967 }) |
| 3968 }); | 3968 }); |
| 3969 class UnimplementedNoSuchMethodError extends core.Error { | 3969 class UnimplementedNoSuchMethodError extends core.Error { |
| 3970 UnimplementedNoSuchMethodError(message) { | 3970 UnimplementedNoSuchMethodError(message) { |
| 3971 this[_message] = message; | 3971 this[_message] = message; |
| 3972 super.Error(); | 3972 super.Error(); |
| 3973 } | 3973 } |
| 3974 toString() { | 3974 toString() { |
| 3975 return `Unsupported operation: ${this[_message]}`; | 3975 return `Unsupported operation: ${this[_message]}`; |
| 3976 } | 3976 } |
| 3977 } | 3977 } |
| 3978 UnimplementedNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodErro
r]; | 3978 UnimplementedNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodErro
r]; |
| 3979 dart.setSignature(UnimplementedNoSuchMethodError, { | 3979 dart.setSignature(UnimplementedNoSuchMethodError, { |
| 3980 methods: () => ({toString: dart.functionType(core.String, [])}) | 3980 methods: () => ({toString: [core.String, []]}) |
| 3981 }); | 3981 }); |
| 3982 function random64() { | 3982 function random64() { |
| 3983 let int32a = Math.random() * 0x100000000 >>> 0; | 3983 let int32a = Math.random() * 0x100000000 >>> 0; |
| 3984 let int32b = Math.random() * 0x100000000 >>> 0; | 3984 let int32b = Math.random() * 0x100000000 >>> 0; |
| 3985 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; | 3985 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; |
| 3986 } | 3986 } |
| 3987 dart.fn(random64, core.int, []); | 3987 dart.fn(random64, core.int, []); |
| 3988 function jsonEncodeNative(string) { | 3988 function jsonEncodeNative(string) { |
| 3989 return JSON.stringify(string); | 3989 return JSON.stringify(string); |
| 3990 } | 3990 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4108 MainError(message) { | 4108 MainError(message) { |
| 4109 this[_message] = message; | 4109 this[_message] = message; |
| 4110 super.Error(); | 4110 super.Error(); |
| 4111 } | 4111 } |
| 4112 toString() { | 4112 toString() { |
| 4113 return `NoSuchMethodError: ${this[_message]}`; | 4113 return `NoSuchMethodError: ${this[_message]}`; |
| 4114 } | 4114 } |
| 4115 } | 4115 } |
| 4116 MainError[dart.implements] = () => [core.NoSuchMethodError]; | 4116 MainError[dart.implements] = () => [core.NoSuchMethodError]; |
| 4117 dart.setSignature(MainError, { | 4117 dart.setSignature(MainError, { |
| 4118 methods: () => ({toString: dart.functionType(core.String, [])}) | 4118 methods: () => ({toString: [core.String, []]}) |
| 4119 }); | 4119 }); |
| 4120 function missingMain() { | 4120 function missingMain() { |
| 4121 throw new MainError("No top-level function named 'main'."); | 4121 throw new MainError("No top-level function named 'main'."); |
| 4122 } | 4122 } |
| 4123 dart.fn(missingMain, dart.void, []); | 4123 dart.fn(missingMain, dart.void, []); |
| 4124 function badMain() { | 4124 function badMain() { |
| 4125 throw new MainError("'main' is not a function."); | 4125 throw new MainError("'main' is not a function."); |
| 4126 } | 4126 } |
| 4127 dart.fn(badMain, dart.void, []); | 4127 dart.fn(badMain, dart.void, []); |
| 4128 function mainHasTooManyParameters() { | 4128 function mainHasTooManyParameters() { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4357 exports.jsonEncodeNative = jsonEncodeNative; | 4357 exports.jsonEncodeNative = jsonEncodeNative; |
| 4358 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4358 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 4359 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4359 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
| 4360 exports.DeferredLoadCallback = DeferredLoadCallback; | 4360 exports.DeferredLoadCallback = DeferredLoadCallback; |
| 4361 exports.loadDeferredLibrary = loadDeferredLibrary; | 4361 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 4362 exports.MainError = MainError; | 4362 exports.MainError = MainError; |
| 4363 exports.missingMain = missingMain; | 4363 exports.missingMain = missingMain; |
| 4364 exports.badMain = badMain; | 4364 exports.badMain = badMain; |
| 4365 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4365 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 4366 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); | 4366 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); |
| OLD | NEW |