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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/collection/priority_queue.js
diff --git a/test/codegen/expect/collection/priority_queue.js b/test/codegen/expect/collection/priority_queue.js
index f0aefac4800a366168de129dc7ca773e66c162a2..6a14e343ff6ebeae000239e5c0698ae9b92b4568 100644
--- a/test/codegen/expect/collection/priority_queue.js
+++ b/test/codegen/expect/collection/priority_queue.js
@@ -6,20 +6,20 @@ dart_library.library('collection/priority_queue', null, /* Imports */[
], function(exports, dart, core, collection) {
'use strict';
let dartx = dart.dartx;
- let PriorityQueue$ = dart.generic(function(E) {
+ const PriorityQueue$ = dart.generic(function(E) {
class PriorityQueue extends core.Object {}
return PriorityQueue;
});
let PriorityQueue = PriorityQueue$();
- let _queue = Symbol('_queue');
- let _length = Symbol('_length');
- let _add = Symbol('_add');
- let _locate = Symbol('_locate');
- let _removeLast = Symbol('_removeLast');
- let _bubbleUp = Symbol('_bubbleUp');
- let _bubbleDown = Symbol('_bubbleDown');
- let _grow = Symbol('_grow');
- let HeapPriorityQueue$ = dart.generic(function(E) {
+ const _queue = Symbol('_queue');
+ const _length = Symbol('_length');
+ const _add = Symbol('_add');
+ const _locate = Symbol('_locate');
+ const _removeLast = Symbol('_removeLast');
+ const _bubbleUp = Symbol('_bubbleUp');
+ const _bubbleDown = Symbol('_bubbleDown');
+ const _grow = Symbol('_grow');
+ const HeapPriorityQueue$ = dart.generic(function(E) {
class HeapPriorityQueue extends core.Object {
HeapPriorityQueue(comparison) {
if (comparison === void 0)
@@ -237,8 +237,8 @@ dart_library.library('collection/priority_queue', null, /* Imports */[
});
let HeapPriorityQueue = HeapPriorityQueue$();
HeapPriorityQueue._INITIAL_CAPACITY = 7;
- let __CastType0$ = dart.generic(function(E) {
- let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.int, [E, E]));
+ const __CastType0$ = dart.generic(function(E) {
+ const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.int, [E, E]));
return __CastType0;
});
let __CastType0 = __CastType0$();
« 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