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

Side by Side Diff: test/codegen/expect/names.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: 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('names', null, /* Imports */[ 1 dart_library.library('names', 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 exports.exports = 42; 8 exports.exports = 42;
9 let _foo$ = Symbol('_foo'); 9 const _foo$ = Symbol('_foo');
10 class Foo extends core.Object { 10 class Foo extends core.Object {
11 [_foo$]() { 11 [_foo$]() {
12 return 123; 12 return 123;
13 } 13 }
14 } 14 }
15 dart.setSignature(Foo, { 15 dart.setSignature(Foo, {
16 methods: () => ({[_foo$]: [dart.dynamic, []]}) 16 methods: () => ({[_foo$]: [dart.dynamic, []]})
17 }); 17 });
18 function _foo() { 18 function _foo() {
19 return 456; 19 return 456;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 core.print(eval$); 53 core.print(eval$);
54 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments)); 54 core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments));
55 } 55 }
56 dart.fn(main); 56 dart.fn(main);
57 // Exports: 57 // Exports:
58 exports.Foo = Foo; 58 exports.Foo = Foo;
59 exports.Frame = Frame; 59 exports.Frame = Frame;
60 exports.Frame2 = Frame2; 60 exports.Frame2 = Frame2;
61 exports.main = main; 61 exports.main = main;
62 }); 62 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698