OLD | NEW |
1 dart_library.library('collection/priority_queue', null, /* Imports */[ | 1 dart_library.library('collection/src/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 const 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 static new(comparison) { |
| 12 return new (HeapPriorityQueue$(E))(comparison); |
| 13 } |
| 14 } |
| 15 dart.setSignature(PriorityQueue, { |
| 16 constructors: () => ({new: [PriorityQueue$(E), [], [dart.functionType(core
.int, [E, E])]]}) |
| 17 }); |
11 return PriorityQueue; | 18 return PriorityQueue; |
12 }); | 19 }); |
13 let PriorityQueue = PriorityQueue$(); | 20 let PriorityQueue = PriorityQueue$(); |
14 const _queue = Symbol('_queue'); | 21 const _queue = Symbol('_queue'); |
15 const _length = Symbol('_length'); | 22 const _length = Symbol('_length'); |
16 const _add = Symbol('_add'); | 23 const _add = Symbol('_add'); |
17 const _locate = Symbol('_locate'); | 24 const _locate = Symbol('_locate'); |
18 const _removeLast = Symbol('_removeLast'); | 25 const _removeLast = Symbol('_removeLast'); |
19 const _bubbleUp = Symbol('_bubbleUp'); | 26 const _bubbleUp = Symbol('_bubbleUp'); |
20 const _bubbleDown = Symbol('_bubbleDown'); | 27 const _bubbleDown = Symbol('_bubbleDown'); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core
.int, [E, E])); | 239 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core
.int, [E, E])); |
233 return __CastType0; | 240 return __CastType0; |
234 }); | 241 }); |
235 let __CastType0 = __CastType0$(); | 242 let __CastType0 = __CastType0$(); |
236 // Exports: | 243 // Exports: |
237 exports.PriorityQueue$ = PriorityQueue$; | 244 exports.PriorityQueue$ = PriorityQueue$; |
238 exports.PriorityQueue = PriorityQueue; | 245 exports.PriorityQueue = PriorityQueue; |
239 exports.HeapPriorityQueue$ = HeapPriorityQueue$; | 246 exports.HeapPriorityQueue$ = HeapPriorityQueue$; |
240 exports.HeapPriorityQueue = HeapPriorityQueue; | 247 exports.HeapPriorityQueue = HeapPriorityQueue; |
241 }); | 248 }); |
OLD | NEW |