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

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

Issue 1132113003: fixes #177, FunctionDeclarationStatement and closing over `this` (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 var collection = dart.defineLibrary(collection, {}); 1 var collection = dart.defineLibrary(collection, {});
2 var _internal = dart.lazyImport(_internal); 2 var _internal = dart.lazyImport(_internal);
3 var core = dart.import(core); 3 var core = dart.import(core);
4 var _js_helper = dart.lazyImport(_js_helper); 4 var _js_helper = dart.lazyImport(_js_helper);
5 var math = dart.lazyImport(math); 5 var math = dart.lazyImport(math);
6 (function(exports, _internal, core, _js_helper, math) { 6 (function(exports, _internal, core, _js_helper, math) {
7 'use strict'; 7 'use strict';
8 let _source = Symbol('_source'); 8 let _source = Symbol('_source');
9 let UnmodifiableListView$ = dart.generic(function(E) { 9 let UnmodifiableListView$ = dart.generic(function(E) {
10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { 10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) {
(...skipping 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 clear() { 3078 clear() {
3079 this[_clear](); 3079 this[_clear]();
3080 } 3080 }
3081 containsKey(key) { 3081 containsKey(key) {
3082 return dart.notNull(this[_validKey](key)) && this[_splay](dart.as(key, K )) == 0; 3082 return dart.notNull(this[_validKey](key)) && this[_splay](dart.as(key, K )) == 0;
3083 } 3083 }
3084 containsValue(value) { 3084 containsValue(value) {
3085 let found = false; 3085 let found = false;
3086 let initialSplayCount = this[_splayCount]; 3086 let initialSplayCount = this[_splayCount];
3087 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool 3087 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool
3088 function visit(node) { 3088 let visit = (node => {
3089 while (node != null) { 3089 while (node != null) {
3090 if (dart.equals(node.value, value)) 3090 if (dart.equals(node.value, value))
3091 return true; 3091 return true;
3092 if (initialSplayCount != this[_splayCount]) { 3092 if (initialSplayCount != this[_splayCount]) {
3093 throw new core.ConcurrentModificationError(this); 3093 throw new core.ConcurrentModificationError(this);
3094 } 3094 }
3095 if (dart.notNull(node.right != null) && dart.notNull(visit(dart.as(n ode.right, _SplayTreeMapNode)))) 3095 if (dart.notNull(node.right != null) && dart.notNull(visit(dart.as(n ode.right, _SplayTreeMapNode))))
3096 return true; 3096 return true;
3097 node = dart.as(node.left, _SplayTreeMapNode); 3097 node = dart.as(node.left, _SplayTreeMapNode);
3098 } 3098 }
3099 return false; 3099 return false;
3100 } 3100 }).bind(this);
3101 return visit(dart.as(this[_root], _SplayTreeMapNode)); 3101 return visit(dart.as(this[_root], _SplayTreeMapNode));
3102 } 3102 }
3103 get keys() { 3103 get keys() {
3104 return new (_SplayTreeKeyIterable$(K))(this); 3104 return new (_SplayTreeKeyIterable$(K))(this);
3105 } 3105 }
3106 get values() { 3106 get values() {
3107 return new (_SplayTreeValueIterable$(K, V))(this); 3107 return new (_SplayTreeValueIterable$(K, V))(this);
3108 } 3108 }
3109 toString() { 3109 toString() {
3110 return Maps.mapToString(this); 3110 return Maps.mapToString(this);
(...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after
5151 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 5151 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
5152 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 5152 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
5153 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 5153 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
5154 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 5154 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
5155 exports.HashSetIterator$ = HashSetIterator$; 5155 exports.HashSetIterator$ = HashSetIterator$;
5156 exports.HashSetIterator = HashSetIterator; 5156 exports.HashSetIterator = HashSetIterator;
5157 exports.LinkedHashSetCell = LinkedHashSetCell; 5157 exports.LinkedHashSetCell = LinkedHashSetCell;
5158 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 5158 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
5159 exports.LinkedHashSetIterator = LinkedHashSetIterator; 5159 exports.LinkedHashSetIterator = LinkedHashSetIterator;
5160 })(collection, _internal, core, _js_helper, math); 5160 })(collection, _internal, core, _js_helper, math);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698