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

Unified Diff: test/codegen/expect/collection/src/unmodifiable_wrappers.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
« no previous file with comments | « test/codegen/expect/collection/src/queue_list.js ('k') | test/codegen/expect/collection/src/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/collection/src/unmodifiable_wrappers.js
diff --git a/test/codegen/expect/collection/src/unmodifiable_wrappers.js b/test/codegen/expect/collection/src/unmodifiable_wrappers.js
index 9e01ae33d26d76a4cbb620b536c2b6c0d7b76547..8f3a05a62678c88767feee7389c91d222de7a141 100644
--- a/test/codegen/expect/collection/src/unmodifiable_wrappers.js
+++ b/test/codegen/expect/collection/src/unmodifiable_wrappers.js
@@ -8,7 +8,7 @@ dart_library.library('collection/src/unmodifiable_wrappers', null, /* Imports */
'use strict';
let dartx = dart.dartx;
dart.export(exports, collection, ['UnmodifiableListView', 'UnmodifiableMapView'], []);
- let NonGrowableListMixin$ = dart.generic(function(E) {
+ const NonGrowableListMixin$ = dart.generic(function(E) {
class NonGrowableListMixin extends core.Object {
static _throw() {
dart.throw(new core.UnsupportedError("Cannot change the length of a fixed-length list"));
@@ -97,7 +97,7 @@ dart_library.library('collection/src/unmodifiable_wrappers', null, /* Imports */
return NonGrowableListMixin;
});
let NonGrowableListMixin = NonGrowableListMixin$();
- let NonGrowableListView$ = dart.generic(function(E) {
+ const NonGrowableListView$ = dart.generic(function(E) {
class NonGrowableListView extends dart.mixin(wrappers.DelegatingList$(E), NonGrowableListMixin$(E)) {
NonGrowableListView(listBase) {
super.DelegatingList(listBase);
@@ -109,8 +109,8 @@ dart_library.library('collection/src/unmodifiable_wrappers', null, /* Imports */
return NonGrowableListView;
});
dart.defineLazyClassGeneric(exports, 'NonGrowableListView', {get: NonGrowableListView$});
- let _throw = Symbol('_throw');
- let UnmodifiableSetMixin$ = dart.generic(function(E) {
+ const _throw = Symbol('_throw');
+ const UnmodifiableSetMixin$ = dart.generic(function(E) {
class UnmodifiableSetMixin extends core.Object {
[_throw]() {
dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable Set"));
@@ -161,7 +161,7 @@ dart_library.library('collection/src/unmodifiable_wrappers', null, /* Imports */
return UnmodifiableSetMixin;
});
let UnmodifiableSetMixin = UnmodifiableSetMixin$();
- let UnmodifiableSetView$ = dart.generic(function(E) {
+ const UnmodifiableSetView$ = dart.generic(function(E) {
class UnmodifiableSetView extends dart.mixin(wrappers.DelegatingSet$(E), UnmodifiableSetMixin$(E)) {
UnmodifiableSetView(setBase) {
super.DelegatingSet(setBase);
@@ -173,7 +173,7 @@ dart_library.library('collection/src/unmodifiable_wrappers', null, /* Imports */
return UnmodifiableSetView;
});
dart.defineLazyClassGeneric(exports, 'UnmodifiableSetView', {get: UnmodifiableSetView$});
- let UnmodifiableMapMixin$ = dart.generic(function(K, V) {
+ const UnmodifiableMapMixin$ = dart.generic(function(K, V) {
class UnmodifiableMapMixin extends core.Object {
static _throw() {
dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable Map"));
« no previous file with comments | « test/codegen/expect/collection/src/queue_list.js ('k') | test/codegen/expect/collection/src/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698