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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/script.js

Issue 2703263002: Custom formatter cleanup Fix case where displaying a class constructor generated unreadable huge ou… (Closed)
Patch Set: Custom formatter cleanup Fix case where displaying a class constructor generated unreadable huge ou… Created 3 years, 9 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
OLDNEW
1 define(['dart_sdk'], function(dart_sdk) { 1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict'; 2 'use strict';
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
6 const script = Object.create(null); 6 const script = Object.create(null);
7 let ListOfString = () => (ListOfString = dart.constFn(core.List$(core.String)) )(); 7 let ListOfString = () => (ListOfString = dart.constFn(core.List$(core.String)) )();
8 let ListOfStringTovoid = () => (ListOfStringTovoid = dart.constFn(dart.definit eFunctionType(dart.void, [ListOfString()])))(); 8 let ListOfStringTovoid = () => (ListOfStringTovoid = dart.constFn(dart.definit eFunctionType(dart.void, [ListOfString()])))();
9 script.main = function(args) { 9 script.main = function(args) {
10 let name = args[dartx.join](' '); 10 let name = args[dartx.join](' ');
11 if (name == '') name = 'world'; 11 if (name == '') name = 'world';
12 core.print(dart.str`hello ${name}`); 12 core.print(dart.str`hello ${name}`);
13 }; 13 };
14 dart.fn(script.main, ListOfStringTovoid()); 14 dart.fn(script.main, ListOfStringTovoid());
15 dart.trackLibraries("script", {"script.dart": script});
15 // Exports: 16 // Exports:
16 return { 17 return {
17 script: script 18 script: script
18 }; 19 };
19 }); 20 });
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/node_modules.js ('k') | pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698