| OLD | NEW |
| 1 dart_library.library('dart/collection', null, /* Imports */[ | 1 dart_library.library('dart/collection', null, /* Imports */[ |
| 2 'dart/_runtime', | 2 'dart/_runtime', |
| 3 'dart/core' | 3 'dart/core' |
| 4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
| 5 'dart/_internal', | 5 'dart/_internal', |
| 6 'dart/_js_helper', | 6 'dart/_js_helper', |
| 7 'dart/math' | 7 'dart/math' |
| 8 ], function(exports, dart, core, _internal, _js_helper, math) { | 8 ], function(exports, dart, core, _internal, _js_helper, math) { |
| 9 'use strict'; | 9 'use strict'; |
| 10 let dartx = dart.dartx; | 10 let dartx = dart.dartx; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 equals = _defaultEquals; | 75 equals = _defaultEquals; |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); | 78 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 79 } | 79 } |
| 80 static identity() { | 80 static identity() { |
| 81 return new (_IdentityHashMap$(K, V))(); | 81 return new (_IdentityHashMap$(K, V))(); |
| 82 } | 82 } |
| 83 static from(other) { | 83 static from(other) { |
| 84 let result = HashMap$(K, V).new(); | 84 let result = HashMap$(K, V).new(); |
| 85 other.forEach(dart.fn((k, v) => { | 85 other[dartx.forEach](dart.fn((k, v) => { |
| 86 result.set(dart.as(k, K), dart.as(v, V)); | 86 result.set(dart.as(k, K), dart.as(v, V)); |
| 87 }, dart.void, [dart.dynamic, dart.dynamic])); | 87 }, dart.void, [dart.dynamic, dart.dynamic])); |
| 88 return result; | 88 return result; |
| 89 } | 89 } |
| 90 static fromIterable(iterable, opts) { | 90 static fromIterable(iterable, opts) { |
| 91 let key = opts && 'key' in opts ? opts.key : null; | 91 let key = opts && 'key' in opts ? opts.key : null; |
| 92 let value = opts && 'value' in opts ? opts.value : null; | 92 let value = opts && 'value' in opts ? opts.value : null; |
| 93 let map = HashMap$(K, V).new(); | 93 let map = HashMap$(K, V).new(); |
| 94 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 94 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 95 return map; | 95 return map; |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 equals = _defaultEquals; | 1235 equals = _defaultEquals; |
| 1236 } | 1236 } |
| 1237 } | 1237 } |
| 1238 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); | 1238 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 1239 } | 1239 } |
| 1240 static identity() { | 1240 static identity() { |
| 1241 return new (_LinkedIdentityHashMap$(K, V))(); | 1241 return new (_LinkedIdentityHashMap$(K, V))(); |
| 1242 } | 1242 } |
| 1243 static from(other) { | 1243 static from(other) { |
| 1244 let result = LinkedHashMap$(K, V).new(); | 1244 let result = LinkedHashMap$(K, V).new(); |
| 1245 other.forEach(dart.fn((k, v) => { | 1245 other[dartx.forEach](dart.fn((k, v) => { |
| 1246 result.set(dart.as(k, K), dart.as(v, V)); | 1246 result.set(dart.as(k, K), dart.as(v, V)); |
| 1247 }, dart.void, [dart.dynamic, dart.dynamic])); | 1247 }, dart.void, [dart.dynamic, dart.dynamic])); |
| 1248 return result; | 1248 return result; |
| 1249 } | 1249 } |
| 1250 static fromIterable(iterable, opts) { | 1250 static fromIterable(iterable, opts) { |
| 1251 let key = opts && 'key' in opts ? opts.key : null; | 1251 let key = opts && 'key' in opts ? opts.key : null; |
| 1252 let value = opts && 'value' in opts ? opts.value : null; | 1252 let value = opts && 'value' in opts ? opts.value : null; |
| 1253 let map = LinkedHashMap$(K, V).new(); | 1253 let map = LinkedHashMap$(K, V).new(); |
| 1254 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 1254 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 1255 return map; | 1255 return map; |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2131 const MapMixin$ = dart.generic(function(K, V) { | 2131 const MapMixin$ = dart.generic(function(K, V) { |
| 2132 class MapMixin extends core.Object { | 2132 class MapMixin extends core.Object { |
| 2133 forEach(action) { | 2133 forEach(action) { |
| 2134 dart.as(action, dart.functionType(dart.void, [K, V])); | 2134 dart.as(action, dart.functionType(dart.void, [K, V])); |
| 2135 for (let key of this.keys) { | 2135 for (let key of this.keys) { |
| 2136 action(key, this.get(key)); | 2136 action(key, this.get(key)); |
| 2137 } | 2137 } |
| 2138 } | 2138 } |
| 2139 addAll(other) { | 2139 addAll(other) { |
| 2140 dart.as(other, core.Map$(K, V)); | 2140 dart.as(other, core.Map$(K, V)); |
| 2141 for (let key of other.keys) { | 2141 for (let key of other[dartx.keys]) { |
| 2142 this.set(key, other.get(key)); | 2142 this.set(key, other[dartx.get](key)); |
| 2143 } | 2143 } |
| 2144 } | 2144 } |
| 2145 containsValue(value) { | 2145 containsValue(value) { |
| 2146 for (let key of this.keys) { | 2146 for (let key of this.keys) { |
| 2147 if (dart.equals(this.get(key), value)) return true; | 2147 if (dart.equals(this.get(key), value)) return true; |
| 2148 } | 2148 } |
| 2149 return false; | 2149 return false; |
| 2150 } | 2150 } |
| 2151 putIfAbsent(key, ifAbsent) { | 2151 putIfAbsent(key, ifAbsent) { |
| 2152 dart.as(key, K); | 2152 dart.as(key, K); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2178 MapMixin[dart.implements] = () => [core.Map$(K, V)]; | 2178 MapMixin[dart.implements] = () => [core.Map$(K, V)]; |
| 2179 dart.setSignature(MapMixin, { | 2179 dart.setSignature(MapMixin, { |
| 2180 methods: () => ({ | 2180 methods: () => ({ |
| 2181 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], | 2181 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], |
| 2182 addAll: [dart.void, [core.Map$(K, V)]], | 2182 addAll: [dart.void, [core.Map$(K, V)]], |
| 2183 containsValue: [core.bool, [core.Object]], | 2183 containsValue: [core.bool, [core.Object]], |
| 2184 putIfAbsent: [V, [K, dart.functionType(V, [])]], | 2184 putIfAbsent: [V, [K, dart.functionType(V, [])]], |
| 2185 containsKey: [core.bool, [core.Object]] | 2185 containsKey: [core.bool, [core.Object]] |
| 2186 }) | 2186 }) |
| 2187 }); | 2187 }); |
| 2188 dart.defineExtensionMembers(MapMixin, [ |
| 2189 'forEach', |
| 2190 'addAll', |
| 2191 'containsValue', |
| 2192 'putIfAbsent', |
| 2193 'containsKey', |
| 2194 'length', |
| 2195 'isEmpty', |
| 2196 'isNotEmpty', |
| 2197 'values' |
| 2198 ]); |
| 2188 return MapMixin; | 2199 return MapMixin; |
| 2189 }); | 2200 }); |
| 2190 let MapMixin = MapMixin$(); | 2201 let MapMixin = MapMixin$(); |
| 2191 const MapBase$ = dart.generic(function(K, V) { | 2202 const MapBase$ = dart.generic(function(K, V) { |
| 2192 class MapBase extends dart.mixin(core.Object, MapMixin$(K, V)) {} | 2203 class MapBase extends dart.mixin(core.Object, MapMixin$(K, V)) {} |
| 2193 return MapBase; | 2204 return MapBase; |
| 2194 }); | 2205 }); |
| 2195 let MapBase = MapBase$(); | 2206 let MapBase = MapBase$(); |
| 2196 const _UnmodifiableMapMixin$ = dart.generic(function(K, V) { | 2207 const _UnmodifiableMapMixin$ = dart.generic(function(K, V) { |
| 2197 class _UnmodifiableMapMixin extends core.Object { | 2208 class _UnmodifiableMapMixin extends core.Object { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2220 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)]; | 2231 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)]; |
| 2221 dart.setSignature(_UnmodifiableMapMixin, { | 2232 dart.setSignature(_UnmodifiableMapMixin, { |
| 2222 methods: () => ({ | 2233 methods: () => ({ |
| 2223 set: [dart.void, [K, V]], | 2234 set: [dart.void, [K, V]], |
| 2224 addAll: [dart.void, [core.Map$(K, V)]], | 2235 addAll: [dart.void, [core.Map$(K, V)]], |
| 2225 clear: [dart.void, []], | 2236 clear: [dart.void, []], |
| 2226 remove: [V, [core.Object]], | 2237 remove: [V, [core.Object]], |
| 2227 putIfAbsent: [V, [K, dart.functionType(V, [])]] | 2238 putIfAbsent: [V, [K, dart.functionType(V, [])]] |
| 2228 }) | 2239 }) |
| 2229 }); | 2240 }); |
| 2241 dart.defineExtensionMembers(_UnmodifiableMapMixin, [ |
| 2242 'set', |
| 2243 'addAll', |
| 2244 'clear', |
| 2245 'remove', |
| 2246 'putIfAbsent' |
| 2247 ]); |
| 2230 return _UnmodifiableMapMixin; | 2248 return _UnmodifiableMapMixin; |
| 2231 }); | 2249 }); |
| 2232 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(); | 2250 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(); |
| 2233 const UnmodifiableMapBase$ = dart.generic(function(K, V) { | 2251 const UnmodifiableMapBase$ = dart.generic(function(K, V) { |
| 2234 class UnmodifiableMapBase extends dart.mixin(MapBase$(K, V), _UnmodifiableMa
pMixin$(K, V)) { | 2252 class UnmodifiableMapBase extends dart.mixin(MapBase$(K, V), _UnmodifiableMa
pMixin$(K, V)) { |
| 2235 UnmodifiableMapBase() { | 2253 UnmodifiableMapBase() { |
| 2236 super.MapBase(...arguments); | 2254 super.MapBase(...arguments); |
| 2237 } | 2255 } |
| 2238 } | 2256 } |
| 2239 return UnmodifiableMapBase; | 2257 return UnmodifiableMapBase; |
| 2240 }); | 2258 }); |
| 2241 let UnmodifiableMapBase = UnmodifiableMapBase$(); | 2259 let UnmodifiableMapBase = UnmodifiableMapBase$(); |
| 2242 const _map = Symbol('_map'); | 2260 const _map = Symbol('_map'); |
| 2243 const _MapBaseValueIterable$ = dart.generic(function(V) { | 2261 const _MapBaseValueIterable$ = dart.generic(function(V) { |
| 2244 class _MapBaseValueIterable extends IterableBase$(V) { | 2262 class _MapBaseValueIterable extends IterableBase$(V) { |
| 2245 _MapBaseValueIterable(map) { | 2263 _MapBaseValueIterable(map) { |
| 2246 this[_map] = map; | 2264 this[_map] = map; |
| 2247 super.IterableBase(); | 2265 super.IterableBase(); |
| 2248 } | 2266 } |
| 2249 get length() { | 2267 get length() { |
| 2250 return this[_map].length; | 2268 return this[_map][dartx.length]; |
| 2251 } | 2269 } |
| 2252 get isEmpty() { | 2270 get isEmpty() { |
| 2253 return this[_map].isEmpty; | 2271 return this[_map][dartx.isEmpty]; |
| 2254 } | 2272 } |
| 2255 get isNotEmpty() { | 2273 get isNotEmpty() { |
| 2256 return this[_map].isNotEmpty; | 2274 return this[_map][dartx.isNotEmpty]; |
| 2257 } | 2275 } |
| 2258 get first() { | 2276 get first() { |
| 2259 return dart.as(this[_map].get(this[_map].keys[dartx.first]), V); | 2277 return dart.as(this[_map][dartx.get](this[_map][dartx.keys][dartx.first]
), V); |
| 2260 } | 2278 } |
| 2261 get single() { | 2279 get single() { |
| 2262 return dart.as(this[_map].get(this[_map].keys[dartx.single]), V); | 2280 return dart.as(this[_map][dartx.get](this[_map][dartx.keys][dartx.single
]), V); |
| 2263 } | 2281 } |
| 2264 get last() { | 2282 get last() { |
| 2265 return dart.as(this[_map].get(this[_map].keys[dartx.last]), V); | 2283 return dart.as(this[_map][dartx.get](this[_map][dartx.keys][dartx.last])
, V); |
| 2266 } | 2284 } |
| 2267 get iterator() { | 2285 get iterator() { |
| 2268 return new (_MapBaseValueIterator$(V))(this[_map]); | 2286 return new (_MapBaseValueIterator$(V))(this[_map]); |
| 2269 } | 2287 } |
| 2270 } | 2288 } |
| 2271 _MapBaseValueIterable[dart.implements] = () => [_internal.EfficientLength]; | 2289 _MapBaseValueIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 2272 dart.setSignature(_MapBaseValueIterable, { | 2290 dart.setSignature(_MapBaseValueIterable, { |
| 2273 constructors: () => ({_MapBaseValueIterable: [_MapBaseValueIterable$(V), [
core.Map]]}) | 2291 constructors: () => ({_MapBaseValueIterable: [_MapBaseValueIterable$(V), [
core.Map]]}) |
| 2274 }); | 2292 }); |
| 2275 dart.defineExtensionMembers(_MapBaseValueIterable, [ | 2293 dart.defineExtensionMembers(_MapBaseValueIterable, [ |
| 2276 'length', | 2294 'length', |
| 2277 'isEmpty', | 2295 'isEmpty', |
| 2278 'isNotEmpty', | 2296 'isNotEmpty', |
| 2279 'first', | 2297 'first', |
| 2280 'single', | 2298 'single', |
| 2281 'last', | 2299 'last', |
| 2282 'iterator' | 2300 'iterator' |
| 2283 ]); | 2301 ]); |
| 2284 return _MapBaseValueIterable; | 2302 return _MapBaseValueIterable; |
| 2285 }); | 2303 }); |
| 2286 let _MapBaseValueIterable = _MapBaseValueIterable$(); | 2304 let _MapBaseValueIterable = _MapBaseValueIterable$(); |
| 2287 const _keys = Symbol('_keys'); | 2305 const _keys = Symbol('_keys'); |
| 2288 const _MapBaseValueIterator$ = dart.generic(function(V) { | 2306 const _MapBaseValueIterator$ = dart.generic(function(V) { |
| 2289 class _MapBaseValueIterator extends core.Object { | 2307 class _MapBaseValueIterator extends core.Object { |
| 2290 _MapBaseValueIterator(map) { | 2308 _MapBaseValueIterator(map) { |
| 2291 this[_map] = map; | 2309 this[_map] = map; |
| 2292 this[_keys] = map.keys[dartx.iterator]; | 2310 this[_keys] = map[dartx.keys][dartx.iterator]; |
| 2293 this[_current] = null; | 2311 this[_current] = null; |
| 2294 } | 2312 } |
| 2295 moveNext() { | 2313 moveNext() { |
| 2296 if (dart.notNull(this[_keys].moveNext())) { | 2314 if (dart.notNull(this[_keys].moveNext())) { |
| 2297 this[_current] = dart.as(this[_map].get(this[_keys].current), V); | 2315 this[_current] = dart.as(this[_map][dartx.get](this[_keys].current), V
); |
| 2298 return true; | 2316 return true; |
| 2299 } | 2317 } |
| 2300 this[_current] = null; | 2318 this[_current] = null; |
| 2301 return false; | 2319 return false; |
| 2302 } | 2320 } |
| 2303 get current() { | 2321 get current() { |
| 2304 return this[_current]; | 2322 return this[_current]; |
| 2305 } | 2323 } |
| 2306 } | 2324 } |
| 2307 _MapBaseValueIterator[dart.implements] = () => [core.Iterator$(V)]; | 2325 _MapBaseValueIterator[dart.implements] = () => [core.Iterator$(V)]; |
| 2308 dart.setSignature(_MapBaseValueIterator, { | 2326 dart.setSignature(_MapBaseValueIterator, { |
| 2309 constructors: () => ({_MapBaseValueIterator: [_MapBaseValueIterator$(V), [
core.Map]]}), | 2327 constructors: () => ({_MapBaseValueIterator: [_MapBaseValueIterator$(V), [
core.Map]]}), |
| 2310 methods: () => ({moveNext: [core.bool, []]}) | 2328 methods: () => ({moveNext: [core.bool, []]}) |
| 2311 }); | 2329 }); |
| 2312 return _MapBaseValueIterator; | 2330 return _MapBaseValueIterator; |
| 2313 }); | 2331 }); |
| 2314 let _MapBaseValueIterator = _MapBaseValueIterator$(); | 2332 let _MapBaseValueIterator = _MapBaseValueIterator$(); |
| 2315 const MapView$ = dart.generic(function(K, V) { | 2333 const MapView$ = dart.generic(function(K, V) { |
| 2316 class MapView extends core.Object { | 2334 class MapView extends core.Object { |
| 2317 MapView(map) { | 2335 MapView(map) { |
| 2318 this[_map] = map; | 2336 this[_map] = map; |
| 2319 } | 2337 } |
| 2320 get(key) { | 2338 get(key) { |
| 2321 return this[_map].get(key); | 2339 return this[_map][dartx.get](key); |
| 2322 } | 2340 } |
| 2323 set(key, value) { | 2341 set(key, value) { |
| 2324 dart.as(key, K); | 2342 dart.as(key, K); |
| 2325 dart.as(value, V); | 2343 dart.as(value, V); |
| 2326 this[_map].set(key, value); | 2344 this[_map][dartx.set](key, value); |
| 2327 return value; | 2345 return value; |
| 2328 } | 2346 } |
| 2329 addAll(other) { | 2347 addAll(other) { |
| 2330 dart.as(other, core.Map$(K, V)); | 2348 dart.as(other, core.Map$(K, V)); |
| 2331 this[_map].addAll(other); | 2349 this[_map][dartx.addAll](other); |
| 2332 } | 2350 } |
| 2333 clear() { | 2351 clear() { |
| 2334 this[_map].clear(); | 2352 this[_map][dartx.clear](); |
| 2335 } | 2353 } |
| 2336 putIfAbsent(key, ifAbsent) { | 2354 putIfAbsent(key, ifAbsent) { |
| 2337 dart.as(key, K); | 2355 dart.as(key, K); |
| 2338 dart.as(ifAbsent, dart.functionType(V, [])); | 2356 dart.as(ifAbsent, dart.functionType(V, [])); |
| 2339 return this[_map].putIfAbsent(key, ifAbsent); | 2357 return this[_map][dartx.putIfAbsent](key, ifAbsent); |
| 2340 } | 2358 } |
| 2341 containsKey(key) { | 2359 containsKey(key) { |
| 2342 return this[_map].containsKey(key); | 2360 return this[_map][dartx.containsKey](key); |
| 2343 } | 2361 } |
| 2344 containsValue(value) { | 2362 containsValue(value) { |
| 2345 return this[_map].containsValue(value); | 2363 return this[_map][dartx.containsValue](value); |
| 2346 } | 2364 } |
| 2347 forEach(action) { | 2365 forEach(action) { |
| 2348 dart.as(action, dart.functionType(dart.void, [K, V])); | 2366 dart.as(action, dart.functionType(dart.void, [K, V])); |
| 2349 this[_map].forEach(action); | 2367 this[_map][dartx.forEach](action); |
| 2350 } | 2368 } |
| 2351 get isEmpty() { | 2369 get isEmpty() { |
| 2352 return this[_map].isEmpty; | 2370 return this[_map][dartx.isEmpty]; |
| 2353 } | 2371 } |
| 2354 get isNotEmpty() { | 2372 get isNotEmpty() { |
| 2355 return this[_map].isNotEmpty; | 2373 return this[_map][dartx.isNotEmpty]; |
| 2356 } | 2374 } |
| 2357 get length() { | 2375 get length() { |
| 2358 return this[_map].length; | 2376 return this[_map][dartx.length]; |
| 2359 } | 2377 } |
| 2360 get keys() { | 2378 get keys() { |
| 2361 return this[_map].keys; | 2379 return this[_map][dartx.keys]; |
| 2362 } | 2380 } |
| 2363 remove(key) { | 2381 remove(key) { |
| 2364 return this[_map].remove(key); | 2382 return this[_map][dartx.remove](key); |
| 2365 } | 2383 } |
| 2366 toString() { | 2384 toString() { |
| 2367 return dart.toString(this[_map]); | 2385 return dart.toString(this[_map]); |
| 2368 } | 2386 } |
| 2369 get values() { | 2387 get values() { |
| 2370 return this[_map].values; | 2388 return this[_map][dartx.values]; |
| 2371 } | 2389 } |
| 2372 } | 2390 } |
| 2373 MapView[dart.implements] = () => [core.Map$(K, V)]; | 2391 MapView[dart.implements] = () => [core.Map$(K, V)]; |
| 2374 dart.setSignature(MapView, { | 2392 dart.setSignature(MapView, { |
| 2375 constructors: () => ({MapView: [MapView$(K, V), [core.Map$(K, V)]]}), | 2393 constructors: () => ({MapView: [MapView$(K, V), [core.Map$(K, V)]]}), |
| 2376 methods: () => ({ | 2394 methods: () => ({ |
| 2377 get: [V, [core.Object]], | 2395 get: [V, [core.Object]], |
| 2378 set: [dart.void, [K, V]], | 2396 set: [dart.void, [K, V]], |
| 2379 addAll: [dart.void, [core.Map$(K, V)]], | 2397 addAll: [dart.void, [core.Map$(K, V)]], |
| 2380 clear: [dart.void, []], | 2398 clear: [dart.void, []], |
| 2381 putIfAbsent: [V, [K, dart.functionType(V, [])]], | 2399 putIfAbsent: [V, [K, dart.functionType(V, [])]], |
| 2382 containsKey: [core.bool, [core.Object]], | 2400 containsKey: [core.bool, [core.Object]], |
| 2383 containsValue: [core.bool, [core.Object]], | 2401 containsValue: [core.bool, [core.Object]], |
| 2384 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], | 2402 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], |
| 2385 remove: [V, [core.Object]] | 2403 remove: [V, [core.Object]] |
| 2386 }) | 2404 }) |
| 2387 }); | 2405 }); |
| 2406 dart.defineExtensionMembers(MapView, [ |
| 2407 'get', |
| 2408 'set', |
| 2409 'addAll', |
| 2410 'clear', |
| 2411 'putIfAbsent', |
| 2412 'containsKey', |
| 2413 'containsValue', |
| 2414 'forEach', |
| 2415 'remove', |
| 2416 'isEmpty', |
| 2417 'isNotEmpty', |
| 2418 'length', |
| 2419 'keys', |
| 2420 'values' |
| 2421 ]); |
| 2388 return MapView; | 2422 return MapView; |
| 2389 }); | 2423 }); |
| 2390 let MapView = MapView$(); | 2424 let MapView = MapView$(); |
| 2391 const UnmodifiableMapView$ = dart.generic(function(K, V) { | 2425 const UnmodifiableMapView$ = dart.generic(function(K, V) { |
| 2392 class UnmodifiableMapView extends dart.mixin(MapView$(K, V), _UnmodifiableMa
pMixin$(K, V)) { | 2426 class UnmodifiableMapView extends dart.mixin(MapView$(K, V), _UnmodifiableMa
pMixin$(K, V)) { |
| 2393 UnmodifiableMapView() { | 2427 UnmodifiableMapView() { |
| 2394 super.MapView(...arguments); | 2428 super.MapView(...arguments); |
| 2395 } | 2429 } |
| 2396 } | 2430 } |
| 2397 return UnmodifiableMapView; | 2431 return UnmodifiableMapView; |
| 2398 }); | 2432 }); |
| 2399 let UnmodifiableMapView = UnmodifiableMapView$(); | 2433 let UnmodifiableMapView = UnmodifiableMapView$(); |
| 2400 class Maps extends core.Object { | 2434 class Maps extends core.Object { |
| 2401 static containsValue(map, value) { | 2435 static containsValue(map, value) { |
| 2402 for (let v of map.values) { | 2436 for (let v of map[dartx.values]) { |
| 2403 if (dart.equals(value, v)) { | 2437 if (dart.equals(value, v)) { |
| 2404 return true; | 2438 return true; |
| 2405 } | 2439 } |
| 2406 } | 2440 } |
| 2407 return false; | 2441 return false; |
| 2408 } | 2442 } |
| 2409 static containsKey(map, key) { | 2443 static containsKey(map, key) { |
| 2410 for (let k of map.keys) { | 2444 for (let k of map[dartx.keys]) { |
| 2411 if (dart.equals(key, k)) { | 2445 if (dart.equals(key, k)) { |
| 2412 return true; | 2446 return true; |
| 2413 } | 2447 } |
| 2414 } | 2448 } |
| 2415 return false; | 2449 return false; |
| 2416 } | 2450 } |
| 2417 static putIfAbsent(map, key, ifAbsent) { | 2451 static putIfAbsent(map, key, ifAbsent) { |
| 2418 if (dart.notNull(map.containsKey(key))) { | 2452 if (dart.notNull(map[dartx.containsKey](key))) { |
| 2419 return map.get(key); | 2453 return map[dartx.get](key); |
| 2420 } | 2454 } |
| 2421 let v = ifAbsent(); | 2455 let v = ifAbsent(); |
| 2422 map.set(key, v); | 2456 map[dartx.set](key, v); |
| 2423 return v; | 2457 return v; |
| 2424 } | 2458 } |
| 2425 static clear(map) { | 2459 static clear(map) { |
| 2426 for (let k of map.keys[dartx.toList]()) { | 2460 for (let k of map[dartx.keys][dartx.toList]()) { |
| 2427 map.remove(k); | 2461 map[dartx.remove](k); |
| 2428 } | 2462 } |
| 2429 } | 2463 } |
| 2430 static forEach(map, f) { | 2464 static forEach(map, f) { |
| 2431 for (let k of map.keys) { | 2465 for (let k of map[dartx.keys]) { |
| 2432 dart.dcall(f, k, map.get(k)); | 2466 dart.dcall(f, k, map[dartx.get](k)); |
| 2433 } | 2467 } |
| 2434 } | 2468 } |
| 2435 static getValues(map) { | 2469 static getValues(map) { |
| 2436 return map.keys[dartx.map](dart.fn(key => map.get(key))); | 2470 return map[dartx.keys][dartx.map](dart.fn(key => map[dartx.get](key))); |
| 2437 } | 2471 } |
| 2438 static length(map) { | 2472 static length(map) { |
| 2439 return map.keys[dartx.length]; | 2473 return map[dartx.keys][dartx.length]; |
| 2440 } | 2474 } |
| 2441 static isEmpty(map) { | 2475 static isEmpty(map) { |
| 2442 return map.keys[dartx.isEmpty]; | 2476 return map[dartx.keys][dartx.isEmpty]; |
| 2443 } | 2477 } |
| 2444 static isNotEmpty(map) { | 2478 static isNotEmpty(map) { |
| 2445 return map.keys[dartx.isNotEmpty]; | 2479 return map[dartx.keys][dartx.isNotEmpty]; |
| 2446 } | 2480 } |
| 2447 static mapToString(m) { | 2481 static mapToString(m) { |
| 2448 if (dart.notNull(IterableBase._isToStringVisiting(m))) { | 2482 if (dart.notNull(IterableBase._isToStringVisiting(m))) { |
| 2449 return '{...}'; | 2483 return '{...}'; |
| 2450 } | 2484 } |
| 2451 let result = new core.StringBuffer(); | 2485 let result = new core.StringBuffer(); |
| 2452 try { | 2486 try { |
| 2453 IterableBase._toStringVisiting[dartx.add](m); | 2487 IterableBase._toStringVisiting[dartx.add](m); |
| 2454 result.write('{'); | 2488 result.write('{'); |
| 2455 let first = true; | 2489 let first = true; |
| 2456 m.forEach(dart.fn((k, v) => { | 2490 m[dartx.forEach](dart.fn((k, v) => { |
| 2457 if (!first) { | 2491 if (!first) { |
| 2458 result.write(', '); | 2492 result.write(', '); |
| 2459 } | 2493 } |
| 2460 first = false; | 2494 first = false; |
| 2461 result.write(k); | 2495 result.write(k); |
| 2462 result.write(': '); | 2496 result.write(': '); |
| 2463 result.write(v); | 2497 result.write(v); |
| 2464 }, dart.void, [dart.dynamic, dart.dynamic])); | 2498 }, dart.void, [dart.dynamic, dart.dynamic])); |
| 2465 result.write('}'); | 2499 result.write('}'); |
| 2466 } finally { | 2500 } finally { |
| 2467 dart.assert(core.identical(IterableBase._toStringVisiting[dartx.last], m
)); | 2501 dart.assert(core.identical(IterableBase._toStringVisiting[dartx.last], m
)); |
| 2468 IterableBase._toStringVisiting[dartx.removeLast](); | 2502 IterableBase._toStringVisiting[dartx.removeLast](); |
| 2469 } | 2503 } |
| 2470 return dart.toString(result); | 2504 return dart.toString(result); |
| 2471 } | 2505 } |
| 2472 static _id(x) { | 2506 static _id(x) { |
| 2473 return x; | 2507 return x; |
| 2474 } | 2508 } |
| 2475 static _fillMapWithMappedIterable(map, iterable, key, value) { | 2509 static _fillMapWithMappedIterable(map, iterable, key, value) { |
| 2476 if (key == null) key = Maps._id; | 2510 if (key == null) key = Maps._id; |
| 2477 if (value == null) value = Maps._id; | 2511 if (value == null) value = Maps._id; |
| 2478 for (let element of iterable) { | 2512 for (let element of iterable) { |
| 2479 map.set(dart.dcall(key, element), dart.dcall(value, element)); | 2513 map[dartx.set](dart.dcall(key, element), dart.dcall(value, element)); |
| 2480 } | 2514 } |
| 2481 } | 2515 } |
| 2482 static _fillMapWithIterables(map, keys, values) { | 2516 static _fillMapWithIterables(map, keys, values) { |
| 2483 let keyIterator = keys[dartx.iterator]; | 2517 let keyIterator = keys[dartx.iterator]; |
| 2484 let valueIterator = values[dartx.iterator]; | 2518 let valueIterator = values[dartx.iterator]; |
| 2485 let hasNextKey = keyIterator.moveNext(); | 2519 let hasNextKey = keyIterator.moveNext(); |
| 2486 let hasNextValue = valueIterator.moveNext(); | 2520 let hasNextValue = valueIterator.moveNext(); |
| 2487 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { | 2521 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { |
| 2488 map.set(keyIterator.current, valueIterator.current); | 2522 map[dartx.set](keyIterator.current, valueIterator.current); |
| 2489 hasNextKey = keyIterator.moveNext(); | 2523 hasNextKey = keyIterator.moveNext(); |
| 2490 hasNextValue = valueIterator.moveNext(); | 2524 hasNextValue = valueIterator.moveNext(); |
| 2491 } | 2525 } |
| 2492 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { | 2526 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { |
| 2493 dart.throw(new core.ArgumentError("Iterables do not have same length."))
; | 2527 dart.throw(new core.ArgumentError("Iterables do not have same length."))
; |
| 2494 } | 2528 } |
| 2495 } | 2529 } |
| 2496 } | 2530 } |
| 2497 dart.setSignature(Maps, { | 2531 dart.setSignature(Maps, { |
| 2498 statics: () => ({ | 2532 statics: () => ({ |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3384 if (compare === void 0) compare = null; | 3418 if (compare === void 0) compare = null; |
| 3385 if (isValidKey === void 0) isValidKey = null; | 3419 if (isValidKey === void 0) isValidKey = null; |
| 3386 this[_comparator] = compare == null ? core.Comparable.compare : compare; | 3420 this[_comparator] = compare == null ? core.Comparable.compare : compare; |
| 3387 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, K), core.bool, [core.Object]); | 3421 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, K), core.bool, [core.Object]); |
| 3388 super._SplayTree(); | 3422 super._SplayTree(); |
| 3389 } | 3423 } |
| 3390 static from(other, compare, isValidKey) { | 3424 static from(other, compare, isValidKey) { |
| 3391 if (compare === void 0) compare = null; | 3425 if (compare === void 0) compare = null; |
| 3392 if (isValidKey === void 0) isValidKey = null; | 3426 if (isValidKey === void 0) isValidKey = null; |
| 3393 let result = new (SplayTreeMap$(K, V))(); | 3427 let result = new (SplayTreeMap$(K, V))(); |
| 3394 other.forEach(dart.fn((k, v) => { | 3428 other[dartx.forEach](dart.fn((k, v) => { |
| 3395 result.set(dart.as(k, K), dart.as(v, V)); | 3429 result.set(dart.as(k, K), dart.as(v, V)); |
| 3396 }, dart.void, [dart.dynamic, dart.dynamic])); | 3430 }, dart.void, [dart.dynamic, dart.dynamic])); |
| 3397 return result; | 3431 return result; |
| 3398 } | 3432 } |
| 3399 static fromIterable(iterable, opts) { | 3433 static fromIterable(iterable, opts) { |
| 3400 let key = opts && 'key' in opts ? opts.key : null; | 3434 let key = opts && 'key' in opts ? opts.key : null; |
| 3401 let value = opts && 'value' in opts ? opts.value : null; | 3435 let value = opts && 'value' in opts ? opts.value : null; |
| 3402 let compare = opts && 'compare' in opts ? opts.compare : null; | 3436 let compare = opts && 'compare' in opts ? opts.compare : null; |
| 3403 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 3437 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 3404 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); | 3438 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3472 } | 3506 } |
| 3473 if (splayCount != this[_splayCount]) { | 3507 if (splayCount != this[_splayCount]) { |
| 3474 comp = this[_splay](key); | 3508 comp = this[_splay](key); |
| 3475 dart.assert(comp != 0); | 3509 dart.assert(comp != 0); |
| 3476 } | 3510 } |
| 3477 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); | 3511 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); |
| 3478 return value; | 3512 return value; |
| 3479 } | 3513 } |
| 3480 addAll(other) { | 3514 addAll(other) { |
| 3481 dart.as(other, core.Map$(K, V)); | 3515 dart.as(other, core.Map$(K, V)); |
| 3482 other.forEach(dart.fn((key, value) => { | 3516 other[dartx.forEach](dart.fn((key, value) => { |
| 3483 dart.as(key, K); | 3517 dart.as(key, K); |
| 3484 dart.as(value, V); | 3518 dart.as(value, V); |
| 3485 this.set(key, value); | 3519 this.set(key, value); |
| 3486 }, dart.void, [K, V])); | 3520 }, dart.void, [K, V])); |
| 3487 } | 3521 } |
| 3488 get isEmpty() { | 3522 get isEmpty() { |
| 3489 return this[_root] == null; | 3523 return this[_root] == null; |
| 3490 } | 3524 } |
| 3491 get isNotEmpty() { | 3525 get isNotEmpty() { |
| 3492 return !dart.notNull(this.isEmpty); | 3526 return !dart.notNull(this.isEmpty); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3589 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], | 3623 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], |
| 3590 clear: [dart.void, []], | 3624 clear: [dart.void, []], |
| 3591 containsKey: [core.bool, [core.Object]], | 3625 containsKey: [core.bool, [core.Object]], |
| 3592 containsValue: [core.bool, [core.Object]], | 3626 containsValue: [core.bool, [core.Object]], |
| 3593 firstKey: [K, []], | 3627 firstKey: [K, []], |
| 3594 lastKey: [K, []], | 3628 lastKey: [K, []], |
| 3595 lastKeyBefore: [K, [K]], | 3629 lastKeyBefore: [K, [K]], |
| 3596 firstKeyAfter: [K, [K]] | 3630 firstKeyAfter: [K, [K]] |
| 3597 }) | 3631 }) |
| 3598 }); | 3632 }); |
| 3633 dart.defineExtensionMembers(SplayTreeMap, [ |
| 3634 'get', |
| 3635 'remove', |
| 3636 'set', |
| 3637 'putIfAbsent', |
| 3638 'addAll', |
| 3639 'forEach', |
| 3640 'clear', |
| 3641 'containsKey', |
| 3642 'containsValue', |
| 3643 'isEmpty', |
| 3644 'isNotEmpty', |
| 3645 'length', |
| 3646 'keys', |
| 3647 'values' |
| 3648 ]); |
| 3599 return SplayTreeMap; | 3649 return SplayTreeMap; |
| 3600 }); | 3650 }); |
| 3601 let SplayTreeMap = SplayTreeMap$(); | 3651 let SplayTreeMap = SplayTreeMap$(); |
| 3602 const _workList = Symbol('_workList'); | 3652 const _workList = Symbol('_workList'); |
| 3603 const _tree = Symbol('_tree'); | 3653 const _tree = Symbol('_tree'); |
| 3604 const _currentNode = Symbol('_currentNode'); | 3654 const _currentNode = Symbol('_currentNode'); |
| 3605 const _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); | 3655 const _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); |
| 3606 const _getValue = Symbol('_getValue'); | 3656 const _getValue = Symbol('_getValue'); |
| 3607 const _rebuildWorkList = Symbol('_rebuildWorkList'); | 3657 const _rebuildWorkList = Symbol('_rebuildWorkList'); |
| 3608 const _SplayTreeIterator$ = dart.generic(function(T) { | 3658 const _SplayTreeIterator$ = dart.generic(function(T) { |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4022 let rest = this[_rest]; | 4072 let rest = this[_rest]; |
| 4023 if (rest == null) return false; | 4073 if (rest == null) return false; |
| 4024 let bucket = this[_getBucket](rest, key); | 4074 let bucket = this[_getBucket](rest, key); |
| 4025 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 4075 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 4026 } | 4076 } |
| 4027 containsValue(value) { | 4077 containsValue(value) { |
| 4028 return this[_computeKeys]()[dartx.any](dart.fn(each => dart.equals(this.
get(each), value), core.bool, [dart.dynamic])); | 4078 return this[_computeKeys]()[dartx.any](dart.fn(each => dart.equals(this.
get(each), value), core.bool, [dart.dynamic])); |
| 4029 } | 4079 } |
| 4030 addAll(other) { | 4080 addAll(other) { |
| 4031 dart.as(other, core.Map$(K, V)); | 4081 dart.as(other, core.Map$(K, V)); |
| 4032 other.forEach(dart.fn((key, value) => { | 4082 other[dartx.forEach](dart.fn((key, value) => { |
| 4033 dart.as(key, K); | 4083 dart.as(key, K); |
| 4034 dart.as(value, V); | 4084 dart.as(value, V); |
| 4035 this.set(key, value); | 4085 this.set(key, value); |
| 4036 }, dart.void, [K, V])); | 4086 }, dart.void, [K, V])); |
| 4037 } | 4087 } |
| 4038 get(key) { | 4088 get(key) { |
| 4039 if (dart.notNull(_HashMap$()._isStringKey(key))) { | 4089 if (dart.notNull(_HashMap$()._isStringKey(key))) { |
| 4040 let strings = this[_strings]; | 4090 let strings = this[_strings]; |
| 4041 return dart.as(strings == null ? null : _HashMap$()._getTableEntry(str
ings, key), V); | 4091 return dart.as(strings == null ? null : _HashMap$()._getTableEntry(str
ings, key), V); |
| 4042 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) { | 4092 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4272 _isStringKey: [core.bool, [dart.dynamic]], | 4322 _isStringKey: [core.bool, [dart.dynamic]], |
| 4273 _isNumericKey: [core.bool, [dart.dynamic]], | 4323 _isNumericKey: [core.bool, [dart.dynamic]], |
| 4274 _hasTableEntry: [core.bool, [dart.dynamic, dart.dynamic]], | 4324 _hasTableEntry: [core.bool, [dart.dynamic, dart.dynamic]], |
| 4275 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]], | 4325 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]], |
| 4276 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]], | 4326 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]], |
| 4277 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]], | 4327 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]], |
| 4278 _newHashTable: [dart.dynamic, []] | 4328 _newHashTable: [dart.dynamic, []] |
| 4279 }), | 4329 }), |
| 4280 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry
', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] | 4330 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry
', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] |
| 4281 }); | 4331 }); |
| 4332 dart.defineExtensionMembers(_HashMap, [ |
| 4333 'containsKey', |
| 4334 'containsValue', |
| 4335 'addAll', |
| 4336 'get', |
| 4337 'set', |
| 4338 'putIfAbsent', |
| 4339 'remove', |
| 4340 'clear', |
| 4341 'forEach', |
| 4342 'length', |
| 4343 'isEmpty', |
| 4344 'isNotEmpty', |
| 4345 'keys', |
| 4346 'values' |
| 4347 ]); |
| 4282 return _HashMap; | 4348 return _HashMap; |
| 4283 }); | 4349 }); |
| 4284 let _HashMap = _HashMap$(); | 4350 let _HashMap = _HashMap$(); |
| 4285 const _IdentityHashMap$ = dart.generic(function(K, V) { | 4351 const _IdentityHashMap$ = dart.generic(function(K, V) { |
| 4286 class _IdentityHashMap extends _HashMap$(K, V) { | 4352 class _IdentityHashMap extends _HashMap$(K, V) { |
| 4287 _IdentityHashMap() { | 4353 _IdentityHashMap() { |
| 4288 super._HashMap(); | 4354 super._HashMap(); |
| 4289 } | 4355 } |
| 4290 [_computeHashCode](key) { | 4356 [_computeHashCode](key) { |
| 4291 return core.identityHashCode(key) & 0x3ffffff; | 4357 return core.identityHashCode(key) & 0x3ffffff; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4346 } | 4412 } |
| 4347 } | 4413 } |
| 4348 dart.setSignature(_CustomHashMap, { | 4414 dart.setSignature(_CustomHashMap, { |
| 4349 constructors: () => ({_CustomHashMap: [_CustomHashMap$(K, V), [_Equality$(
K), _Hasher$(K), dart.functionType(core.bool, [core.Object])]]}), | 4415 constructors: () => ({_CustomHashMap: [_CustomHashMap$(K, V), [_Equality$(
K), _Hasher$(K), dart.functionType(core.bool, [core.Object])]]}), |
| 4350 methods: () => ({ | 4416 methods: () => ({ |
| 4351 get: [V, [core.Object]], | 4417 get: [V, [core.Object]], |
| 4352 set: [dart.void, [K, V]], | 4418 set: [dart.void, [K, V]], |
| 4353 remove: [V, [core.Object]] | 4419 remove: [V, [core.Object]] |
| 4354 }) | 4420 }) |
| 4355 }); | 4421 }); |
| 4422 dart.defineExtensionMembers(_CustomHashMap, ['get', 'set', 'containsKey', 'r
emove']); |
| 4356 return _CustomHashMap; | 4423 return _CustomHashMap; |
| 4357 }); | 4424 }); |
| 4358 let _CustomHashMap = _CustomHashMap$(); | 4425 let _CustomHashMap = _CustomHashMap$(); |
| 4359 const HashMapKeyIterable$ = dart.generic(function(E) { | 4426 const HashMapKeyIterable$ = dart.generic(function(E) { |
| 4360 class HashMapKeyIterable extends IterableBase$(E) { | 4427 class HashMapKeyIterable extends IterableBase$(E) { |
| 4361 HashMapKeyIterable(map) { | 4428 HashMapKeyIterable(map) { |
| 4362 this[_map] = map; | 4429 this[_map] = map; |
| 4363 super.IterableBase(); | 4430 super.IterableBase(); |
| 4364 } | 4431 } |
| 4365 get length() { | 4432 get length() { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4486 let rest = this[_rest]; | 4553 let rest = this[_rest]; |
| 4487 if (rest == null) return false; | 4554 if (rest == null) return false; |
| 4488 let bucket = this[_getBucket](rest, key); | 4555 let bucket = this[_getBucket](rest, key); |
| 4489 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 4556 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 4490 } | 4557 } |
| 4491 containsValue(value) { | 4558 containsValue(value) { |
| 4492 return this.keys[dartx.any](dart.fn(each => dart.equals(this.get(each),
value), core.bool, [K])); | 4559 return this.keys[dartx.any](dart.fn(each => dart.equals(this.get(each),
value), core.bool, [K])); |
| 4493 } | 4560 } |
| 4494 addAll(other) { | 4561 addAll(other) { |
| 4495 dart.as(other, core.Map$(K, V)); | 4562 dart.as(other, core.Map$(K, V)); |
| 4496 other.forEach(dart.fn((key, value) => { | 4563 other[dartx.forEach](dart.fn((key, value) => { |
| 4497 dart.as(key, K); | 4564 dart.as(key, K); |
| 4498 dart.as(value, V); | 4565 dart.as(value, V); |
| 4499 this.set(key, value); | 4566 this.set(key, value); |
| 4500 }, dart.void, [K, V])); | 4567 }, dart.void, [K, V])); |
| 4501 } | 4568 } |
| 4502 get(key) { | 4569 get(key) { |
| 4503 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) { | 4570 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) { |
| 4504 let strings = this[_strings]; | 4571 let strings = this[_strings]; |
| 4505 if (strings == null) return null; | 4572 if (strings == null) return null; |
| 4506 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); | 4573 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4732 statics: () => ({ | 4799 statics: () => ({ |
| 4733 _isStringKey: [core.bool, [dart.dynamic]], | 4800 _isStringKey: [core.bool, [dart.dynamic]], |
| 4734 _isNumericKey: [core.bool, [dart.dynamic]], | 4801 _isNumericKey: [core.bool, [dart.dynamic]], |
| 4735 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]], | 4802 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]], |
| 4736 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]], | 4803 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]], |
| 4737 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]], | 4804 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]], |
| 4738 _newHashTable: [dart.dynamic, []] | 4805 _newHashTable: [dart.dynamic, []] |
| 4739 }), | 4806 }), |
| 4740 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry
', '_deleteTableEntry', '_newHashTable'] | 4807 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry
', '_deleteTableEntry', '_newHashTable'] |
| 4741 }); | 4808 }); |
| 4809 dart.defineExtensionMembers(_LinkedHashMap, [ |
| 4810 'containsKey', |
| 4811 'containsValue', |
| 4812 'addAll', |
| 4813 'get', |
| 4814 'set', |
| 4815 'putIfAbsent', |
| 4816 'remove', |
| 4817 'clear', |
| 4818 'forEach', |
| 4819 'length', |
| 4820 'isEmpty', |
| 4821 'isNotEmpty', |
| 4822 'keys', |
| 4823 'values' |
| 4824 ]); |
| 4742 return _LinkedHashMap; | 4825 return _LinkedHashMap; |
| 4743 }); | 4826 }); |
| 4744 let _LinkedHashMap = _LinkedHashMap$(); | 4827 let _LinkedHashMap = _LinkedHashMap$(); |
| 4745 const _LinkedIdentityHashMap$ = dart.generic(function(K, V) { | 4828 const _LinkedIdentityHashMap$ = dart.generic(function(K, V) { |
| 4746 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { | 4829 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { |
| 4747 _LinkedIdentityHashMap() { | 4830 _LinkedIdentityHashMap() { |
| 4748 super._LinkedHashMap(); | 4831 super._LinkedHashMap(); |
| 4749 } | 4832 } |
| 4750 [_computeHashCode](key) { | 4833 [_computeHashCode](key) { |
| 4751 return core.identityHashCode(key) & 0x3ffffff; | 4834 return core.identityHashCode(key) & 0x3ffffff; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4803 } | 4886 } |
| 4804 } | 4887 } |
| 4805 dart.setSignature(_LinkedCustomHashMap, { | 4888 dart.setSignature(_LinkedCustomHashMap, { |
| 4806 constructors: () => ({_LinkedCustomHashMap: [_LinkedCustomHashMap$(K, V),
[_Equality$(K), _Hasher$(K), dart.functionType(core.bool, [core.Object])]]}), | 4889 constructors: () => ({_LinkedCustomHashMap: [_LinkedCustomHashMap$(K, V),
[_Equality$(K), _Hasher$(K), dart.functionType(core.bool, [core.Object])]]}), |
| 4807 methods: () => ({ | 4890 methods: () => ({ |
| 4808 get: [V, [core.Object]], | 4891 get: [V, [core.Object]], |
| 4809 set: [dart.void, [K, V]], | 4892 set: [dart.void, [K, V]], |
| 4810 remove: [V, [core.Object]] | 4893 remove: [V, [core.Object]] |
| 4811 }) | 4894 }) |
| 4812 }); | 4895 }); |
| 4896 dart.defineExtensionMembers(_LinkedCustomHashMap, ['get', 'set', 'containsKe
y', 'remove']); |
| 4813 return _LinkedCustomHashMap; | 4897 return _LinkedCustomHashMap; |
| 4814 }); | 4898 }); |
| 4815 let _LinkedCustomHashMap = _LinkedCustomHashMap$(); | 4899 let _LinkedCustomHashMap = _LinkedCustomHashMap$(); |
| 4816 class LinkedHashMapCell extends core.Object { | 4900 class LinkedHashMapCell extends core.Object { |
| 4817 LinkedHashMapCell(key, value) { | 4901 LinkedHashMapCell(key, value) { |
| 4818 this[_key] = key; | 4902 this[_key] = key; |
| 4819 this[_value] = value; | 4903 this[_value] = value; |
| 4820 this[_next] = null; | 4904 this[_next] = null; |
| 4821 this[_previous] = null; | 4905 this[_previous] = null; |
| 4822 } | 4906 } |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5779 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5863 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 5780 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5864 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 5781 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5865 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 5782 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5866 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 5783 exports.HashSetIterator$ = HashSetIterator$; | 5867 exports.HashSetIterator$ = HashSetIterator$; |
| 5784 exports.HashSetIterator = HashSetIterator; | 5868 exports.HashSetIterator = HashSetIterator; |
| 5785 exports.LinkedHashSetCell = LinkedHashSetCell; | 5869 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 5786 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5870 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 5787 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5871 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 5788 }); | 5872 }); |
| OLD | NEW |