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

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

Issue 1024073003: Treat Object and dynamic similarly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 toRemove.remove(o); 112 toRemove.remove(o);
113 } 113 }
114 this.removeAll(toRemove); 114 this.removeAll(toRemove);
115 } 115 }
116 removeWhere(test) { 116 removeWhere(test) {
117 let toRemove = new List.from([]); 117 let toRemove = new List.from([]);
118 for (let element of this) { 118 for (let element of this) {
119 if (test(element)) 119 if (test(element))
120 toRemove.add(element); 120 toRemove.add(element);
121 } 121 }
122 this.removeAll(dart.as(toRemove, core.Iterable$(core.Object))); 122 this.removeAll(toRemove);
123 } 123 }
124 retainWhere(test) { 124 retainWhere(test) {
125 let toRemove = new List.from([]); 125 let toRemove = new List.from([]);
126 for (let element of this) { 126 for (let element of this) {
127 if (!dart.notNull(test(element))) 127 if (!dart.notNull(test(element)))
128 toRemove.add(element); 128 toRemove.add(element);
129 } 129 }
130 this.removeAll(dart.as(toRemove, core.Iterable$(core.Object))); 130 this.removeAll(toRemove);
131 } 131 }
132 containsAll(other) { 132 containsAll(other) {
133 for (let o of other) { 133 for (let o of other) {
134 if (!dart.notNull(this.contains(o))) 134 if (!dart.notNull(this.contains(o)))
135 return false; 135 return false;
136 } 136 }
137 return true; 137 return true;
138 } 138 }
139 union(other) { 139 union(other) {
140 return ((_) => { 140 return ((_) => {
(...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4888 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 4888 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
4889 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 4889 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
4890 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 4890 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
4891 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 4891 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
4892 exports.HashSetIterator = HashSetIterator; 4892 exports.HashSetIterator = HashSetIterator;
4893 exports.HashSetIterator$ = HashSetIterator$; 4893 exports.HashSetIterator$ = HashSetIterator$;
4894 exports.LinkedHashSetCell = LinkedHashSetCell; 4894 exports.LinkedHashSetCell = LinkedHashSetCell;
4895 exports.LinkedHashSetIterator = LinkedHashSetIterator; 4895 exports.LinkedHashSetIterator = LinkedHashSetIterator;
4896 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 4896 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
4897 })(collection || (collection = {})); 4897 })(collection || (collection = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698