Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: lib/runtime/dart/collection.js

Issue 1042943003: fixes private named constructors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 super.UnmodifiableListBase(); 9 super.UnmodifiableListBase();
10 } 10 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } else { 49 } else {
50 if (hashCode === null) { 50 if (hashCode === null) {
51 hashCode = dart.closureWrap(_defaultHashCode, "(K) → int"); 51 hashCode = dart.closureWrap(_defaultHashCode, "(K) → int");
52 } 52 }
53 if (equals === null) { 53 if (equals === null) {
54 equals = dart.closureWrap(_defaultEquals, "(K, K) → bool"); 54 equals = dart.closureWrap(_defaultEquals, "(K, K) → bool");
55 } 55 }
56 } 56 }
57 return new _CustomHashMap(equals, hashCode, isValidKey); 57 return new _CustomHashMap(equals, hashCode, isValidKey);
58 } 58 }
59 HashMap$identity() { 59 identity() {
60 return new _IdentityHashMap(); 60 return new _IdentityHashMap();
61 } 61 }
62 HashMap$from(other) { 62 from(other) {
63 let result = new HashMap(); 63 let result = new HashMap();
64 other.forEach((k, v) => { 64 other.forEach((k, v) => {
65 result.set(k, dart.as(v, V)); 65 result.set(k, dart.as(v, V));
66 }); 66 });
67 return result; 67 return result;
68 } 68 }
69 HashMap$fromIterable(iterable, opts) { 69 fromIterable(iterable, opts) {
70 let key = opts && 'key' in opts ? opts.key : null; 70 let key = opts && 'key' in opts ? opts.key : null;
71 let value = opts && 'value' in opts ? opts.value : null; 71 let value = opts && 'value' in opts ? opts.value : null;
72 let map = new HashMap(); 72 let map = new HashMap();
73 Maps._fillMapWithMappedIterable(map, iterable, key, value); 73 Maps._fillMapWithMappedIterable(map, iterable, key, value);
74 return map; 74 return map;
75 } 75 }
76 HashMap$fromIterables(keys, values) { 76 fromIterables(keys, values) {
77 let map = new HashMap(); 77 let map = new HashMap();
78 Maps._fillMapWithIterables(map, keys, values); 78 Maps._fillMapWithIterables(map, keys, values);
79 return map; 79 return map;
80 } 80 }
81 } 81 }
82 dart.defineNamedConstructor(HashMap, 'identity'); 82 dart.defineNamedConstructor(HashMap, 'identity');
83 dart.defineNamedConstructor(HashMap, 'from'); 83 dart.defineNamedConstructor(HashMap, 'from');
84 dart.defineNamedConstructor(HashMap, 'fromIterable'); 84 dart.defineNamedConstructor(HashMap, 'fromIterable');
85 dart.defineNamedConstructor(HashMap, 'fromIterables'); 85 dart.defineNamedConstructor(HashMap, 'fromIterables');
86 return HashMap; 86 return HashMap;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 } else { 393 } else {
394 if (hashCode === null) { 394 if (hashCode === null) {
395 hashCode = dart.closureWrap(_defaultHashCode, "(E) → int"); 395 hashCode = dart.closureWrap(_defaultHashCode, "(E) → int");
396 } 396 }
397 if (equals === null) { 397 if (equals === null) {
398 equals = dart.closureWrap(_defaultEquals, "(E, E) → bool"); 398 equals = dart.closureWrap(_defaultEquals, "(E, E) → bool");
399 } 399 }
400 } 400 }
401 return new _CustomHashSet(equals, hashCode, isValidKey); 401 return new _CustomHashSet(equals, hashCode, isValidKey);
402 } 402 }
403 HashSet$identity() { 403 identity() {
404 return new _IdentityHashSet(); 404 return new _IdentityHashSet();
405 } 405 }
406 HashSet$from(elements) { 406 from(elements) {
407 let result = new HashSet(); 407 let result = new HashSet();
408 for (let e of elements) 408 for (let e of elements)
409 result.add(e); 409 result.add(e);
410 return result; 410 return result;
411 } 411 }
412 } 412 }
413 dart.defineNamedConstructor(HashSet, 'identity'); 413 dart.defineNamedConstructor(HashSet, 'identity');
414 dart.defineNamedConstructor(HashSet, 'from'); 414 dart.defineNamedConstructor(HashSet, 'from');
415 return HashSet; 415 return HashSet;
416 }); 416 });
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 } else { 1008 } else {
1009 if (hashCode === null) { 1009 if (hashCode === null) {
1010 hashCode = dart.closureWrap(_defaultHashCode, "(K) → int"); 1010 hashCode = dart.closureWrap(_defaultHashCode, "(K) → int");
1011 } 1011 }
1012 if (equals === null) { 1012 if (equals === null) {
1013 equals = dart.closureWrap(_defaultEquals, "(K, K) → bool"); 1013 equals = dart.closureWrap(_defaultEquals, "(K, K) → bool");
1014 } 1014 }
1015 } 1015 }
1016 return new _LinkedCustomHashMap(equals, hashCode, isValidKey); 1016 return new _LinkedCustomHashMap(equals, hashCode, isValidKey);
1017 } 1017 }
1018 LinkedHashMap$identity() { 1018 identity() {
1019 return new _LinkedIdentityHashMap(); 1019 return new _LinkedIdentityHashMap();
1020 } 1020 }
1021 LinkedHashMap$from(other) { 1021 from(other) {
1022 let result = new LinkedHashMap(); 1022 let result = new LinkedHashMap();
1023 other.forEach((k, v) => { 1023 other.forEach((k, v) => {
1024 result.set(k, dart.as(v, V)); 1024 result.set(k, dart.as(v, V));
1025 }); 1025 });
1026 return result; 1026 return result;
1027 } 1027 }
1028 LinkedHashMap$fromIterable(iterable, opts) { 1028 fromIterable(iterable, opts) {
1029 let key = opts && 'key' in opts ? opts.key : null; 1029 let key = opts && 'key' in opts ? opts.key : null;
1030 let value = opts && 'value' in opts ? opts.value : null; 1030 let value = opts && 'value' in opts ? opts.value : null;
1031 let map = new LinkedHashMap(); 1031 let map = new LinkedHashMap();
1032 Maps._fillMapWithMappedIterable(map, iterable, key, value); 1032 Maps._fillMapWithMappedIterable(map, iterable, key, value);
1033 return map; 1033 return map;
1034 } 1034 }
1035 LinkedHashMap$fromIterables(keys, values) { 1035 fromIterables(keys, values) {
1036 let map = new LinkedHashMap(); 1036 let map = new LinkedHashMap();
1037 Maps._fillMapWithIterables(map, keys, values); 1037 Maps._fillMapWithIterables(map, keys, values);
1038 return map; 1038 return map;
1039 } 1039 }
1040 LinkedHashMap$_literal(keyValuePairs) { 1040 [_literal](keyValuePairs) {
1041 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new _LinkedHashM ap()), LinkedHashMap$(K, V)); 1041 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new _LinkedHashM ap()), LinkedHashMap$(K, V));
1042 } 1042 }
1043 LinkedHashMap$_empty() { 1043 [_empty]() {
1044 return new _LinkedHashMap(); 1044 return new _LinkedHashMap();
1045 } 1045 }
1046 } 1046 }
1047 dart.defineNamedConstructor(LinkedHashMap, 'identity'); 1047 dart.defineNamedConstructor(LinkedHashMap, 'identity');
1048 dart.defineNamedConstructor(LinkedHashMap, 'from'); 1048 dart.defineNamedConstructor(LinkedHashMap, 'from');
1049 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); 1049 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable');
1050 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); 1050 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables');
1051 dart.defineNamedConstructor(LinkedHashMap, _literal); 1051 dart.defineNamedConstructor(LinkedHashMap, _literal);
1052 dart.defineNamedConstructor(LinkedHashMap, _empty); 1052 dart.defineNamedConstructor(LinkedHashMap, _empty);
1053 return LinkedHashMap; 1053 return LinkedHashMap;
(...skipping 22 matching lines...) Expand all
1076 } else { 1076 } else {
1077 if (hashCode === null) { 1077 if (hashCode === null) {
1078 hashCode = dart.closureWrap(_defaultHashCode, "(E) → int"); 1078 hashCode = dart.closureWrap(_defaultHashCode, "(E) → int");
1079 } 1079 }
1080 if (equals === null) { 1080 if (equals === null) {
1081 equals = dart.closureWrap(_defaultEquals, "(E, E) → bool"); 1081 equals = dart.closureWrap(_defaultEquals, "(E, E) → bool");
1082 } 1082 }
1083 } 1083 }
1084 return new _LinkedCustomHashSet(equals, hashCode, isValidKey); 1084 return new _LinkedCustomHashSet(equals, hashCode, isValidKey);
1085 } 1085 }
1086 LinkedHashSet$identity() { 1086 identity() {
1087 return new _LinkedIdentityHashSet(); 1087 return new _LinkedIdentityHashSet();
1088 } 1088 }
1089 LinkedHashSet$from(elements) { 1089 from(elements) {
1090 let result = new LinkedHashSet(); 1090 let result = new LinkedHashSet();
1091 for (let element of elements) { 1091 for (let element of elements) {
1092 result.add(element); 1092 result.add(element);
1093 } 1093 }
1094 return result; 1094 return result;
1095 } 1095 }
1096 } 1096 }
1097 dart.defineNamedConstructor(LinkedHashSet, 'identity'); 1097 dart.defineNamedConstructor(LinkedHashSet, 'identity');
1098 dart.defineNamedConstructor(LinkedHashSet, 'from'); 1098 dart.defineNamedConstructor(LinkedHashSet, 'from');
1099 return LinkedHashSet; 1099 return LinkedHashSet;
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { 2031 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) {
2032 throw new core.ArgumentError("Iterables do not have same length."); 2032 throw new core.ArgumentError("Iterables do not have same length.");
2033 } 2033 }
2034 } 2034 }
2035 } 2035 }
2036 let Queue$ = dart.generic(function(E) { 2036 let Queue$ = dart.generic(function(E) {
2037 class Queue extends core.Object { 2037 class Queue extends core.Object {
2038 Queue() { 2038 Queue() {
2039 return new ListQueue(); 2039 return new ListQueue();
2040 } 2040 }
2041 Queue$from(elements) { 2041 from(elements) {
2042 return new ListQueue.from(elements); 2042 return new ListQueue.from(elements);
2043 } 2043 }
2044 } 2044 }
2045 dart.defineNamedConstructor(Queue, 'from'); 2045 dart.defineNamedConstructor(Queue, 'from');
2046 return Queue; 2046 return Queue;
2047 }); 2047 });
2048 let Queue = Queue$(dart.dynamic); 2048 let Queue = Queue$(dart.dynamic);
2049 let _element = Symbol('_element'); 2049 let _element = Symbol('_element');
2050 let _link = Symbol('_link'); 2050 let _link = Symbol('_link');
2051 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry'); 2051 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry');
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 let _sentinel = Symbol('_sentinel'); 2119 let _sentinel = Symbol('_sentinel');
2120 let _elementCount = Symbol('_elementCount'); 2120 let _elementCount = Symbol('_elementCount');
2121 let DoubleLinkedQueue$ = dart.generic(function(E) { 2121 let DoubleLinkedQueue$ = dart.generic(function(E) {
2122 class DoubleLinkedQueue extends IterableBase$(E) { 2122 class DoubleLinkedQueue extends IterableBase$(E) {
2123 DoubleLinkedQueue() { 2123 DoubleLinkedQueue() {
2124 this[_sentinel] = null; 2124 this[_sentinel] = null;
2125 this[_elementCount] = 0; 2125 this[_elementCount] = 0;
2126 super.IterableBase(); 2126 super.IterableBase();
2127 this[_sentinel] = new _DoubleLinkedQueueEntrySentinel(); 2127 this[_sentinel] = new _DoubleLinkedQueueEntrySentinel();
2128 } 2128 }
2129 DoubleLinkedQueue$from(elements) { 2129 from(elements) {
2130 let list = dart.as(new DoubleLinkedQueue(), Queue$(E)); 2130 let list = dart.as(new DoubleLinkedQueue(), Queue$(E));
2131 for (let e of elements) { 2131 for (let e of elements) {
2132 list.addLast(e); 2132 list.addLast(e);
2133 } 2133 }
2134 return dart.as(list, DoubleLinkedQueue$(E)); 2134 return dart.as(list, DoubleLinkedQueue$(E));
2135 } 2135 }
2136 get length() { 2136 get length() {
2137 return this[_elementCount]; 2137 return this[_elementCount];
2138 } 2138 }
2139 addLast(value) { 2139 addLast(value) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 this[_modificationCount] = 0; 2287 this[_modificationCount] = 0;
2288 super.IterableBase(); 2288 super.IterableBase();
2289 if (initialCapacity === null || dart.notNull(initialCapacity) < dart.not Null(ListQueue[_INITIAL_CAPACITY])) { 2289 if (initialCapacity === null || dart.notNull(initialCapacity) < dart.not Null(ListQueue[_INITIAL_CAPACITY])) {
2290 initialCapacity = ListQueue[_INITIAL_CAPACITY]; 2290 initialCapacity = ListQueue[_INITIAL_CAPACITY];
2291 } else if (!dart.notNull(ListQueue[_isPowerOf2](initialCapacity))) { 2291 } else if (!dart.notNull(ListQueue[_isPowerOf2](initialCapacity))) {
2292 initialCapacity = ListQueue[_nextPowerOf2](initialCapacity); 2292 initialCapacity = ListQueue[_nextPowerOf2](initialCapacity);
2293 } 2293 }
2294 dart.assert(ListQueue[_isPowerOf2](initialCapacity)); 2294 dart.assert(ListQueue[_isPowerOf2](initialCapacity));
2295 this[_table] = new core.List(initialCapacity); 2295 this[_table] = new core.List(initialCapacity);
2296 } 2296 }
2297 ListQueue$from(elements) { 2297 from(elements) {
2298 if (dart.is(elements, core.List)) { 2298 if (dart.is(elements, core.List)) {
2299 let length = elements.length; 2299 let length = elements.length;
2300 let queue = dart.as(new ListQueue(dart.notNull(length) + 1), ListQueue $(E)); 2300 let queue = dart.as(new ListQueue(dart.notNull(length) + 1), ListQueue $(E));
2301 dart.assert(dart.notNull(queue[_table].length) > dart.notNull(length)) ; 2301 dart.assert(dart.notNull(queue[_table].length) > dart.notNull(length)) ;
2302 let sourceList = elements; 2302 let sourceList = elements;
2303 queue[_table].setRange(0, length, dart.as(sourceList, core.Iterable$(E )), 0); 2303 queue[_table].setRange(0, length, dart.as(sourceList, core.Iterable$(E )), 0);
2304 queue[_tail] = length; 2304 queue[_tail] = length;
2305 return queue; 2305 return queue;
2306 } else { 2306 } else {
2307 let capacity = ListQueue[_INITIAL_CAPACITY]; 2307 let capacity = ListQueue[_INITIAL_CAPACITY];
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 class SplayTreeMap extends _SplayTree$(K) { 2774 class SplayTreeMap extends _SplayTree$(K) {
2775 SplayTreeMap(compare, isValidKey) { 2775 SplayTreeMap(compare, isValidKey) {
2776 if (compare === void 0) 2776 if (compare === void 0)
2777 compare = null; 2777 compare = null;
2778 if (isValidKey === void 0) 2778 if (isValidKey === void 0)
2779 isValidKey = null; 2779 isValidKey = null;
2780 this[_comparator] = dart.as(compare === null ? core.Comparable.compare : compare, core.Comparator); 2780 this[_comparator] = dart.as(compare === null ? core.Comparable.compare : compare, core.Comparator);
2781 this[_validKey] = dart.as(isValidKey !== null ? isValidKey : (v) => dart .is(v, K), _Predicate); 2781 this[_validKey] = dart.as(isValidKey !== null ? isValidKey : (v) => dart .is(v, K), _Predicate);
2782 super._SplayTree(); 2782 super._SplayTree();
2783 } 2783 }
2784 SplayTreeMap$from(other, compare, isValidKey) { 2784 from(other, compare, isValidKey) {
2785 if (compare === void 0) 2785 if (compare === void 0)
2786 compare = null; 2786 compare = null;
2787 if (isValidKey === void 0) 2787 if (isValidKey === void 0)
2788 isValidKey = null; 2788 isValidKey = null;
2789 let result = new SplayTreeMap(); 2789 let result = new SplayTreeMap();
2790 other.forEach((k, v) => { 2790 other.forEach((k, v) => {
2791 result.set(k, dart.as(v, V)); 2791 result.set(k, dart.as(v, V));
2792 }); 2792 });
2793 return result; 2793 return result;
2794 } 2794 }
2795 SplayTreeMap$fromIterable(iterable, opts) { 2795 fromIterable(iterable, opts) {
2796 let key = opts && 'key' in opts ? opts.key : null; 2796 let key = opts && 'key' in opts ? opts.key : null;
2797 let value = opts && 'value' in opts ? opts.value : null; 2797 let value = opts && 'value' in opts ? opts.value : null;
2798 let compare = opts && 'compare' in opts ? opts.compare : null; 2798 let compare = opts && 'compare' in opts ? opts.compare : null;
2799 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; 2799 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
2800 let map = new SplayTreeMap(compare, isValidKey); 2800 let map = new SplayTreeMap(compare, isValidKey);
2801 Maps._fillMapWithMappedIterable(map, iterable, key, value); 2801 Maps._fillMapWithMappedIterable(map, iterable, key, value);
2802 return map; 2802 return map;
2803 } 2803 }
2804 SplayTreeMap$fromIterables(keys, values, compare, isValidKey) { 2804 fromIterables(keys, values, compare, isValidKey) {
2805 if (compare === void 0) 2805 if (compare === void 0)
2806 compare = null; 2806 compare = null;
2807 if (isValidKey === void 0) 2807 if (isValidKey === void 0)
2808 isValidKey = null; 2808 isValidKey = null;
2809 let map = new SplayTreeMap(compare, isValidKey); 2809 let map = new SplayTreeMap(compare, isValidKey);
2810 Maps._fillMapWithIterables(map, keys, values); 2810 Maps._fillMapWithIterables(map, keys, values);
2811 return map; 2811 return map;
2812 } 2812 }
2813 [_compare](key1, key2) { 2813 [_compare](key1, key2) {
2814 return this[_comparator](key1, key2); 2814 return this[_comparator](key1, key2);
2815 } 2815 }
2816 SplayTreeMap$_internal() { 2816 [_internal$]() {
2817 this[_comparator] = null; 2817 this[_comparator] = null;
2818 this[_validKey] = null; 2818 this[_validKey] = null;
2819 super._SplayTree(); 2819 super._SplayTree();
2820 } 2820 }
2821 get(key) { 2821 get(key) {
2822 if (key === null) 2822 if (key === null)
2823 throw new core.ArgumentError(key); 2823 throw new core.ArgumentError(key);
2824 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) 2824 if (!dart.notNull(dart.dinvokef(this[_validKey], key)))
2825 return null; 2825 return null;
2826 if (this[_root] !== null) { 2826 if (this[_root] !== null) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2986 let _SplayTreeIterator$ = dart.generic(function(T) { 2986 let _SplayTreeIterator$ = dart.generic(function(T) {
2987 class _SplayTreeIterator extends core.Object { 2987 class _SplayTreeIterator extends core.Object {
2988 _SplayTreeIterator(tree) { 2988 _SplayTreeIterator(tree) {
2989 this[_workList] = new core.List$(_SplayTreeNode).from([]); 2989 this[_workList] = new core.List$(_SplayTreeNode).from([]);
2990 this[_tree] = tree; 2990 this[_tree] = tree;
2991 this[_modificationCount] = tree[_modificationCount]; 2991 this[_modificationCount] = tree[_modificationCount];
2992 this[_splayCount] = tree[_splayCount]; 2992 this[_splayCount] = tree[_splayCount];
2993 this[_currentNode] = null; 2993 this[_currentNode] = null;
2994 this[_findLeftMostDescendent](tree[_root]); 2994 this[_findLeftMostDescendent](tree[_root]);
2995 } 2995 }
2996 _SplayTreeIterator$startAt(tree, startKey) { 2996 startAt(tree, startKey) {
2997 this[_workList] = new core.List$(_SplayTreeNode).from([]); 2997 this[_workList] = new core.List$(_SplayTreeNode).from([]);
2998 this[_tree] = tree; 2998 this[_tree] = tree;
2999 this[_modificationCount] = tree[_modificationCount]; 2999 this[_modificationCount] = tree[_modificationCount];
3000 this[_splayCount] = null; 3000 this[_splayCount] = null;
3001 this[_currentNode] = null; 3001 this[_currentNode] = null;
3002 if (tree[_root] === null) 3002 if (tree[_root] === null)
3003 return; 3003 return;
3004 let compare = tree._splay(startKey); 3004 let compare = tree._splay(startKey);
3005 this[_splayCount] = tree[_splayCount]; 3005 this[_splayCount] = tree[_splayCount];
3006 if (dart.notNull(compare) < 0) { 3006 if (dart.notNull(compare) < 0) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3118 } 3118 }
3119 } 3119 }
3120 return _SplayTreeValueIterator; 3120 return _SplayTreeValueIterator;
3121 }); 3121 });
3122 let _SplayTreeValueIterator = _SplayTreeValueIterator$(dart.dynamic, dart.dyna mic); 3122 let _SplayTreeValueIterator = _SplayTreeValueIterator$(dart.dynamic, dart.dyna mic);
3123 let _SplayTreeNodeIterator$ = dart.generic(function(K) { 3123 let _SplayTreeNodeIterator$ = dart.generic(function(K) {
3124 class _SplayTreeNodeIterator extends _SplayTreeIterator$(_SplayTreeNode$(K)) { 3124 class _SplayTreeNodeIterator extends _SplayTreeIterator$(_SplayTreeNode$(K)) {
3125 _SplayTreeNodeIterator(tree) { 3125 _SplayTreeNodeIterator(tree) {
3126 super._SplayTreeIterator(tree); 3126 super._SplayTreeIterator(tree);
3127 } 3127 }
3128 _SplayTreeNodeIterator$startAt(tree, startKey) { 3128 startAt(tree, startKey) {
3129 super._SplayTreeIterator$startAt(tree, startKey); 3129 super.startAt(tree, startKey);
3130 } 3130 }
3131 [_getValue](node) { 3131 [_getValue](node) {
3132 return dart.as(node, _SplayTreeNode$(K)); 3132 return dart.as(node, _SplayTreeNode$(K));
3133 } 3133 }
3134 } 3134 }
3135 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt'); 3135 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt');
3136 return _SplayTreeNodeIterator; 3136 return _SplayTreeNodeIterator;
3137 }); 3137 });
3138 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(dart.dynamic); 3138 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(dart.dynamic);
3139 let _clone = Symbol('_clone'); 3139 let _clone = Symbol('_clone');
3140 let _copyNode = Symbol('_copyNode'); 3140 let _copyNode = Symbol('_copyNode');
3141 let SplayTreeSet$ = dart.generic(function(E) { 3141 let SplayTreeSet$ = dart.generic(function(E) {
3142 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set Mixin$(E)) { 3142 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set Mixin$(E)) {
3143 SplayTreeSet(compare, isValidKey) { 3143 SplayTreeSet(compare, isValidKey) {
3144 if (compare === void 0) 3144 if (compare === void 0)
3145 compare = null; 3145 compare = null;
3146 if (isValidKey === void 0) 3146 if (isValidKey === void 0)
3147 isValidKey = null; 3147 isValidKey = null;
3148 this[_comparator] = dart.as(compare === null ? core.Comparable.compare : compare, core.Comparator); 3148 this[_comparator] = dart.as(compare === null ? core.Comparable.compare : compare, core.Comparator);
3149 this[_validKey] = dart.as(isValidKey !== null ? isValidKey : (v) => dart .is(v, E), _Predicate); 3149 this[_validKey] = dart.as(isValidKey !== null ? isValidKey : (v) => dart .is(v, E), _Predicate);
3150 super._SplayTree(); 3150 super._SplayTree();
3151 } 3151 }
3152 SplayTreeSet$from(elements, compare, isValidKey) { 3152 from(elements, compare, isValidKey) {
3153 if (compare === void 0) 3153 if (compare === void 0)
3154 compare = null; 3154 compare = null;
3155 if (isValidKey === void 0) 3155 if (isValidKey === void 0)
3156 isValidKey = null; 3156 isValidKey = null;
3157 let result = new SplayTreeSet(compare, isValidKey); 3157 let result = new SplayTreeSet(compare, isValidKey);
3158 for (let element of elements) { 3158 for (let element of elements) {
3159 result.add(element); 3159 result.add(element);
3160 } 3160 }
3161 return result; 3161 return result;
3162 } 3162 }
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
4895 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 4895 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
4896 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 4896 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
4897 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 4897 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
4898 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 4898 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
4899 exports.HashSetIterator = HashSetIterator; 4899 exports.HashSetIterator = HashSetIterator;
4900 exports.HashSetIterator$ = HashSetIterator$; 4900 exports.HashSetIterator$ = HashSetIterator$;
4901 exports.LinkedHashSetCell = LinkedHashSetCell; 4901 exports.LinkedHashSetCell = LinkedHashSetCell;
4902 exports.LinkedHashSetIterator = LinkedHashSetIterator; 4902 exports.LinkedHashSetIterator = LinkedHashSetIterator;
4903 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 4903 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
4904 })(collection || (collection = {})); 4904 })(collection || (collection = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698