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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 let keys = this[_keys]; | 135 let keys = this[_keys]; |
136 for (let i = 0; dart.notNull(i) < dart.notNull(dart.as(dart.dload(keys,
'length'), core.num)); i = dart.notNull(i) + 1) { | 136 for (let i = 0; dart.notNull(i) < dart.notNull(dart.as(dart.dload(keys,
'length'), core.num)); i = dart.notNull(i) + 1) { |
137 let key = dart.dindex(keys, i); | 137 let key = dart.dindex(keys, i); |
138 f(dart.as(key, K), dart.as(this[_fetch](key), V)); | 138 f(dart.as(key, K), dart.as(this[_fetch](key), V)); |
139 } | 139 } |
140 } | 140 } |
141 get keys() { | 141 get keys() { |
142 return new (_ConstantMapKeyIterable$(K))(this); | 142 return new (_ConstantMapKeyIterable$(K))(this); |
143 } | 143 } |
144 get values() { | 144 get values() { |
145 return _internal.MappedIterable$(K, V).new(this[_keys], dart.fn((key =>
dart.as(this[_fetch](key), V)).bind(this), V, [core.Object])); | 145 return _internal.MappedIterable$(K, V).new(this[_keys], dart.fn(key => d
art.as(this[_fetch](key), V), V, [core.Object])); |
146 } | 146 } |
147 } | 147 } |
148 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; | 148 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; |
149 dart.defineNamedConstructor(ConstantStringMap, '_'); | 149 dart.defineNamedConstructor(ConstantStringMap, '_'); |
150 dart.setSignature(ConstantStringMap, { | 150 dart.setSignature(ConstantStringMap, { |
151 constructors: () => ({_: [ConstantStringMap$(K, V), [core.int, core.Object
, core.List$(K)]]}), | 151 constructors: () => ({_: [ConstantStringMap$(K, V), [core.int, core.Object
, core.List$(K)]]}), |
152 methods: () => ({ | 152 methods: () => ({ |
153 containsValue: [core.bool, [core.Object]], | 153 containsValue: [core.bool, [core.Object]], |
154 containsKey: [core.bool, [core.Object]], | 154 containsKey: [core.bool, [core.Object]], |
155 get: [V, [core.Object]], | 155 get: [V, [core.Object]], |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 let positions = dart.map(); | 1818 let positions = dart.map(); |
1819 for (let i = 0; dart.notNull(i) < dart.notNull(this.optionalParameterCou
nt); i = dart.notNull(i) + 1) { | 1819 for (let i = 0; dart.notNull(i) < dart.notNull(this.optionalParameterCou
nt); i = dart.notNull(i) + 1) { |
1820 let index = dart.notNull(this.requiredParameterCount) + dart.notNull(i
); | 1820 let index = dart.notNull(this.requiredParameterCount) + dart.notNull(i
); |
1821 positions.set(this.parameterName(index), index); | 1821 positions.set(this.parameterName(index), index); |
1822 } | 1822 } |
1823 let index = 0; | 1823 let index = 0; |
1824 (() => { | 1824 (() => { |
1825 let _ = positions.keys[core.$toList](); | 1825 let _ = positions.keys[core.$toList](); |
1826 _[core.$sort](); | 1826 _[core.$sort](); |
1827 return _; | 1827 return _; |
1828 })()[core.$forEach](dart.fn((name => { | 1828 })()[core.$forEach](dart.fn(name => { |
1829 this.cachedSortedIndices[core.$set]((() => { | 1829 this.cachedSortedIndices[core.$set]((() => { |
1830 let x = index; | 1830 let x = index; |
1831 index = dart.notNull(x) + 1; | 1831 index = dart.notNull(x) + 1; |
1832 return x; | 1832 return x; |
1833 })(), positions.get(name)); | 1833 })(), positions.get(name)); |
1834 }).bind(this), core.Object, [core.String])); | 1834 }, core.Object, [core.String])); |
1835 } | 1835 } |
1836 return dart.as(this.cachedSortedIndices[core.$get](unsortedIndex), core.in
t); | 1836 return dart.as(this.cachedSortedIndices[core.$get](unsortedIndex), core.in
t); |
1837 } | 1837 } |
1838 computeFunctionRti(jsConstructor) { | 1838 computeFunctionRti(jsConstructor) { |
1839 if (typeof this.functionType == "number") { | 1839 if (typeof this.functionType == "number") { |
1840 return getMetadata(dart.as(this.functionType, core.int)); | 1840 return getMetadata(dart.as(this.functionType, core.int)); |
1841 } else if (typeof this.functionType == "function") { | 1841 } else if (typeof this.functionType == "function") { |
1842 let fakeInstance = new jsConstructor(); | 1842 let fakeInstance = new jsConstructor(); |
1843 setRuntimeTypeInfo(fakeInstance, fakeInstance["<>"]); | 1843 setRuntimeTypeInfo(fakeInstance, fakeInstance["<>"]); |
1844 return this.functionType.apply({$receiver: fakeInstance}); | 1844 return this.functionType.apply({$receiver: fakeInstance}); |
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4380 exports.jsonEncodeNative = jsonEncodeNative; | 4380 exports.jsonEncodeNative = jsonEncodeNative; |
4381 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4381 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
4382 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4382 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
4383 exports.DeferredLoadCallback = DeferredLoadCallback; | 4383 exports.DeferredLoadCallback = DeferredLoadCallback; |
4384 exports.loadDeferredLibrary = loadDeferredLibrary; | 4384 exports.loadDeferredLibrary = loadDeferredLibrary; |
4385 exports.MainError = MainError; | 4385 exports.MainError = MainError; |
4386 exports.missingMain = missingMain; | 4386 exports.missingMain = missingMain; |
4387 exports.badMain = badMain; | 4387 exports.badMain = badMain; |
4388 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4388 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
4389 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); | 4389 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); |
OLD | NEW |