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

Side by Side Diff: test/codegen/expect/fieldtest.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/expect/expect.js ('k') | test/codegen/expect/functions.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('fieldtest', null, /* Imports */[ 1 dart_library.library('fieldtest', 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 = 42; 10 this.x = 42;
11 } 11 }
12 } 12 }
13 let B$ = dart.generic(function(T) { 13 const B$ = dart.generic(function(T) {
14 class B extends core.Object { 14 class B extends core.Object {
15 B() { 15 B() {
16 this.x = null; 16 this.x = null;
17 this.y = null; 17 this.y = null;
18 this.z = null; 18 this.z = null;
19 } 19 }
20 } 20 }
21 return B; 21 return B;
22 }); 22 });
23 let B = B$(); 23 let B = B$();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return 1; 61 return 1;
62 } 62 }
63 } 63 }
64 class Derived extends BaseWithGetter { 64 class Derived extends BaseWithGetter {
65 Derived() { 65 Derived() {
66 this.foo = 2; 66 this.foo = 2;
67 this.bar = 3; 67 this.bar = 3;
68 } 68 }
69 } 69 }
70 dart.virtualField(Derived, 'foo'); 70 dart.virtualField(Derived, 'foo');
71 let Generic$ = dart.generic(function(T) { 71 const Generic$ = dart.generic(function(T) {
72 class Generic extends core.Object { 72 class Generic extends core.Object {
73 foo(t) { 73 foo(t) {
74 dart.as(t, T); 74 dart.as(t, T);
75 return core.print(dart.notNull(Generic$().bar) + dart.notNull(dart.as(t, core.String))); 75 return core.print(dart.notNull(Generic$().bar) + dart.notNull(dart.as(t, core.String)));
76 } 76 }
77 } 77 }
78 dart.setSignature(Generic, { 78 dart.setSignature(Generic, {
79 methods: () => ({foo: [dart.dynamic, [T]]}) 79 methods: () => ({foo: [dart.dynamic, [T]]})
80 }); 80 });
81 return Generic; 81 return Generic;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 exports.compute = compute; 129 exports.compute = compute;
130 exports.BaseWithGetter = BaseWithGetter; 130 exports.BaseWithGetter = BaseWithGetter;
131 exports.Derived = Derived; 131 exports.Derived = Derived;
132 exports.Generic$ = Generic$; 132 exports.Generic$ = Generic$;
133 exports.Generic = Generic; 133 exports.Generic = Generic;
134 exports.StaticFieldOrder1 = StaticFieldOrder1; 134 exports.StaticFieldOrder1 = StaticFieldOrder1;
135 exports.StaticFieldOrder2 = StaticFieldOrder2; 135 exports.StaticFieldOrder2 = StaticFieldOrder2;
136 exports.MyEnum = MyEnum; 136 exports.MyEnum = MyEnum;
137 exports.main = main; 137 exports.main = main;
138 }); 138 });
OLDNEW
« no previous file with comments | « test/codegen/expect/expect/expect.js ('k') | test/codegen/expect/functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698