| OLD | NEW |
| 1 dart_library.library('collection/src/queue_list', null, /* Imports */[ | 1 dart_library.library('collection/src/queue_list', 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 _head = Symbol('_head'); | 9 const _head = Symbol('_head'); |
| 10 let _tail = Symbol('_tail'); | 10 const _tail = Symbol('_tail'); |
| 11 let _table = Symbol('_table'); | 11 const _table = Symbol('_table'); |
| 12 let _add = Symbol('_add'); | 12 const _add = Symbol('_add'); |
| 13 let _preGrow = Symbol('_preGrow'); | 13 const _preGrow = Symbol('_preGrow'); |
| 14 let _grow = Symbol('_grow'); | 14 const _grow = Symbol('_grow'); |
| 15 let _writeToList = Symbol('_writeToList'); | 15 const _writeToList = Symbol('_writeToList'); |
| 16 let QueueList$ = dart.generic(function(E) { | 16 const QueueList$ = dart.generic(function(E) { |
| 17 class QueueList extends dart.mixin(core.Object, collection.ListMixin$(E)) { | 17 class QueueList extends dart.mixin(core.Object, collection.ListMixin$(E)) { |
| 18 QueueList(initialCapacity) { | 18 QueueList(initialCapacity) { |
| 19 if (initialCapacity === void 0) | 19 if (initialCapacity === void 0) |
| 20 initialCapacity = null; | 20 initialCapacity = null; |
| 21 this[_head] = 0; | 21 this[_head] = 0; |
| 22 this[_tail] = 0; | 22 this[_tail] = 0; |
| 23 this[_table] = null; | 23 this[_table] = null; |
| 24 if (initialCapacity == null || dart.notNull(initialCapacity) < dart.notN
ull(QueueList$()._INITIAL_CAPACITY)) { | 24 if (initialCapacity == null || dart.notNull(initialCapacity) < dart.notN
ull(QueueList$()._INITIAL_CAPACITY)) { |
| 25 initialCapacity = QueueList$()._INITIAL_CAPACITY; | 25 initialCapacity = QueueList$()._INITIAL_CAPACITY; |
| 26 } else if (!dart.notNull(QueueList$()._isPowerOf2(initialCapacity))) { | 26 } else if (!dart.notNull(QueueList$()._isPowerOf2(initialCapacity))) { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 'length' | 233 'length' |
| 234 ]); | 234 ]); |
| 235 return QueueList; | 235 return QueueList; |
| 236 }); | 236 }); |
| 237 let QueueList = QueueList$(); | 237 let QueueList = QueueList$(); |
| 238 QueueList._INITIAL_CAPACITY = 8; | 238 QueueList._INITIAL_CAPACITY = 8; |
| 239 // Exports: | 239 // Exports: |
| 240 exports.QueueList$ = QueueList$; | 240 exports.QueueList$ = QueueList$; |
| 241 exports.QueueList = QueueList; | 241 exports.QueueList = QueueList; |
| 242 }); | 242 }); |
| OLD | NEW |