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

Side by Side Diff: test/codegen/expect/temps.js

Issue 1150623004: Fix names in named parameter lists (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 months 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/sunflower/dom.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var temps = dart.defineLibrary(temps, {}); 1 var temps = dart.defineLibrary(temps, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 let _x = Symbol('_x'); 5 let _x = Symbol('_x');
6 let __x = Symbol('__x'); 6 let __x = Symbol('__x');
7 let _function = Symbol('_function'); 7 let _function = Symbol('_function');
8 class FormalCollision extends core.Object { 8 class FormalCollision extends core.Object {
9 FormalCollision(x, _x$, func) { 9 FormalCollision(x, _x$, func) {
10 this[_x] = x; 10 this[_x] = x;
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 named(opts) { 25 named(opts) {
26 let opt = opts && '_opt' in opts ? opts._opt : 456; 26 let opt = opts && '_opt' in opts ? opts._opt : 456;
27 this[_opt] = opt; 27 this[_opt] = opt;
28 } 28 }
29 } 29 }
30 dart.defineNamedConstructor(OptionalArg, 'named'); 30 dart.defineNamedConstructor(OptionalArg, 'named');
31 dart.setSignature(OptionalArg, { 31 dart.setSignature(OptionalArg, {
32 constructors: () => ({ 32 constructors: () => ({
33 OptionalArg: [OptionalArg, [], [core.int]], 33 OptionalArg: [OptionalArg, [], [core.int]],
34 named: [OptionalArg, [], {op: core.int}] 34 named: [OptionalArg, [], {_opt: core.int}]
35 }) 35 })
36 }); 36 });
37 function main() { 37 function main() {
38 core.print(new FormalCollision(1, 2, dart.fn(x => x))); 38 core.print(new FormalCollision(1, 2, dart.fn(x => x)));
39 core.print(new OptionalArg()[_opt]); 39 core.print(new OptionalArg()[_opt]);
40 core.print(new OptionalArg.named()[_opt]); 40 core.print(new OptionalArg.named()[_opt]);
41 } 41 }
42 dart.fn(main); 42 dart.fn(main);
43 // Exports: 43 // Exports:
44 exports.FormalCollision = FormalCollision; 44 exports.FormalCollision = FormalCollision;
45 exports.OptionalArg = OptionalArg; 45 exports.OptionalArg = OptionalArg;
46 exports.main = main; 46 exports.main = main;
47 })(temps, core); 47 })(temps, core);
OLDNEW
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698