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

Side by Side Diff: test/codegen/expect/cascade.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/async_helper/async_helper.js ('k') | test/codegen/expect/closure.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('cascade', null, /* Imports */[ 1 dart_library.library('cascade', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 class A extends core.Object { 8 class A extends core.Object {
9 A() { 9 A() {
10 this.x = null; 10 this.x = null;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 dart.fn(test_VariableDeclaration_first, dart.void, []); 79 dart.fn(test_VariableDeclaration_first, dart.void, []);
80 function test_increment() { 80 function test_increment() {
81 let a = new A(); 81 let a = new A();
82 let y = ((() => { 82 let y = ((() => {
83 a.x = dart.dsend(a.x, '+', 1); 83 a.x = dart.dsend(a.x, '+', 1);
84 a.x = dart.dsend(a.x, '-', 1); 84 a.x = dart.dsend(a.x, '-', 1);
85 return a; 85 return a;
86 })()); 86 })());
87 } 87 }
88 dart.fn(test_increment, dart.void, []); 88 dart.fn(test_increment, dart.void, []);
89 let Base$ = dart.generic(function(T) { 89 const Base$ = dart.generic(function(T) {
90 class Base extends core.Object { 90 class Base extends core.Object {
91 Base() { 91 Base() {
92 this.x = dart.list([], T); 92 this.x = dart.list([], T);
93 } 93 }
94 } 94 }
95 return Base; 95 return Base;
96 }); 96 });
97 let Base = Base$(); 97 let Base = Base$();
98 class Foo extends Base$(core.int) { 98 class Foo extends Base$(core.int) {
99 Foo() { 99 Foo() {
(...skipping 16 matching lines...) Expand all
116 exports.test_mutate_inside_cascade = test_mutate_inside_cascade; 116 exports.test_mutate_inside_cascade = test_mutate_inside_cascade;
117 exports.test_mutate_outside_cascade = test_mutate_outside_cascade; 117 exports.test_mutate_outside_cascade = test_mutate_outside_cascade;
118 exports.test_VariableDeclaration_single = test_VariableDeclaration_single; 118 exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
119 exports.test_VariableDeclaration_last = test_VariableDeclaration_last; 119 exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
120 exports.test_VariableDeclaration_first = test_VariableDeclaration_first; 120 exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
121 exports.test_increment = test_increment; 121 exports.test_increment = test_increment;
122 exports.Base$ = Base$; 122 exports.Base$ = Base$;
123 exports.Base = Base; 123 exports.Base = Base;
124 exports.Foo = Foo; 124 exports.Foo = Foo;
125 }); 125 });
OLDNEW
« no previous file with comments | « test/codegen/expect/async_helper/async_helper.js ('k') | test/codegen/expect/closure.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698