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

Side by Side Diff: test/codegen/expect/collection/priority_queue.js

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 years 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 dart_library.library('collection/priority_queue', null, /* Imports */[ 1 dart_library.library('collection/priority_queue', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'dart/collection' 4 'dart/collection'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, core, collection) { 6 ], function(exports, dart, core, collection) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 let PriorityQueue$ = dart.generic(function(E) { 9 const PriorityQueue$ = dart.generic(function(E) {
10 class PriorityQueue extends core.Object {} 10 class PriorityQueue extends core.Object {}
11 return PriorityQueue; 11 return PriorityQueue;
12 }); 12 });
13 let PriorityQueue = PriorityQueue$(); 13 let PriorityQueue = PriorityQueue$();
14 let _queue = Symbol('_queue'); 14 const _queue = Symbol('_queue');
15 let _length = Symbol('_length'); 15 const _length = Symbol('_length');
16 let _add = Symbol('_add'); 16 const _add = Symbol('_add');
17 let _locate = Symbol('_locate'); 17 const _locate = Symbol('_locate');
18 let _removeLast = Symbol('_removeLast'); 18 const _removeLast = Symbol('_removeLast');
19 let _bubbleUp = Symbol('_bubbleUp'); 19 const _bubbleUp = Symbol('_bubbleUp');
20 let _bubbleDown = Symbol('_bubbleDown'); 20 const _bubbleDown = Symbol('_bubbleDown');
21 let _grow = Symbol('_grow'); 21 const _grow = Symbol('_grow');
22 let HeapPriorityQueue$ = dart.generic(function(E) { 22 const HeapPriorityQueue$ = dart.generic(function(E) {
23 class HeapPriorityQueue extends core.Object { 23 class HeapPriorityQueue extends core.Object {
24 HeapPriorityQueue(comparison) { 24 HeapPriorityQueue(comparison) {
25 if (comparison === void 0) 25 if (comparison === void 0)
26 comparison = null; 26 comparison = null;
27 this[_queue] = core.List$(E).new(HeapPriorityQueue$()._INITIAL_CAPACITY) ; 27 this[_queue] = core.List$(E).new(HeapPriorityQueue$()._INITIAL_CAPACITY) ;
28 this.comparison = comparison != null ? comparison : core.Comparable.comp are; 28 this.comparison = comparison != null ? comparison : core.Comparable.comp are;
29 this[_length] = 0; 29 this[_length] = 0;
30 } 30 }
31 add(element) { 31 add(element) {
32 dart.as(element, E); 32 dart.as(element, E);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 [_removeLast]: [E, []], 230 [_removeLast]: [E, []],
231 [_bubbleUp]: [dart.void, [E, core.int]], 231 [_bubbleUp]: [dart.void, [E, core.int]],
232 [_bubbleDown]: [dart.void, [E, core.int]], 232 [_bubbleDown]: [dart.void, [E, core.int]],
233 [_grow]: [dart.void, []] 233 [_grow]: [dart.void, []]
234 }) 234 })
235 }); 235 });
236 return HeapPriorityQueue; 236 return HeapPriorityQueue;
237 }); 237 });
238 let HeapPriorityQueue = HeapPriorityQueue$(); 238 let HeapPriorityQueue = HeapPriorityQueue$();
239 HeapPriorityQueue._INITIAL_CAPACITY = 7; 239 HeapPriorityQueue._INITIAL_CAPACITY = 7;
240 let __CastType0$ = dart.generic(function(E) { 240 const __CastType0$ = dart.generic(function(E) {
241 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i nt, [E, E])); 241 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core .int, [E, E]));
242 return __CastType0; 242 return __CastType0;
243 }); 243 });
244 let __CastType0 = __CastType0$(); 244 let __CastType0 = __CastType0$();
245 // Exports: 245 // Exports:
246 exports.PriorityQueue$ = PriorityQueue$; 246 exports.PriorityQueue$ = PriorityQueue$;
247 exports.PriorityQueue = PriorityQueue; 247 exports.PriorityQueue = PriorityQueue;
248 exports.HeapPriorityQueue$ = HeapPriorityQueue$; 248 exports.HeapPriorityQueue$ = HeapPriorityQueue$;
249 exports.HeapPriorityQueue = HeapPriorityQueue; 249 exports.HeapPriorityQueue = HeapPriorityQueue;
250 }); 250 });
OLDNEW
« no previous file with comments | « test/codegen/expect/collection/iterable_zip.js ('k') | test/codegen/expect/collection/src/canonicalized_map.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698