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

Side by Side Diff: test/codegen/expect/closure.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
« no previous file with comments | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('closure', null, /* Imports */[ 1 dart_library.library('closure', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'dart/js' 4 'dart/js'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, core, js) { 6 ], function(exports, dart, core, js) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 /** @typedef {function({i: (?number|undefined)}=)} */ 9 /** @typedef {function({i: (?number|undefined)}=)} */
10 let Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int})); 10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [ ], {i: core.int}));
11 let Foo$ = dart.generic(function(T) { 11 const Foo$ = dart.generic(function(T) {
12 class Foo extends core.Object { 12 class Foo extends core.Object {
13 /** 13 /**
14 * @param {?number} i 14 * @param {?number} i
15 * @param {?} v 15 * @param {?} v
16 */ 16 */
17 Foo(i, v) { 17 Foo(i, v) {
18 this.i = i; 18 this.i = i;
19 this.v = v; 19 this.v = v;
20 this.b = null; 20 this.b = null;
21 this.s = null; 21 this.s = null;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 } 127 }
128 dart.setSignature(Baz, { 128 dart.setSignature(Baz, {
129 constructors: () => ({Baz: [Baz, [core.int]]}) 129 constructors: () => ({Baz: [Baz, [core.int]]})
130 }); 130 });
131 /** @param {?} args */ 131 /** @param {?} args */
132 function main(args) { 132 function main(args) {
133 } 133 }
134 dart.fn(main, dart.void, [dart.dynamic]); 134 dart.fn(main, dart.void, [dart.dynamic]);
135 /** @final {string} */ 135 /** @final {string} */
136 let some_top_level_constant = "abc"; 136 const some_top_level_constant = "abc";
137 /** @final {string} */ 137 /** @final {string} */
138 exports.some_top_level_final = "abc"; 138 exports.some_top_level_final = "abc";
139 /** @type {string} */ 139 /** @type {string} */
140 exports.some_top_level_var = "abc"; 140 exports.some_top_level_var = "abc";
141 // Exports: 141 // Exports:
142 exports.Callback = Callback; 142 exports.Callback = Callback;
143 exports.Foo$ = Foo$; 143 exports.Foo$ = Foo$;
144 exports.Foo = Foo; 144 exports.Foo = Foo;
145 exports.Bar = Bar; 145 exports.Bar = Bar;
146 exports.Baz = Baz; 146 exports.Baz = Baz;
147 exports.main = main; 147 exports.main = main;
148 exports.some_top_level_constant = some_top_level_constant; 148 exports.some_top_level_constant = some_top_level_constant;
149 }); 149 });
OLDNEW
« no previous file with comments | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698