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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/async_helper.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 async_helper = Object.create(null); 6 const async_helper = Object.create(null);
7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.functionType(dart .dynamic, [])))(); 7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.functionType(dart .dynamic, [])))();
8 let StringToException = () => (StringToException = dart.constFn(dart.definiteF unctionType(core.Exception, [core.String])))(); 8 let StringToException = () => (StringToException = dart.constFn(dart.definiteF unctionType(core.Exception, [core.String])))();
9 let _Action0Tovoid = () => (_Action0Tovoid = dart.constFn(dart.definiteFunctio nType(dart.void, [async_helper._Action0])))(); 9 let _Action0Tovoid = () => (_Action0Tovoid = dart.constFn(dart.definiteFunctio nType(dart.void, [async_helper._Action0])))();
10 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))(); 10 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 dart.fn(async_helper.asyncEnd, VoidTovoid()); 62 dart.fn(async_helper.asyncEnd, VoidTovoid());
63 async_helper.asyncSuccess = function(_) { 63 async_helper.asyncSuccess = function(_) {
64 return async_helper.asyncEnd(); 64 return async_helper.asyncEnd();
65 }; 65 };
66 dart.fn(async_helper.asyncSuccess, dynamicTovoid()); 66 dart.fn(async_helper.asyncSuccess, dynamicTovoid());
67 async_helper.asyncTest = function(f) { 67 async_helper.asyncTest = function(f) {
68 async_helper.asyncStart(); 68 async_helper.asyncStart();
69 dart.dsend(f(), 'then', async_helper.asyncSuccess); 69 dart.dsend(f(), 'then', async_helper.asyncSuccess);
70 }; 70 };
71 dart.fn(async_helper.asyncTest, FnTovoid()); 71 dart.fn(async_helper.asyncTest, FnTovoid());
72 dart.trackLibraries("async_helper", {"async_helper.dart": async_helper});
72 // Exports: 73 // Exports:
73 return { 74 return {
74 async_helper: async_helper 75 async_helper: async_helper
75 }; 76 };
76 }); 77 });
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js ('k') | pkg/dev_compiler/test/codegen_expected/closure.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698