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

Side by Side Diff: test/codegen/expect/collection/src/queue_list.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/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
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 });
OLDNEW
« no previous file with comments | « test/codegen/expect/collection/src/canonicalized_map.js ('k') | test/codegen/expect/collection/src/unmodifiable_wrappers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698