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

Side by Side Diff: test/codegen/expect/collection/src/canonicalized_map.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/canonicalized_map', null, /* Imports */[ 1 dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'collection/src/utils', 4 'collection/src/utils',
5 'dart/collection' 5 'dart/collection'
6 ], /* Lazy imports */[ 6 ], /* Lazy imports */[
7 ], function(exports, dart, core, utils, collection) { 7 ], function(exports, dart, core, utils, collection) {
8 'use strict'; 8 'use strict';
9 let dartx = dart.dartx; 9 let dartx = dart.dartx;
10 let _base = Symbol('_base'); 10 const _base = Symbol('_base');
11 let _canonicalize = Symbol('_canonicalize'); 11 const _canonicalize = Symbol('_canonicalize');
12 let _isValidKeyFn = Symbol('_isValidKeyFn'); 12 const _isValidKeyFn = Symbol('_isValidKeyFn');
13 let _isValidKey = Symbol('_isValidKey'); 13 const _isValidKey = Symbol('_isValidKey');
14 let CanonicalizedMap$ = dart.generic(function(C, K, V) { 14 const CanonicalizedMap$ = dart.generic(function(C, K, V) {
15 class CanonicalizedMap extends core.Object { 15 class CanonicalizedMap extends core.Object {
16 CanonicalizedMap(canonicalize, opts) { 16 CanonicalizedMap(canonicalize, opts) {
17 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; 17 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
18 this[_base] = core.Map$(C, utils.Pair$(K, V)).new(); 18 this[_base] = core.Map$(C, utils.Pair$(K, V)).new();
19 this[_canonicalize] = canonicalize; 19 this[_canonicalize] = canonicalize;
20 this[_isValidKeyFn] = isValidKey; 20 this[_isValidKeyFn] = isValidKey;
21 } 21 }
22 from(other, canonicalize, opts) { 22 from(other, canonicalize, opts) {
23 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; 23 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
24 this[_base] = core.Map$(C, utils.Pair$(K, V)).new(); 24 this[_base] = core.Map$(C, utils.Pair$(K, V)).new();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 [_isValidKey]: [core.bool, [core.Object]] 110 [_isValidKey]: [core.bool, [core.Object]]
111 }) 111 })
112 }); 112 });
113 return CanonicalizedMap; 113 return CanonicalizedMap;
114 }); 114 });
115 let CanonicalizedMap = CanonicalizedMap$(); 115 let CanonicalizedMap = CanonicalizedMap$();
116 // Exports: 116 // Exports:
117 exports.CanonicalizedMap$ = CanonicalizedMap$; 117 exports.CanonicalizedMap$ = CanonicalizedMap$;
118 exports.CanonicalizedMap = CanonicalizedMap; 118 exports.CanonicalizedMap = CanonicalizedMap;
119 }); 119 });
OLDNEW
« no previous file with comments | « test/codegen/expect/collection/priority_queue.js ('k') | test/codegen/expect/collection/src/queue_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698