OLD | NEW |
1 var collection; | 1 var collection; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 let _source = Symbol('_source'); | 4 let _source = Symbol('_source'); |
5 let UnmodifiableListView$ = dart.generic(function(E) { | 5 let UnmodifiableListView$ = dart.generic(function(E) { |
6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { | 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { |
7 UnmodifiableListView(source) { | 7 UnmodifiableListView(source) { |
8 this[_source] = source; | 8 this[_source] = source; |
9 } | 9 } |
10 get [core.$length]() { | 10 get [core.$length]() { |
(...skipping 2841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2852 class _TypeTest extends core.Object { | 2852 class _TypeTest extends core.Object { |
2853 test(v) { | 2853 test(v) { |
2854 return dart.is(v, T); | 2854 return dart.is(v, T); |
2855 } | 2855 } |
2856 } | 2856 } |
2857 return _TypeTest; | 2857 return _TypeTest; |
2858 }); | 2858 }); |
2859 let _TypeTest = _TypeTest$(); | 2859 let _TypeTest = _TypeTest$(); |
2860 let _comparator = Symbol('_comparator'); | 2860 let _comparator = Symbol('_comparator'); |
2861 let _validKey = Symbol('_validKey'); | 2861 let _validKey = Symbol('_validKey'); |
2862 let _internal = Symbol('_internal'); | 2862 let _internal$ = Symbol('_internal'); |
2863 let SplayTreeMap$ = dart.generic(function(K, V) { | 2863 let SplayTreeMap$ = dart.generic(function(K, V) { |
2864 class SplayTreeMap extends _SplayTree$(K) { | 2864 class SplayTreeMap extends _SplayTree$(K) { |
2865 SplayTreeMap(compare, isValidKey) { | 2865 SplayTreeMap(compare, isValidKey) { |
2866 if (compare === void 0) | 2866 if (compare === void 0) |
2867 compare = null; | 2867 compare = null; |
2868 if (isValidKey === void 0) | 2868 if (isValidKey === void 0) |
2869 isValidKey = null; | 2869 isValidKey = null; |
2870 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(K)); | 2870 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(K)); |
2871 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, K), _Predicate); | 2871 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, K), _Predicate); |
2872 super._SplayTree(); | 2872 super._SplayTree(); |
(...skipping 23 matching lines...) Expand all Loading... |
2896 compare = null; | 2896 compare = null; |
2897 if (isValidKey === void 0) | 2897 if (isValidKey === void 0) |
2898 isValidKey = null; | 2898 isValidKey = null; |
2899 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); | 2899 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); |
2900 Maps[_fillMapWithIterables](map, keys, values); | 2900 Maps[_fillMapWithIterables](map, keys, values); |
2901 return map; | 2901 return map; |
2902 } | 2902 } |
2903 [_compare](key1, key2) { | 2903 [_compare](key1, key2) { |
2904 return this[_comparator](key1, key2); | 2904 return this[_comparator](key1, key2); |
2905 } | 2905 } |
2906 [_internal]() { | 2906 [_internal$]() { |
2907 this[_comparator] = null; | 2907 this[_comparator] = null; |
2908 this[_validKey] = null; | 2908 this[_validKey] = null; |
2909 super._SplayTree(); | 2909 super._SplayTree(); |
2910 } | 2910 } |
2911 get(key) { | 2911 get(key) { |
2912 if (key == null) | 2912 if (key == null) |
2913 throw new core.ArgumentError(key); | 2913 throw new core.ArgumentError(key); |
2914 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 2914 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
2915 return null; | 2915 return null; |
2916 if (this[_root] != null) { | 2916 if (this[_root] != null) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3057 while (node.left != null) { | 3057 while (node.left != null) { |
3058 node = node.left; | 3058 node = node.left; |
3059 } | 3059 } |
3060 return node.key; | 3060 return node.key; |
3061 } | 3061 } |
3062 } | 3062 } |
3063 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)]; | 3063 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)]; |
3064 dart.defineNamedConstructor(SplayTreeMap, 'from'); | 3064 dart.defineNamedConstructor(SplayTreeMap, 'from'); |
3065 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); | 3065 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); |
3066 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); | 3066 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); |
3067 dart.defineNamedConstructor(SplayTreeMap, _internal); | 3067 dart.defineNamedConstructor(SplayTreeMap, _internal$); |
3068 return SplayTreeMap; | 3068 return SplayTreeMap; |
3069 }); | 3069 }); |
3070 let SplayTreeMap = SplayTreeMap$(); | 3070 let SplayTreeMap = SplayTreeMap$(); |
3071 let _workList = Symbol('_workList'); | 3071 let _workList = Symbol('_workList'); |
3072 let _tree = Symbol('_tree'); | 3072 let _tree = Symbol('_tree'); |
3073 let _currentNode = Symbol('_currentNode'); | 3073 let _currentNode = Symbol('_currentNode'); |
3074 let _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); | 3074 let _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); |
3075 let _getValue = Symbol('_getValue'); | 3075 let _getValue = Symbol('_getValue'); |
3076 let _rebuildWorkList = Symbol('_rebuildWorkList'); | 3076 let _rebuildWorkList = Symbol('_rebuildWorkList'); |
3077 let _SplayTreeIterator$ = dart.generic(function(T) { | 3077 let _SplayTreeIterator$ = dart.generic(function(T) { |
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
5011 exports.HashSetIterator$ = HashSetIterator$; | 5011 exports.HashSetIterator$ = HashSetIterator$; |
5012 exports.HashSetIterator = HashSetIterator; | 5012 exports.HashSetIterator = HashSetIterator; |
5013 exports.LinkedHashSetCell = LinkedHashSetCell; | 5013 exports.LinkedHashSetCell = LinkedHashSetCell; |
5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
5015 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5015 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
5016 })(collection || (collection = {})); | 5016 })(collection || (collection = {})); |
OLD | NEW |