| 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); |
| 11 (function(exports, core, collection, _internal, _foreign_helper, _js_embedded_na
mes, _interceptors, _js_names, async, _isolate_helper) { | 11 (function(exports, core, collection, _internal, _foreign_helper, _js_embedded_na
mes, _interceptors, _js_names, async, _isolate_helper) { |
| 12 'use strict'; | 12 'use strict'; |
| 13 class NoSideEffects extends core.Object { | 13 class NoSideEffects extends core.Object { |
| 14 NoSideEffects() { | 14 NoSideEffects() { |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 dart.setSignature(NoSideEffects, {}); | |
| 18 class NoThrows extends core.Object { | 17 class NoThrows extends core.Object { |
| 19 NoThrows() { | 18 NoThrows() { |
| 20 } | 19 } |
| 21 } | 20 } |
| 22 dart.setSignature(NoThrows, {}); | |
| 23 class NoInline extends core.Object { | 21 class NoInline extends core.Object { |
| 24 NoInline() { | 22 NoInline() { |
| 25 } | 23 } |
| 26 } | 24 } |
| 27 dart.setSignature(NoInline, {}); | |
| 28 class IrRepresentation extends core.Object { | 25 class IrRepresentation extends core.Object { |
| 29 IrRepresentation(value) { | 26 IrRepresentation(value) { |
| 30 this.value = value; | 27 this.value = value; |
| 31 } | 28 } |
| 32 } | 29 } |
| 33 dart.setSignature(IrRepresentation, {}); | |
| 34 class Native extends core.Object { | 30 class Native extends core.Object { |
| 35 Native(name) { | 31 Native(name) { |
| 36 this.name = name; | 32 this.name = name; |
| 37 } | 33 } |
| 38 } | 34 } |
| 39 dart.setSignature(Native, {}); | |
| 40 let _throwUnmodifiable = Symbol('_throwUnmodifiable'); | 35 let _throwUnmodifiable = Symbol('_throwUnmodifiable'); |
| 41 let ConstantMap$ = dart.generic(function(K, V) { | 36 let ConstantMap$ = dart.generic(function(K, V) { |
| 42 class ConstantMap extends core.Object { | 37 class ConstantMap extends core.Object { |
| 43 _() { | 38 _() { |
| 44 } | 39 } |
| 45 get isEmpty() { | 40 get isEmpty() { |
| 46 return this.length == 0; | 41 return this.length == 0; |
| 47 } | 42 } |
| 48 get isNotEmpty() { | 43 get isNotEmpty() { |
| 49 return !dart.notNull(this.isEmpty); | 44 return !dart.notNull(this.isEmpty); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 72 } | 67 } |
| 73 addAll(other) { | 68 addAll(other) { |
| 74 dart.as(other, core.Map$(K, V)); | 69 dart.as(other, core.Map$(K, V)); |
| 75 return this[_throwUnmodifiable](); | 70 return this[_throwUnmodifiable](); |
| 76 } | 71 } |
| 77 } | 72 } |
| 78 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; | 73 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; |
| 79 dart.defineNamedConstructor(ConstantMap, '_'); | 74 dart.defineNamedConstructor(ConstantMap, '_'); |
| 80 dart.setSignature(ConstantMap, { | 75 dart.setSignature(ConstantMap, { |
| 81 methods: () => ({ | 76 methods: () => ({ |
| 82 toString: dart.functionType(core.String, []), | |
| 83 [_throwUnmodifiable]: dart.functionType(dart.dynamic, []), | 77 [_throwUnmodifiable]: dart.functionType(dart.dynamic, []), |
| 84 set: dart.functionType(dart.void, [K, V]), | 78 set: dart.functionType(dart.void, [K, V]), |
| 85 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), | 79 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 86 remove: dart.functionType(V, [core.Object]), | 80 remove: dart.functionType(V, [core.Object]), |
| 87 clear: dart.functionType(dart.void, []), | 81 clear: dart.functionType(dart.void, []), |
| 88 addAll: dart.functionType(dart.void, [core.Map$(K, V)]) | 82 addAll: dart.functionType(dart.void, [core.Map$(K, V)]) |
| 89 }) | 83 }) |
| 90 }); | 84 }); |
| 91 return ConstantMap; | 85 return ConstantMap; |
| 92 }); | 86 }); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return false; | 155 return false; |
| 162 if (dart.equals('__proto__', key)) | 156 if (dart.equals('__proto__', key)) |
| 163 return true; | 157 return true; |
| 164 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); | 158 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); |
| 165 } | 159 } |
| 166 [_fetch](key) { | 160 [_fetch](key) { |
| 167 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); | 161 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); |
| 168 } | 162 } |
| 169 } | 163 } |
| 170 dart.defineNamedConstructor(ConstantProtoMap, '_'); | 164 dart.defineNamedConstructor(ConstantProtoMap, '_'); |
| 171 dart.setSignature(ConstantProtoMap, { | |
| 172 methods: () => ({ | |
| 173 containsKey: dart.functionType(core.bool, [core.Object]), | |
| 174 [_fetch]: dart.functionType(dart.dynamic, [dart.dynamic]) | |
| 175 }) | |
| 176 }); | |
| 177 return ConstantProtoMap; | 165 return ConstantProtoMap; |
| 178 }); | 166 }); |
| 179 let ConstantProtoMap = ConstantProtoMap$(); | 167 let ConstantProtoMap = ConstantProtoMap$(); |
| 180 let _map = Symbol('_map'); | 168 let _map = Symbol('_map'); |
| 181 let _ConstantMapKeyIterable$ = dart.generic(function(K) { | 169 let _ConstantMapKeyIterable$ = dart.generic(function(K) { |
| 182 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { | 170 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { |
| 183 _ConstantMapKeyIterable(map) { | 171 _ConstantMapKeyIterable(map) { |
| 184 this[_map] = map; | 172 this[_map] = map; |
| 185 super.IterableBase(); | 173 super.IterableBase(); |
| 186 } | 174 } |
| 187 get [core.$iterator]() { | 175 get [core.$iterator]() { |
| 188 return this[_map][_keys][core.$iterator]; | 176 return this[_map][_keys][core.$iterator]; |
| 189 } | 177 } |
| 190 get [core.$length]() { | 178 get [core.$length]() { |
| 191 return this[_map][_keys][core.$length]; | 179 return this[_map][_keys][core.$length]; |
| 192 } | 180 } |
| 193 } | 181 } |
| 194 dart.setSignature(_ConstantMapKeyIterable, {}); | |
| 195 return _ConstantMapKeyIterable; | 182 return _ConstantMapKeyIterable; |
| 196 }); | 183 }); |
| 197 let _ConstantMapKeyIterable = _ConstantMapKeyIterable$(); | 184 let _ConstantMapKeyIterable = _ConstantMapKeyIterable$(); |
| 198 let _jsData = Symbol('_jsData'); | 185 let _jsData = Symbol('_jsData'); |
| 199 let _getMap = Symbol('_getMap'); | 186 let _getMap = Symbol('_getMap'); |
| 200 let GeneralConstantMap$ = dart.generic(function(K, V) { | 187 let GeneralConstantMap$ = dart.generic(function(K, V) { |
| 201 class GeneralConstantMap extends ConstantMap$(K, V) { | 188 class GeneralConstantMap extends ConstantMap$(K, V) { |
| 202 GeneralConstantMap(jsData) { | 189 GeneralConstantMap(jsData) { |
| 203 this[_jsData] = jsData; | 190 this[_jsData] = jsData; |
| 204 super._(); | 191 super._(); |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 get isMultiLine() { | 617 get isMultiLine() { |
| 631 return this[_isMultiLine]; | 618 return this[_isMultiLine]; |
| 632 } | 619 } |
| 633 get isCaseSensitive() { | 620 get isCaseSensitive() { |
| 634 return this[_isCaseSensitive]; | 621 return this[_isCaseSensitive]; |
| 635 } | 622 } |
| 636 } | 623 } |
| 637 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; | 624 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; |
| 638 dart.setSignature(JSSyntaxRegExp, { | 625 dart.setSignature(JSSyntaxRegExp, { |
| 639 methods: () => ({ | 626 methods: () => ({ |
| 640 toString: dart.functionType(core.String, []), | |
| 641 firstMatch: dart.functionType(core.Match, [core.String]), | 627 firstMatch: dart.functionType(core.Match, [core.String]), |
| 642 hasMatch: dart.functionType(core.bool, [core.String]), | 628 hasMatch: dart.functionType(core.bool, [core.String]), |
| 643 stringMatch: dart.functionType(core.String, [core.String]), | 629 stringMatch: dart.functionType(core.String, [core.String]), |
| 644 allMatches: dart.functionType(core.Iterable$(core.Match), [core.String], [
core.int]), | 630 allMatches: dart.functionType(core.Iterable$(core.Match), [core.String], [
core.int]), |
| 645 [_execGlobal]: dart.functionType(core.Match, [core.String, core.int]), | 631 [_execGlobal]: dart.functionType(core.Match, [core.String, core.int]), |
| 646 [_execAnchored]: dart.functionType(core.Match, [core.String, core.int]), | 632 [_execAnchored]: dart.functionType(core.Match, [core.String, core.int]), |
| 647 matchAsPrefix: dart.functionType(core.Match, [core.String], [core.int]) | 633 matchAsPrefix: dart.functionType(core.Match, [core.String], [core.int]) |
| 648 }), | 634 }), |
| 649 statics: () => ({makeNative: dart.functionType(dart.dynamic, [core.String, c
ore.bool, core.bool, core.bool])}), | 635 statics: () => ({makeNative: dart.functionType(dart.dynamic, [core.String, c
ore.bool, core.bool, core.bool])}), |
| 650 names: ['makeNative'] | 636 names: ['makeNative'] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 _AllMatchesIterable(re, string, start) { | 684 _AllMatchesIterable(re, string, start) { |
| 699 this[_re] = re; | 685 this[_re] = re; |
| 700 this[_string] = string; | 686 this[_string] = string; |
| 701 this[_start] = start; | 687 this[_start] = start; |
| 702 super.IterableBase(); | 688 super.IterableBase(); |
| 703 } | 689 } |
| 704 get [core.$iterator]() { | 690 get [core.$iterator]() { |
| 705 return new _AllMatchesIterator(this[_re], this[_string], this[_start]); | 691 return new _AllMatchesIterator(this[_re], this[_string], this[_start]); |
| 706 } | 692 } |
| 707 } | 693 } |
| 708 dart.setSignature(_AllMatchesIterable, {}); | |
| 709 let _regExp = Symbol('_regExp'); | 694 let _regExp = Symbol('_regExp'); |
| 710 let _nextIndex = Symbol('_nextIndex'); | 695 let _nextIndex = Symbol('_nextIndex'); |
| 711 let _current = Symbol('_current'); | 696 let _current = Symbol('_current'); |
| 712 class _AllMatchesIterator extends core.Object { | 697 class _AllMatchesIterator extends core.Object { |
| 713 _AllMatchesIterator(regExp, string, nextIndex) { | 698 _AllMatchesIterator(regExp, string, nextIndex) { |
| 714 this[_regExp] = regExp; | 699 this[_regExp] = regExp; |
| 715 this[_string] = string; | 700 this[_string] = string; |
| 716 this[_nextIndex] = nextIndex; | 701 this[_nextIndex] = nextIndex; |
| 717 this[_current] = null; | 702 this[_current] = null; |
| 718 } | 703 } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 return this[_unmangledName] = unmangledName; | 961 return this[_unmangledName] = unmangledName; |
| 977 } | 962 } |
| 978 get hashCode() { | 963 get hashCode() { |
| 979 return dart.hashCode(this[_typeName]); | 964 return dart.hashCode(this[_typeName]); |
| 980 } | 965 } |
| 981 ['=='](other) { | 966 ['=='](other) { |
| 982 return dart.is(other, TypeImpl) && dart.equals(this[_typeName], dart.dload
(other, _typeName)); | 967 return dart.is(other, TypeImpl) && dart.equals(this[_typeName], dart.dload
(other, _typeName)); |
| 983 } | 968 } |
| 984 } | 969 } |
| 985 TypeImpl[dart.implements] = () => [core.Type]; | 970 TypeImpl[dart.implements] = () => [core.Type]; |
| 986 dart.setSignature(TypeImpl, { | |
| 987 methods: () => ({ | |
| 988 toString: dart.functionType(core.String, []), | |
| 989 '==': dart.functionType(core.bool, [dart.dynamic]) | |
| 990 }) | |
| 991 }); | |
| 992 class TypeVariable extends core.Object { | 971 class TypeVariable extends core.Object { |
| 993 TypeVariable(owner, name, bound) { | 972 TypeVariable(owner, name, bound) { |
| 994 this.owner = owner; | 973 this.owner = owner; |
| 995 this.name = name; | 974 this.name = name; |
| 996 this.bound = bound; | 975 this.bound = bound; |
| 997 } | 976 } |
| 998 } | 977 } |
| 999 dart.setSignature(TypeVariable, {}); | |
| 1000 function getMangledTypeName(type) { | 978 function getMangledTypeName(type) { |
| 1001 return type[_typeName]; | 979 return type[_typeName]; |
| 1002 } | 980 } |
| 1003 dart.fn(getMangledTypeName, dart.dynamic, [TypeImpl]); | 981 dart.fn(getMangledTypeName, dart.dynamic, [TypeImpl]); |
| 1004 function setRuntimeTypeInfo(target, typeInfo) { | 982 function setRuntimeTypeInfo(target, typeInfo) { |
| 1005 dart.assert(dart.notNull(typeInfo == null) || dart.notNull(isJsArray(typeInf
o))); | 983 dart.assert(dart.notNull(typeInfo == null) || dart.notNull(isJsArray(typeInf
o))); |
| 1006 if (target != null) | 984 if (target != null) |
| 1007 target.$builtinTypeInfo = typeInfo; | 985 target.$builtinTypeInfo = typeInfo; |
| 1008 return target; | 986 return target; |
| 1009 } | 987 } |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 } | 1412 } |
| 1435 dart.fn(unmangleGlobalNameIfPreservedAnyways, core.String, [core.String]); | 1413 dart.fn(unmangleGlobalNameIfPreservedAnyways, core.String, [core.String]); |
| 1436 function unmangleAllIdentifiersIfPreservedAnyways(str) { | 1414 function unmangleAllIdentifiersIfPreservedAnyways(str) { |
| 1437 return str; | 1415 return str; |
| 1438 } | 1416 } |
| 1439 dart.fn(unmangleAllIdentifiersIfPreservedAnyways, core.String, [core.String]); | 1417 dart.fn(unmangleAllIdentifiersIfPreservedAnyways, core.String, [core.String]); |
| 1440 class _Patch extends core.Object { | 1418 class _Patch extends core.Object { |
| 1441 _Patch() { | 1419 _Patch() { |
| 1442 } | 1420 } |
| 1443 } | 1421 } |
| 1444 dart.setSignature(_Patch, {}); | |
| 1445 let patch = dart.const(new _Patch()); | 1422 let patch = dart.const(new _Patch()); |
| 1446 class InternalMap extends core.Object {} | 1423 class InternalMap extends core.Object {} |
| 1447 dart.setSignature(InternalMap, {}); | |
| 1448 function requiresPreamble() { | 1424 function requiresPreamble() { |
| 1449 } | 1425 } |
| 1450 dart.fn(requiresPreamble); | 1426 dart.fn(requiresPreamble); |
| 1451 function isJsIndexable(object, record) { | 1427 function isJsIndexable(object, record) { |
| 1452 if (record != null) { | 1428 if (record != null) { |
| 1453 let result = _interceptors.dispatchRecordIndexability(record); | 1429 let result = _interceptors.dispatchRecordIndexability(record); |
| 1454 if (result != null) | 1430 if (result != null) |
| 1455 return dart.as(result, core.bool); | 1431 return dart.as(result, core.bool); |
| 1456 } | 1432 } |
| 1457 return dart.is(object, exports.JavaScriptIndexingBehavior); | 1433 return dart.is(object, exports.JavaScriptIndexingBehavior); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1700 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
few).`); | 1676 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
few).`); |
| 1701 } else if (dart.notNull(providedArgumentCount) > dart.notNull(fullParamete
rCount)) { | 1677 } 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).`); | 1678 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
many).`); |
| 1703 } | 1679 } |
| 1704 for (let i = providedArgumentCount; dart.notNull(i) < dart.notNull(fullPar
ameterCount); i = dart.notNull(i) + 1) { | 1680 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))); | 1681 arguments$[core.$add](getMetadata(this.info.defaultValue(i))); |
| 1706 } | 1682 } |
| 1707 return this.jsFunction.apply(receiver, arguments$); | 1683 return this.jsFunction.apply(receiver, arguments$); |
| 1708 } | 1684 } |
| 1709 } | 1685 } |
| 1710 dart.setSignature(CachedCatchAllInvocation, { | |
| 1711 methods: () => ({invokeOn: dart.functionType(dart.dynamic, [core.Object, cor
e.List])}) | |
| 1712 }); | |
| 1713 class CachedNoSuchMethodInvocation extends core.Object { | 1686 class CachedNoSuchMethodInvocation extends core.Object { |
| 1714 CachedNoSuchMethodInvocation(interceptor) { | 1687 CachedNoSuchMethodInvocation(interceptor) { |
| 1715 this.interceptor = interceptor; | 1688 this.interceptor = interceptor; |
| 1716 } | 1689 } |
| 1717 get isNoSuchMethod() { | 1690 get isNoSuchMethod() { |
| 1718 return true; | 1691 return true; |
| 1719 } | 1692 } |
| 1720 get isGetterStub() { | 1693 get isGetterStub() { |
| 1721 return false; | 1694 return false; |
| 1722 } | 1695 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 this[_method] = match == null ? null : dart.as(match.method, core.String); | 2581 this[_method] = match == null ? null : dart.as(match.method, core.String); |
| 2609 super.Error(); | 2582 super.Error(); |
| 2610 } | 2583 } |
| 2611 toString() { | 2584 toString() { |
| 2612 if (this[_method] == null) | 2585 if (this[_method] == null) |
| 2613 return `NullError: ${this[_message]}`; | 2586 return `NullError: ${this[_message]}`; |
| 2614 return `NullError: Cannot call "${this[_method]}" on null`; | 2587 return `NullError: Cannot call "${this[_method]}" on null`; |
| 2615 } | 2588 } |
| 2616 } | 2589 } |
| 2617 NullError[dart.implements] = () => [core.NoSuchMethodError]; | 2590 NullError[dart.implements] = () => [core.NoSuchMethodError]; |
| 2618 dart.setSignature(NullError, { | |
| 2619 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 2620 }); | |
| 2621 class JsNoSuchMethodError extends core.Error { | 2591 class JsNoSuchMethodError extends core.Error { |
| 2622 JsNoSuchMethodError(message, match) { | 2592 JsNoSuchMethodError(message, match) { |
| 2623 this[_message] = message; | 2593 this[_message] = message; |
| 2624 this[_method] = match == null ? null : dart.as(match.method, core.String); | 2594 this[_method] = match == null ? null : dart.as(match.method, core.String); |
| 2625 this[_receiver] = match == null ? null : dart.as(match.receiver, core.Stri
ng); | 2595 this[_receiver] = match == null ? null : dart.as(match.receiver, core.Stri
ng); |
| 2626 super.Error(); | 2596 super.Error(); |
| 2627 } | 2597 } |
| 2628 toString() { | 2598 toString() { |
| 2629 if (this[_method] == null) | 2599 if (this[_method] == null) |
| 2630 return `NoSuchMethodError: ${this[_message]}`; | 2600 return `NoSuchMethodError: ${this[_message]}`; |
| 2631 if (this[_receiver] == null) { | 2601 if (this[_receiver] == null) { |
| 2632 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; | 2602 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; |
| 2633 } | 2603 } |
| 2634 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; | 2604 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; |
| 2635 } | 2605 } |
| 2636 } | 2606 } |
| 2637 JsNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodError]; | 2607 JsNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodError]; |
| 2638 dart.setSignature(JsNoSuchMethodError, { | |
| 2639 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 2640 }); | |
| 2641 class UnknownJsTypeError extends core.Error { | 2608 class UnknownJsTypeError extends core.Error { |
| 2642 UnknownJsTypeError(message) { | 2609 UnknownJsTypeError(message) { |
| 2643 this[_message] = message; | 2610 this[_message] = message; |
| 2644 super.Error(); | 2611 super.Error(); |
| 2645 } | 2612 } |
| 2646 toString() { | 2613 toString() { |
| 2647 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; | 2614 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; |
| 2648 } | 2615 } |
| 2649 } | 2616 } |
| 2650 dart.setSignature(UnknownJsTypeError, { | |
| 2651 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 2652 }); | |
| 2653 function unwrapException(ex) { | 2617 function unwrapException(ex) { |
| 2654 let saveStackTrace = error => { | 2618 let saveStackTrace = error => { |
| 2655 if (dart.is(error, core.Error)) { | 2619 if (dart.is(error, core.Error)) { |
| 2656 let thrownStackTrace = error.$thrownJsError; | 2620 let thrownStackTrace = error.$thrownJsError; |
| 2657 if (thrownStackTrace == null) { | 2621 if (thrownStackTrace == null) { |
| 2658 error.$thrownJsError = ex; | 2622 error.$thrownJsError = ex; |
| 2659 } | 2623 } |
| 2660 } | 2624 } |
| 2661 return error; | 2625 return error; |
| 2662 }; | 2626 }; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2740 if (this[_trace] != null) | 2704 if (this[_trace] != null) |
| 2741 return this[_trace]; | 2705 return this[_trace]; |
| 2742 let trace = null; | 2706 let trace = null; |
| 2743 if (typeof this[_exception] === "object") { | 2707 if (typeof this[_exception] === "object") { |
| 2744 trace = dart.as(this[_exception].stack, core.String); | 2708 trace = dart.as(this[_exception].stack, core.String); |
| 2745 } | 2709 } |
| 2746 return this[_trace] = trace == null ? '' : trace; | 2710 return this[_trace] = trace == null ? '' : trace; |
| 2747 } | 2711 } |
| 2748 } | 2712 } |
| 2749 _StackTrace[dart.implements] = () => [core.StackTrace]; | 2713 _StackTrace[dart.implements] = () => [core.StackTrace]; |
| 2750 dart.setSignature(_StackTrace, { | |
| 2751 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 2752 }); | |
| 2753 function objectHashCode(object) { | 2714 function objectHashCode(object) { |
| 2754 if (dart.notNull(object == null) || typeof object != 'object') { | 2715 if (dart.notNull(object == null) || typeof object != 'object') { |
| 2755 return dart.hashCode(object); | 2716 return dart.hashCode(object); |
| 2756 } else { | 2717 } else { |
| 2757 return Primitives.objectHashCode(object); | 2718 return Primitives.objectHashCode(object); |
| 2758 } | 2719 } |
| 2759 } | 2720 } |
| 2760 dart.fn(objectHashCode, core.int, [dart.dynamic]); | 2721 dart.fn(objectHashCode, core.int, [dart.dynamic]); |
| 2761 function fillLiteralMap(keyValuePairs, result) { | 2722 function fillLiteralMap(keyValuePairs, result) { |
| 2762 let index = 0; | 2723 let index = 0; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3051 Closure.functionCounter = dart.notNull(x) + 1; | 3012 Closure.functionCounter = dart.notNull(x) + 1; |
| 3052 return x; | 3013 return x; |
| 3053 })()}` + '}')(); | 3014 })()}` + '}')(); |
| 3054 } | 3015 } |
| 3055 toString() { | 3016 toString() { |
| 3056 return "Closure"; | 3017 return "Closure"; |
| 3057 } | 3018 } |
| 3058 } | 3019 } |
| 3059 Closure[dart.implements] = () => [core.Function]; | 3020 Closure[dart.implements] = () => [core.Function]; |
| 3060 dart.setSignature(Closure, { | 3021 dart.setSignature(Closure, { |
| 3061 methods: () => ({toString: dart.functionType(core.String, [])}), | |
| 3062 statics: () => ({ | 3022 statics: () => ({ |
| 3063 fromTearOff: dart.functionType(dart.dynamic, [dart.dynamic, core.List, cor
e.List, core.bool, dart.dynamic, core.String]), | 3023 fromTearOff: dart.functionType(dart.dynamic, [dart.dynamic, core.List, cor
e.List, core.bool, dart.dynamic, core.String]), |
| 3064 cspForwardCall: dart.functionType(dart.dynamic, [core.int, core.bool, core
.String, dart.dynamic]), | 3024 cspForwardCall: dart.functionType(dart.dynamic, [core.int, core.bool, core
.String, dart.dynamic]), |
| 3065 forwardCallTo: dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic
, core.bool]), | 3025 forwardCallTo: dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic
, core.bool]), |
| 3066 cspForwardInterceptedCall: dart.functionType(dart.dynamic, [core.int, core
.bool, core.String, dart.dynamic]), | 3026 cspForwardInterceptedCall: dart.functionType(dart.dynamic, [core.int, core
.bool, core.String, dart.dynamic]), |
| 3067 forwardInterceptedCallTo: dart.functionType(dart.dynamic, [dart.dynamic, d
art.dynamic]) | 3027 forwardInterceptedCallTo: dart.functionType(dart.dynamic, [dart.dynamic, d
art.dynamic]) |
| 3068 }), | 3028 }), |
| 3069 names: ['fromTearOff', 'cspForwardCall', 'forwardCallTo', 'cspForwardInterce
ptedCall', 'forwardInterceptedCallTo'] | 3029 names: ['fromTearOff', 'cspForwardCall', 'forwardCallTo', 'cspForwardInterce
ptedCall', 'forwardInterceptedCallTo'] |
| 3070 }); | 3030 }); |
| 3071 Closure.FUNCTION_INDEX = 0; | 3031 Closure.FUNCTION_INDEX = 0; |
| 3072 Closure.NAME_INDEX = 1; | 3032 Closure.NAME_INDEX = 1; |
| 3073 Closure.CALL_NAME_INDEX = 2; | 3033 Closure.CALL_NAME_INDEX = 2; |
| 3074 Closure.REQUIRED_PARAMETER_INDEX = 3; | 3034 Closure.REQUIRED_PARAMETER_INDEX = 3; |
| 3075 Closure.OPTIONAL_PARAMETER_INDEX = 4; | 3035 Closure.OPTIONAL_PARAMETER_INDEX = 4; |
| 3076 Closure.DEFAULT_ARGUMENTS_INDEX = 5; | 3036 Closure.DEFAULT_ARGUMENTS_INDEX = 5; |
| 3077 Closure.functionCounter = 0; | 3037 Closure.functionCounter = 0; |
| 3078 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA
rguments, name) { | 3038 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA
rguments, name) { |
| 3079 return Closure.fromTearOff(receiver, _interceptors.JSArray.markFixedList(dar
t.as(functions, core.List)), _interceptors.JSArray.markFixedList(dart.as(reflect
ionInfo, core.List)), !!isStatic, jsArguments, name); | 3039 return Closure.fromTearOff(receiver, _interceptors.JSArray.markFixedList(dar
t.as(functions, core.List)), _interceptors.JSArray.markFixedList(dart.as(reflect
ionInfo, core.List)), !!isStatic, jsArguments, name); |
| 3080 } | 3040 } |
| 3081 dart.fn(closureFromTearOff); | 3041 dart.fn(closureFromTearOff); |
| 3082 class TearOffClosure extends Closure { | 3042 class TearOffClosure extends Closure { |
| 3083 TearOffClosure() { | 3043 TearOffClosure() { |
| 3084 super.Closure(); | 3044 super.Closure(); |
| 3085 } | 3045 } |
| 3086 } | 3046 } |
| 3087 dart.setSignature(TearOffClosure, {}); | |
| 3088 let _self = Symbol('_self'); | 3047 let _self = Symbol('_self'); |
| 3089 let _target = Symbol('_target'); | 3048 let _target = Symbol('_target'); |
| 3090 let _name = Symbol('_name'); | 3049 let _name = Symbol('_name'); |
| 3091 class BoundClosure extends TearOffClosure { | 3050 class BoundClosure extends TearOffClosure { |
| 3092 BoundClosure(self, target, receiver, name) { | 3051 BoundClosure(self, target, receiver, name) { |
| 3093 this[_self] = self; | 3052 this[_self] = self; |
| 3094 this[_target] = target; | 3053 this[_target] = target; |
| 3095 this[_receiver] = receiver; | 3054 this[_receiver] = receiver; |
| 3096 this[_name] = name; | 3055 this[_name] = name; |
| 3097 } | 3056 } |
| (...skipping 44 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)); | 3101 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) { | 3102 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); | 3103 let name = names[core.$get](i); |
| 3145 if (template[name] === fieldName) { | 3104 if (template[name] === fieldName) { |
| 3146 return name; | 3105 return name; |
| 3147 } | 3106 } |
| 3148 } | 3107 } |
| 3149 } | 3108 } |
| 3150 } | 3109 } |
| 3151 dart.setSignature(BoundClosure, { | 3110 dart.setSignature(BoundClosure, { |
| 3152 methods: () => ({'==': dart.functionType(core.bool, [dart.dynamic])}), | |
| 3153 statics: () => ({ | 3111 statics: () => ({ |
| 3154 selfOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3112 selfOf: dart.functionType(dart.dynamic, [BoundClosure]), |
| 3155 targetOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3113 targetOf: dart.functionType(dart.dynamic, [BoundClosure]), |
| 3156 receiverOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3114 receiverOf: dart.functionType(dart.dynamic, [BoundClosure]), |
| 3157 nameOf: dart.functionType(dart.dynamic, [BoundClosure]), | 3115 nameOf: dart.functionType(dart.dynamic, [BoundClosure]), |
| 3158 selfFieldName: dart.functionType(core.String, []), | 3116 selfFieldName: dart.functionType(core.String, []), |
| 3159 receiverFieldName: dart.functionType(core.String, []), | 3117 receiverFieldName: dart.functionType(core.String, []), |
| 3160 computeFieldNamed: dart.functionType(core.String, [core.String]) | 3118 computeFieldNamed: dart.functionType(core.String, [core.String]) |
| 3161 }), | 3119 }), |
| 3162 names: ['selfOf', 'targetOf', 'receiverOf', 'nameOf', 'selfFieldName', 'rece
iverFieldName', 'computeFieldNamed'] | 3120 names: ['selfOf', 'targetOf', 'receiverOf', 'nameOf', 'selfFieldName', 'rece
iverFieldName', 'computeFieldNamed'] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3173 dart.fn(jsPropertyAccess, dart.dynamic, [dart.dynamic, core.String]); | 3131 dart.fn(jsPropertyAccess, dart.dynamic, [dart.dynamic, core.String]); |
| 3174 function getFallThroughError() { | 3132 function getFallThroughError() { |
| 3175 return new FallThroughErrorImplementation(); | 3133 return new FallThroughErrorImplementation(); |
| 3176 } | 3134 } |
| 3177 dart.fn(getFallThroughError); | 3135 dart.fn(getFallThroughError); |
| 3178 class Creates extends core.Object { | 3136 class Creates extends core.Object { |
| 3179 Creates(types) { | 3137 Creates(types) { |
| 3180 this.types = types; | 3138 this.types = types; |
| 3181 } | 3139 } |
| 3182 } | 3140 } |
| 3183 dart.setSignature(Creates, {}); | |
| 3184 class Returns extends core.Object { | 3141 class Returns extends core.Object { |
| 3185 Returns(types) { | 3142 Returns(types) { |
| 3186 this.types = types; | 3143 this.types = types; |
| 3187 } | 3144 } |
| 3188 } | 3145 } |
| 3189 dart.setSignature(Returns, {}); | |
| 3190 class JSName extends core.Object { | 3146 class JSName extends core.Object { |
| 3191 JSName(name) { | 3147 JSName(name) { |
| 3192 this.name = name; | 3148 this.name = name; |
| 3193 } | 3149 } |
| 3194 } | 3150 } |
| 3195 dart.setSignature(JSName, {}); | |
| 3196 function boolConversionCheck(value) { | 3151 function boolConversionCheck(value) { |
| 3197 if (typeof value == 'boolean') | 3152 if (typeof value == 'boolean') |
| 3198 return value; | 3153 return value; |
| 3199 boolTypeCheck(value); | 3154 boolTypeCheck(value); |
| 3200 dart.assert(value != null); | 3155 dart.assert(value != null); |
| 3201 return false; | 3156 return false; |
| 3202 } | 3157 } |
| 3203 dart.fn(boolConversionCheck); | 3158 dart.fn(boolConversionCheck); |
| 3204 function stringTypeCheck(value) { | 3159 function stringTypeCheck(value) { |
| 3205 if (value == null) | 3160 if (value == null) |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3452 dart.fn(checkMalformedType); | 3407 dart.fn(checkMalformedType); |
| 3453 function checkDeferredIsLoaded(loadId, uri) { | 3408 function checkDeferredIsLoaded(loadId, uri) { |
| 3454 if (!dart.notNull(exports._loadedLibraries[core.$contains](loadId))) { | 3409 if (!dart.notNull(exports._loadedLibraries[core.$contains](loadId))) { |
| 3455 throw new DeferredNotLoadedError(uri); | 3410 throw new DeferredNotLoadedError(uri); |
| 3456 } | 3411 } |
| 3457 } | 3412 } |
| 3458 dart.fn(checkDeferredIsLoaded, dart.void, [core.String, core.String]); | 3413 dart.fn(checkDeferredIsLoaded, dart.void, [core.String, core.String]); |
| 3459 dart.defineLazyClass(exports, { | 3414 dart.defineLazyClass(exports, { |
| 3460 get JavaScriptIndexingBehavior() { | 3415 get JavaScriptIndexingBehavior() { |
| 3461 class JavaScriptIndexingBehavior extends _interceptors.JSMutableIndexable
{} | 3416 class JavaScriptIndexingBehavior extends _interceptors.JSMutableIndexable
{} |
| 3462 dart.setSignature(JavaScriptIndexingBehavior, {}); | |
| 3463 return JavaScriptIndexingBehavior; | 3417 return JavaScriptIndexingBehavior; |
| 3464 } | 3418 } |
| 3465 }); | 3419 }); |
| 3466 class TypeErrorImplementation extends core.Error { | 3420 class TypeErrorImplementation extends core.Error { |
| 3467 TypeErrorImplementation(value, type) { | 3421 TypeErrorImplementation(value, type) { |
| 3468 this.message = `type '${Primitives.objectTypeName(value)}' is not a subtyp
e ` + `of type '${type}'`; | 3422 this.message = `type '${Primitives.objectTypeName(value)}' is not a subtyp
e ` + `of type '${type}'`; |
| 3469 super.Error(); | 3423 super.Error(); |
| 3470 } | 3424 } |
| 3471 fromMessage(message) { | 3425 fromMessage(message) { |
| 3472 this.message = message; | 3426 this.message = message; |
| 3473 super.Error(); | 3427 super.Error(); |
| 3474 } | 3428 } |
| 3475 toString() { | 3429 toString() { |
| 3476 return this.message; | 3430 return this.message; |
| 3477 } | 3431 } |
| 3478 } | 3432 } |
| 3479 TypeErrorImplementation[dart.implements] = () => [core.TypeError]; | 3433 TypeErrorImplementation[dart.implements] = () => [core.TypeError]; |
| 3480 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); | 3434 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); |
| 3481 dart.setSignature(TypeErrorImplementation, { | |
| 3482 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3483 }); | |
| 3484 class CastErrorImplementation extends core.Error { | 3435 class CastErrorImplementation extends core.Error { |
| 3485 CastErrorImplementation(actualType, expectedType) { | 3436 CastErrorImplementation(actualType, expectedType) { |
| 3486 this.message = `CastError: Casting value of type ${actualType} to` + ` inc
ompatible type ${expectedType}`; | 3437 this.message = `CastError: Casting value of type ${actualType} to` + ` inc
ompatible type ${expectedType}`; |
| 3487 super.Error(); | 3438 super.Error(); |
| 3488 } | 3439 } |
| 3489 toString() { | 3440 toString() { |
| 3490 return this.message; | 3441 return this.message; |
| 3491 } | 3442 } |
| 3492 } | 3443 } |
| 3493 CastErrorImplementation[dart.implements] = () => [core.CastError]; | 3444 CastErrorImplementation[dart.implements] = () => [core.CastError]; |
| 3494 dart.setSignature(CastErrorImplementation, { | |
| 3495 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3496 }); | |
| 3497 class FallThroughErrorImplementation extends core.FallThroughError { | 3445 class FallThroughErrorImplementation extends core.FallThroughError { |
| 3498 FallThroughErrorImplementation() { | 3446 FallThroughErrorImplementation() { |
| 3499 super.FallThroughError(); | 3447 super.FallThroughError(); |
| 3500 } | 3448 } |
| 3501 toString() { | 3449 toString() { |
| 3502 return "Switch case fall-through."; | 3450 return "Switch case fall-through."; |
| 3503 } | 3451 } |
| 3504 } | 3452 } |
| 3505 dart.setSignature(FallThroughErrorImplementation, { | |
| 3506 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3507 }); | |
| 3508 function assertHelper(condition) { | 3453 function assertHelper(condition) { |
| 3509 if (!(typeof condition == 'boolean')) { | 3454 if (!(typeof condition == 'boolean')) { |
| 3510 if (dart.is(condition, core.Function)) | 3455 if (dart.is(condition, core.Function)) |
| 3511 condition = dart.dcall(condition); | 3456 condition = dart.dcall(condition); |
| 3512 if (!(typeof condition == 'boolean')) { | 3457 if (!(typeof condition == 'boolean')) { |
| 3513 throw new TypeErrorImplementation(condition, 'bool'); | 3458 throw new TypeErrorImplementation(condition, 'bool'); |
| 3514 } | 3459 } |
| 3515 } | 3460 } |
| 3516 if (!dart.equals(true, condition)) | 3461 if (!dart.equals(true, condition)) |
| 3517 throw new core.AssertionError(); | 3462 throw new core.AssertionError(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3528 dart.fn(throwCyclicInit, dart.void, [core.String]); | 3473 dart.fn(throwCyclicInit, dart.void, [core.String]); |
| 3529 class RuntimeError extends core.Error { | 3474 class RuntimeError extends core.Error { |
| 3530 RuntimeError(message) { | 3475 RuntimeError(message) { |
| 3531 this.message = message; | 3476 this.message = message; |
| 3532 super.Error(); | 3477 super.Error(); |
| 3533 } | 3478 } |
| 3534 toString() { | 3479 toString() { |
| 3535 return `RuntimeError: ${this.message}`; | 3480 return `RuntimeError: ${this.message}`; |
| 3536 } | 3481 } |
| 3537 } | 3482 } |
| 3538 dart.setSignature(RuntimeError, { | |
| 3539 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3540 }); | |
| 3541 class DeferredNotLoadedError extends core.Error { | 3483 class DeferredNotLoadedError extends core.Error { |
| 3542 DeferredNotLoadedError(libraryName) { | 3484 DeferredNotLoadedError(libraryName) { |
| 3543 this.libraryName = libraryName; | 3485 this.libraryName = libraryName; |
| 3544 super.Error(); | 3486 super.Error(); |
| 3545 } | 3487 } |
| 3546 toString() { | 3488 toString() { |
| 3547 return `Deferred library ${this.libraryName} was not loaded.`; | 3489 return `Deferred library ${this.libraryName} was not loaded.`; |
| 3548 } | 3490 } |
| 3549 } | 3491 } |
| 3550 DeferredNotLoadedError[dart.implements] = () => [core.NoSuchMethodError]; | 3492 DeferredNotLoadedError[dart.implements] = () => [core.NoSuchMethodError]; |
| 3551 dart.setSignature(DeferredNotLoadedError, { | |
| 3552 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3553 }); | |
| 3554 class RuntimeType extends core.Object { | 3493 class RuntimeType extends core.Object { |
| 3555 RuntimeType() { | 3494 RuntimeType() { |
| 3556 } | 3495 } |
| 3557 } | 3496 } |
| 3558 dart.setSignature(RuntimeType, {}); | |
| 3559 let _isTest = Symbol('_isTest'); | 3497 let _isTest = Symbol('_isTest'); |
| 3560 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); | 3498 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); |
| 3561 let _asCheck = Symbol('_asCheck'); | 3499 let _asCheck = Symbol('_asCheck'); |
| 3562 let _check = Symbol('_check'); | 3500 let _check = Symbol('_check'); |
| 3563 let _assertCheck = Symbol('_assertCheck'); | 3501 let _assertCheck = Symbol('_assertCheck'); |
| 3564 class RuntimeFunctionType extends RuntimeType { | 3502 class RuntimeFunctionType extends RuntimeType { |
| 3565 RuntimeFunctionType(returnType, parameterTypes, optionalParameterTypes, name
dParameters) { | 3503 RuntimeFunctionType(returnType, parameterTypes, optionalParameterTypes, name
dParameters) { |
| 3566 this.returnType = returnType; | 3504 this.returnType = returnType; |
| 3567 this.parameterTypes = parameterTypes; | 3505 this.parameterTypes = parameterTypes; |
| 3568 this.optionalParameterTypes = optionalParameterTypes; | 3506 this.optionalParameterTypes = optionalParameterTypes; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3697 return result; | 3635 return result; |
| 3698 } | 3636 } |
| 3699 } | 3637 } |
| 3700 dart.setSignature(RuntimeFunctionType, { | 3638 dart.setSignature(RuntimeFunctionType, { |
| 3701 methods: () => ({ | 3639 methods: () => ({ |
| 3702 [_isTest]: dart.functionType(core.bool, [dart.dynamic]), | 3640 [_isTest]: dart.functionType(core.bool, [dart.dynamic]), |
| 3703 [_asCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), | 3641 [_asCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), |
| 3704 [_assertCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), | 3642 [_assertCheck]: dart.functionType(dart.dynamic, [dart.dynamic]), |
| 3705 [_check]: dart.functionType(dart.dynamic, [dart.dynamic, core.bool]), | 3643 [_check]: dart.functionType(dart.dynamic, [dart.dynamic, core.bool]), |
| 3706 [_extractFunctionTypeObjectFrom]: dart.functionType(dart.dynamic, [dart.dy
namic]), | 3644 [_extractFunctionTypeObjectFrom]: dart.functionType(dart.dynamic, [dart.dy
namic]), |
| 3707 toRti: dart.functionType(dart.dynamic, []), | 3645 toRti: dart.functionType(dart.dynamic, []) |
| 3708 toString: dart.functionType(core.String, []) | |
| 3709 }), | 3646 }), |
| 3710 statics: () => ({listToRti: dart.functionType(dart.dynamic, [dart.dynamic])}
), | 3647 statics: () => ({listToRti: dart.functionType(dart.dynamic, [dart.dynamic])}
), |
| 3711 names: ['listToRti'] | 3648 names: ['listToRti'] |
| 3712 }); | 3649 }); |
| 3713 RuntimeFunctionType.inAssert = false; | 3650 RuntimeFunctionType.inAssert = false; |
| 3714 function buildFunctionType(returnType, parameterTypes, optionalParameterTypes)
{ | 3651 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); | 3652 return new RuntimeFunctionType(dart.as(returnType, RuntimeType), dart.as(par
ameterTypes, core.List$(RuntimeType)), dart.as(optionalParameterTypes, core.List
$(RuntimeType)), null); |
| 3716 } | 3653 } |
| 3717 dart.fn(buildFunctionType, RuntimeFunctionType, [dart.dynamic, dart.dynamic, d
art.dynamic]); | 3654 dart.fn(buildFunctionType, RuntimeFunctionType, [dart.dynamic, dart.dynamic, d
art.dynamic]); |
| 3718 function buildNamedFunctionType(returnType, parameterTypes, namedParameters) { | 3655 function buildNamedFunctionType(returnType, parameterTypes, namedParameters) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3732 super.RuntimeType(); | 3669 super.RuntimeType(); |
| 3733 } | 3670 } |
| 3734 toString() { | 3671 toString() { |
| 3735 return 'dynamic'; | 3672 return 'dynamic'; |
| 3736 } | 3673 } |
| 3737 toRti() { | 3674 toRti() { |
| 3738 return null; | 3675 return null; |
| 3739 } | 3676 } |
| 3740 } | 3677 } |
| 3741 dart.setSignature(DynamicRuntimeType, { | 3678 dart.setSignature(DynamicRuntimeType, { |
| 3742 methods: () => ({ | 3679 methods: () => ({toRti: dart.functionType(dart.dynamic, [])}) |
| 3743 toString: dart.functionType(core.String, []), | |
| 3744 toRti: dart.functionType(dart.dynamic, []) | |
| 3745 }) | |
| 3746 }); | 3680 }); |
| 3747 function getDynamicRuntimeType() { | 3681 function getDynamicRuntimeType() { |
| 3748 return dart.const(new DynamicRuntimeType()); | 3682 return dart.const(new DynamicRuntimeType()); |
| 3749 } | 3683 } |
| 3750 dart.fn(getDynamicRuntimeType, RuntimeType, []); | 3684 dart.fn(getDynamicRuntimeType, RuntimeType, []); |
| 3751 class VoidRuntimeType extends RuntimeType { | 3685 class VoidRuntimeType extends RuntimeType { |
| 3752 VoidRuntimeType() { | 3686 VoidRuntimeType() { |
| 3753 super.RuntimeType(); | 3687 super.RuntimeType(); |
| 3754 } | 3688 } |
| 3755 toString() { | 3689 toString() { |
| 3756 return 'void'; | 3690 return 'void'; |
| 3757 } | 3691 } |
| 3758 toRti() { | 3692 toRti() { |
| 3759 return dart.throw_('internal error'); | 3693 return dart.throw_('internal error'); |
| 3760 } | 3694 } |
| 3761 } | 3695 } |
| 3762 dart.setSignature(VoidRuntimeType, { | 3696 dart.setSignature(VoidRuntimeType, { |
| 3763 methods: () => ({ | 3697 methods: () => ({toRti: dart.functionType(dart.dynamic, [])}) |
| 3764 toString: dart.functionType(core.String, []), | |
| 3765 toRti: dart.functionType(dart.dynamic, []) | |
| 3766 }) | |
| 3767 }); | 3698 }); |
| 3768 function getVoidRuntimeType() { | 3699 function getVoidRuntimeType() { |
| 3769 return dart.const(new VoidRuntimeType()); | 3700 return dart.const(new VoidRuntimeType()); |
| 3770 } | 3701 } |
| 3771 dart.fn(getVoidRuntimeType, RuntimeType, []); | 3702 dart.fn(getVoidRuntimeType, RuntimeType, []); |
| 3772 function functionTypeTestMetaHelper() { | 3703 function functionTypeTestMetaHelper() { |
| 3773 let dyn = x; | 3704 let dyn = x; |
| 3774 let dyn2 = x; | 3705 let dyn2 = x; |
| 3775 let fixedListOrNull = dart.as(x, core.List); | 3706 let fixedListOrNull = dart.as(x, core.List); |
| 3776 let fixedListOrNull2 = dart.as(x, core.List); | 3707 let fixedListOrNull2 = dart.as(x, core.List); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3817 let rti = allClasses[this.name]; | 3748 let rti = allClasses[this.name]; |
| 3818 if (rti == null) | 3749 if (rti == null) |
| 3819 throw `no type for '${this.name}'`; | 3750 throw `no type for '${this.name}'`; |
| 3820 return rti; | 3751 return rti; |
| 3821 } | 3752 } |
| 3822 toString() { | 3753 toString() { |
| 3823 return this.name; | 3754 return this.name; |
| 3824 } | 3755 } |
| 3825 } | 3756 } |
| 3826 dart.setSignature(RuntimeTypePlain, { | 3757 dart.setSignature(RuntimeTypePlain, { |
| 3827 methods: () => ({ | 3758 methods: () => ({toRti: dart.functionType(dart.dynamic, [])}) |
| 3828 toRti: dart.functionType(dart.dynamic, []), | |
| 3829 toString: dart.functionType(core.String, []) | |
| 3830 }) | |
| 3831 }); | 3759 }); |
| 3832 class RuntimeTypeGeneric extends RuntimeType { | 3760 class RuntimeTypeGeneric extends RuntimeType { |
| 3833 RuntimeTypeGeneric(name, arguments$, rti) { | 3761 RuntimeTypeGeneric(name, arguments$, rti) { |
| 3834 this.name = name; | 3762 this.name = name; |
| 3835 this.arguments = arguments$; | 3763 this.arguments = arguments$; |
| 3836 this.rti = rti; | 3764 this.rti = rti; |
| 3837 super.RuntimeType(); | 3765 super.RuntimeType(); |
| 3838 } | 3766 } |
| 3839 toRti() { | 3767 toRti() { |
| 3840 if (this.rti != null) | 3768 if (this.rti != null) |
| 3841 return this.rti; | 3769 return this.rti; |
| 3842 let allClasses = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names
.ALL_CLASSES); | 3770 let allClasses = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names
.ALL_CLASSES); |
| 3843 let result = [allClasses[this.name]]; | 3771 let result = [allClasses[this.name]]; |
| 3844 if (dart.dindex(result, 0) == null) { | 3772 if (dart.dindex(result, 0) == null) { |
| 3845 throw `no type for '${this.name}<...>'`; | 3773 throw `no type for '${this.name}<...>'`; |
| 3846 } | 3774 } |
| 3847 for (let argument of this.arguments) { | 3775 for (let argument of this.arguments) { |
| 3848 result.push(argument.toRti()); | 3776 result.push(argument.toRti()); |
| 3849 } | 3777 } |
| 3850 return this.rti = result; | 3778 return this.rti = result; |
| 3851 } | 3779 } |
| 3852 toString() { | 3780 toString() { |
| 3853 return `${this.name}<${this.arguments[core.$join](", ")}>`; | 3781 return `${this.name}<${this.arguments[core.$join](", ")}>`; |
| 3854 } | 3782 } |
| 3855 } | 3783 } |
| 3856 dart.setSignature(RuntimeTypeGeneric, { | 3784 dart.setSignature(RuntimeTypeGeneric, { |
| 3857 methods: () => ({ | 3785 methods: () => ({toRti: dart.functionType(dart.dynamic, [])}) |
| 3858 toRti: dart.functionType(dart.dynamic, []), | |
| 3859 toString: dart.functionType(core.String, []) | |
| 3860 }) | |
| 3861 }); | 3786 }); |
| 3862 let _typeData = Symbol('_typeData'); | 3787 let _typeData = Symbol('_typeData'); |
| 3863 let _cachedToString = Symbol('_cachedToString'); | 3788 let _cachedToString = Symbol('_cachedToString'); |
| 3864 let _hasReturnType = Symbol('_hasReturnType'); | 3789 let _hasReturnType = Symbol('_hasReturnType'); |
| 3865 let _returnType = Symbol('_returnType'); | 3790 let _returnType = Symbol('_returnType'); |
| 3866 let _isVoid = Symbol('_isVoid'); | 3791 let _isVoid = Symbol('_isVoid'); |
| 3867 let _hasArguments = Symbol('_hasArguments'); | 3792 let _hasArguments = Symbol('_hasArguments'); |
| 3868 let _hasOptionalArguments = Symbol('_hasOptionalArguments'); | 3793 let _hasOptionalArguments = Symbol('_hasOptionalArguments'); |
| 3869 let _optionalArguments = Symbol('_optionalArguments'); | 3794 let _optionalArguments = Symbol('_optionalArguments'); |
| 3870 let _hasNamedArguments = Symbol('_hasNamedArguments'); | 3795 let _hasNamedArguments = Symbol('_hasNamedArguments'); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3955 s = dart.notNull(s) + dart.notNull(this[_convert](this[_returnType])); | 3880 s = dart.notNull(s) + dart.notNull(this[_convert](this[_returnType])); |
| 3956 } else { | 3881 } else { |
| 3957 s = dart.notNull(s) + 'dynamic'; | 3882 s = dart.notNull(s) + 'dynamic'; |
| 3958 } | 3883 } |
| 3959 return this[_cachedToString] = `${s}`; | 3884 return this[_cachedToString] = `${s}`; |
| 3960 } | 3885 } |
| 3961 } | 3886 } |
| 3962 dart.setSignature(FunctionTypeInfoDecoderRing, { | 3887 dart.setSignature(FunctionTypeInfoDecoderRing, { |
| 3963 methods: () => ({ | 3888 methods: () => ({ |
| 3964 toRuntimeType: dart.functionType(RuntimeType, []), | 3889 toRuntimeType: dart.functionType(RuntimeType, []), |
| 3965 [_convert]: dart.functionType(core.String, [dart.dynamic]), | 3890 [_convert]: dart.functionType(core.String, [dart.dynamic]) |
| 3966 toString: dart.functionType(core.String, []) | |
| 3967 }) | 3891 }) |
| 3968 }); | 3892 }); |
| 3969 class UnimplementedNoSuchMethodError extends core.Error { | 3893 class UnimplementedNoSuchMethodError extends core.Error { |
| 3970 UnimplementedNoSuchMethodError(message) { | 3894 UnimplementedNoSuchMethodError(message) { |
| 3971 this[_message] = message; | 3895 this[_message] = message; |
| 3972 super.Error(); | 3896 super.Error(); |
| 3973 } | 3897 } |
| 3974 toString() { | 3898 toString() { |
| 3975 return `Unsupported operation: ${this[_message]}`; | 3899 return `Unsupported operation: ${this[_message]}`; |
| 3976 } | 3900 } |
| 3977 } | 3901 } |
| 3978 UnimplementedNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodErro
r]; | 3902 UnimplementedNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodErro
r]; |
| 3979 dart.setSignature(UnimplementedNoSuchMethodError, { | |
| 3980 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 3981 }); | |
| 3982 function random64() { | 3903 function random64() { |
| 3983 let int32a = Math.random() * 0x100000000 >>> 0; | 3904 let int32a = Math.random() * 0x100000000 >>> 0; |
| 3984 let int32b = Math.random() * 0x100000000 >>> 0; | 3905 let int32b = Math.random() * 0x100000000 >>> 0; |
| 3985 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; | 3906 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; |
| 3986 } | 3907 } |
| 3987 dart.fn(random64, core.int, []); | 3908 dart.fn(random64, core.int, []); |
| 3988 function jsonEncodeNative(string) { | 3909 function jsonEncodeNative(string) { |
| 3989 return JSON.stringify(string); | 3910 return JSON.stringify(string); |
| 3990 } | 3911 } |
| 3991 dart.fn(jsonEncodeNative, core.String, [core.String]); | 3912 dart.fn(jsonEncodeNative, core.String, [core.String]); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4107 class MainError extends core.Error { | 4028 class MainError extends core.Error { |
| 4108 MainError(message) { | 4029 MainError(message) { |
| 4109 this[_message] = message; | 4030 this[_message] = message; |
| 4110 super.Error(); | 4031 super.Error(); |
| 4111 } | 4032 } |
| 4112 toString() { | 4033 toString() { |
| 4113 return `NoSuchMethodError: ${this[_message]}`; | 4034 return `NoSuchMethodError: ${this[_message]}`; |
| 4114 } | 4035 } |
| 4115 } | 4036 } |
| 4116 MainError[dart.implements] = () => [core.NoSuchMethodError]; | 4037 MainError[dart.implements] = () => [core.NoSuchMethodError]; |
| 4117 dart.setSignature(MainError, { | |
| 4118 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 4119 }); | |
| 4120 function missingMain() { | 4038 function missingMain() { |
| 4121 throw new MainError("No top-level function named 'main'."); | 4039 throw new MainError("No top-level function named 'main'."); |
| 4122 } | 4040 } |
| 4123 dart.fn(missingMain, dart.void, []); | 4041 dart.fn(missingMain, dart.void, []); |
| 4124 function badMain() { | 4042 function badMain() { |
| 4125 throw new MainError("'main' is not a function."); | 4043 throw new MainError("'main' is not a function."); |
| 4126 } | 4044 } |
| 4127 dart.fn(badMain, dart.void, []); | 4045 dart.fn(badMain, dart.void, []); |
| 4128 function mainHasTooManyParameters() { | 4046 function mainHasTooManyParameters() { |
| 4129 throw new MainError("'main' expects too many parameters."); | 4047 throw new MainError("'main' expects too many parameters."); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4357 exports.jsonEncodeNative = jsonEncodeNative; | 4275 exports.jsonEncodeNative = jsonEncodeNative; |
| 4358 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4276 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 4359 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4277 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
| 4360 exports.DeferredLoadCallback = DeferredLoadCallback; | 4278 exports.DeferredLoadCallback = DeferredLoadCallback; |
| 4361 exports.loadDeferredLibrary = loadDeferredLibrary; | 4279 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 4362 exports.MainError = MainError; | 4280 exports.MainError = MainError; |
| 4363 exports.missingMain = missingMain; | 4281 exports.missingMain = missingMain; |
| 4364 exports.badMain = badMain; | 4282 exports.badMain = badMain; |
| 4365 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4283 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 4366 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); | 4284 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); |
| OLD | NEW |