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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 new: [HashMap$(K, V), [], {equals: dart.functionType(core.bool, [K, K]),
hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType(core.
bool, [core.Object])}], | 106 new: [HashMap$(K, V), [], {equals: dart.functionType(core.bool, [K, K]),
hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType(core.
bool, [core.Object])}], |
107 identity: [HashMap$(K, V), []], | 107 identity: [HashMap$(K, V), []], |
108 from: [HashMap$(K, V), [core.Map]], | 108 from: [HashMap$(K, V), [core.Map]], |
109 fromIterable: [HashMap$(K, V), [core.Iterable], {key: dart.functionType(
K, [dart.dynamic]), value: dart.functionType(V, [dart.dynamic])}], | 109 fromIterable: [HashMap$(K, V), [core.Iterable], {key: dart.functionType(
K, [dart.dynamic]), value: dart.functionType(V, [dart.dynamic])}], |
110 fromIterables: [HashMap$(K, V), [core.Iterable$(K), core.Iterable$(V)]] | 110 fromIterables: [HashMap$(K, V), [core.Iterable$(K), core.Iterable$(V)]] |
111 }) | 111 }) |
112 }); | 112 }); |
113 return HashMap; | 113 return HashMap; |
114 }); | 114 }); |
115 let HashMap = HashMap$(); | 115 let HashMap = HashMap$(); |
| 116 const _newSet = Symbol('_newSet'); |
116 const SetMixin$ = dart.generic(function(E) { | 117 const SetMixin$ = dart.generic(function(E) { |
117 class SetMixin extends core.Object { | 118 class SetMixin extends core.Object { |
118 [Symbol.iterator]() { | 119 [Symbol.iterator]() { |
119 return new dart.JsIterator(this.iterator); | 120 return new dart.JsIterator(this.iterator); |
120 } | 121 } |
121 get isEmpty() { | 122 get isEmpty() { |
122 return this.length == 0; | 123 return this.length == 0; |
123 } | 124 } |
124 get isNotEmpty() { | 125 get isNotEmpty() { |
125 return this.length != 0; | 126 return this.length != 0; |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 return IterableBase.iterableToFullString(set, '{', '}'); | 428 return IterableBase.iterableToFullString(set, '{', '}'); |
428 } | 429 } |
429 } | 430 } |
430 dart.setSignature(SetBase, { | 431 dart.setSignature(SetBase, { |
431 statics: () => ({setToString: [core.String, [core.Set]]}), | 432 statics: () => ({setToString: [core.String, [core.Set]]}), |
432 names: ['setToString'] | 433 names: ['setToString'] |
433 }); | 434 }); |
434 return SetBase; | 435 return SetBase; |
435 }); | 436 }); |
436 let SetBase = SetBase$(); | 437 let SetBase = SetBase$(); |
437 const _newSet = Symbol('_newSet'); | |
438 const _HashSetBase$ = dart.generic(function(E) { | 438 const _HashSetBase$ = dart.generic(function(E) { |
439 class _HashSetBase extends SetBase$(E) { | 439 class _HashSetBase extends SetBase$(E) { |
440 difference(other) { | 440 difference(other) { |
441 let result = this[_newSet](); | 441 let result = this[_newSet](); |
442 for (let element of this) { | 442 for (let element of this) { |
443 if (!dart.notNull(other.contains(element))) result.add(element); | 443 if (!dart.notNull(other.contains(element))) result.add(element); |
444 } | 444 } |
445 return result; | 445 return result; |
446 } | 446 } |
447 intersection(other) { | 447 intersection(other) { |
(...skipping 5427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5875 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5875 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
5876 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5876 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
5877 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5877 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
5878 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5878 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
5879 exports.HashSetIterator$ = HashSetIterator$; | 5879 exports.HashSetIterator$ = HashSetIterator$; |
5880 exports.HashSetIterator = HashSetIterator; | 5880 exports.HashSetIterator = HashSetIterator; |
5881 exports.LinkedHashSetCell = LinkedHashSetCell; | 5881 exports.LinkedHashSetCell = LinkedHashSetCell; |
5882 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5882 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
5883 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5883 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
5884 }); | 5884 }); |
OLD | NEW |