| OLD | NEW |
| 1 dart_library.library('collection/wrappers', null, /* Imports */[ | 1 dart_library.library('collection/wrappers', null, /* Imports */[ |
| 2 "dart/_runtime", | 2 "dart/_runtime", |
| 3 'collection/src/canonicalized_map', | 3 'collection/src/canonicalized_map', |
| 4 'dart/core', | 4 'dart/core', |
| 5 'dart/math', | 5 'dart/math', |
| 6 'dart/collection' | 6 'dart/collection' |
| 7 ], /* Lazy imports */[ | 7 ], /* Lazy imports */[ |
| 8 'collection/src/unmodifiable_wrappers' | 8 'collection/src/unmodifiable_wrappers' |
| 9 ], function(exports, dart, canonicalized_map, core, math, collection, unmodifiab
le_wrappers) { | 9 ], function(exports, dart, canonicalized_map, core, math, collection, unmodifiab
le_wrappers) { |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 dart.as(test, dart.functionType(core.bool, [E])); | 30 dart.as(test, dart.functionType(core.bool, [E])); |
| 31 return this[_base][dartx.every](test); | 31 return this[_base][dartx.every](test); |
| 32 } | 32 } |
| 33 expand(f) { | 33 expand(f) { |
| 34 dart.as(f, dart.functionType(core.Iterable, [E])); | 34 dart.as(f, dart.functionType(core.Iterable, [E])); |
| 35 return this[_base][dartx.expand](f); | 35 return this[_base][dartx.expand](f); |
| 36 } | 36 } |
| 37 get first() { | 37 get first() { |
| 38 return this[_base][dartx.first]; | 38 return this[_base][dartx.first]; |
| 39 } | 39 } |
| 40 firstWhere(test, {orElse = null} = {}) { | 40 firstWhere(test, opts) { |
| 41 dart.as(test, dart.functionType(core.bool, [E])); | 41 dart.as(test, dart.functionType(core.bool, [E])); |
| 42 let orElse = opts && 'orElse' in opts ? opts.orElse : null; |
| 42 dart.as(orElse, dart.functionType(E, [])); | 43 dart.as(orElse, dart.functionType(E, [])); |
| 43 return this[_base][dartx.firstWhere](test, {orElse: orElse}); | 44 return this[_base][dartx.firstWhere](test, {orElse: orElse}); |
| 44 } | 45 } |
| 45 fold(initialValue, combine) { | 46 fold(initialValue, combine) { |
| 46 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); | 47 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); |
| 47 return this[_base][dartx.fold](initialValue, combine); | 48 return this[_base][dartx.fold](initialValue, combine); |
| 48 } | 49 } |
| 49 forEach(f) { | 50 forEach(f) { |
| 50 dart.as(f, dart.functionType(dart.void, [E])); | 51 dart.as(f, dart.functionType(dart.void, [E])); |
| 51 return this[_base][dartx.forEach](f); | 52 return this[_base][dartx.forEach](f); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 63 return new dart.JsIterator(this.iterator); | 64 return new dart.JsIterator(this.iterator); |
| 64 } | 65 } |
| 65 join(separator) { | 66 join(separator) { |
| 66 if (separator === void 0) | 67 if (separator === void 0) |
| 67 separator = ""; | 68 separator = ""; |
| 68 return this[_base][dartx.join](separator); | 69 return this[_base][dartx.join](separator); |
| 69 } | 70 } |
| 70 get last() { | 71 get last() { |
| 71 return this[_base][dartx.last]; | 72 return this[_base][dartx.last]; |
| 72 } | 73 } |
| 73 lastWhere(test, {orElse = null} = {}) { | 74 lastWhere(test, opts) { |
| 74 dart.as(test, dart.functionType(core.bool, [E])); | 75 dart.as(test, dart.functionType(core.bool, [E])); |
| 76 let orElse = opts && 'orElse' in opts ? opts.orElse : null; |
| 75 dart.as(orElse, dart.functionType(E, [])); | 77 dart.as(orElse, dart.functionType(E, [])); |
| 76 return this[_base][dartx.lastWhere](test, {orElse: orElse}); | 78 return this[_base][dartx.lastWhere](test, {orElse: orElse}); |
| 77 } | 79 } |
| 78 get length() { | 80 get length() { |
| 79 return this[_base][dartx.length]; | 81 return this[_base][dartx.length]; |
| 80 } | 82 } |
| 81 map(f) { | 83 map(f) { |
| 82 dart.as(f, dart.functionType(dart.dynamic, [E])); | 84 dart.as(f, dart.functionType(dart.dynamic, [E])); |
| 83 return this[_base][dartx.map](f); | 85 return this[_base][dartx.map](f); |
| 84 } | 86 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 100 dart.as(test, dart.functionType(core.bool, [E])); | 102 dart.as(test, dart.functionType(core.bool, [E])); |
| 101 return this[_base][dartx.skipWhile](test); | 103 return this[_base][dartx.skipWhile](test); |
| 102 } | 104 } |
| 103 take(n) { | 105 take(n) { |
| 104 return this[_base][dartx.take](n); | 106 return this[_base][dartx.take](n); |
| 105 } | 107 } |
| 106 takeWhile(test) { | 108 takeWhile(test) { |
| 107 dart.as(test, dart.functionType(core.bool, [E])); | 109 dart.as(test, dart.functionType(core.bool, [E])); |
| 108 return this[_base][dartx.takeWhile](test); | 110 return this[_base][dartx.takeWhile](test); |
| 109 } | 111 } |
| 110 toList({growable = true} = {}) { | 112 toList(opts) { |
| 113 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 111 return this[_base][dartx.toList]({growable: growable}); | 114 return this[_base][dartx.toList]({growable: growable}); |
| 112 } | 115 } |
| 113 toSet() { | 116 toSet() { |
| 114 return this[_base][dartx.toSet](); | 117 return this[_base][dartx.toSet](); |
| 115 } | 118 } |
| 116 where(test) { | 119 where(test) { |
| 117 dart.as(test, dart.functionType(core.bool, [E])); | 120 dart.as(test, dart.functionType(core.bool, [E])); |
| 118 return this[_base][dartx.where](test); | 121 return this[_base][dartx.where](test); |
| 119 } | 122 } |
| 120 toString() { | 123 toString() { |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 exports.DelegatingSet$ = DelegatingSet$; | 816 exports.DelegatingSet$ = DelegatingSet$; |
| 814 exports.DelegatingSet = DelegatingSet; | 817 exports.DelegatingSet = DelegatingSet; |
| 815 exports.DelegatingQueue$ = DelegatingQueue$; | 818 exports.DelegatingQueue$ = DelegatingQueue$; |
| 816 exports.DelegatingQueue = DelegatingQueue; | 819 exports.DelegatingQueue = DelegatingQueue; |
| 817 exports.DelegatingMap$ = DelegatingMap$; | 820 exports.DelegatingMap$ = DelegatingMap$; |
| 818 exports.DelegatingMap = DelegatingMap; | 821 exports.DelegatingMap = DelegatingMap; |
| 819 exports.MapKeySet$ = MapKeySet$; | 822 exports.MapKeySet$ = MapKeySet$; |
| 820 exports.MapValueSet$ = MapValueSet$; | 823 exports.MapValueSet$ = MapValueSet$; |
| 821 exports.MapValueSet = MapValueSet; | 824 exports.MapValueSet = MapValueSet; |
| 822 }); | 825 }); |
| OLD | NEW |