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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.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 html = dart_sdk.html; 4 const html = dart_sdk.html;
5 const math = dart_sdk.math; 5 const math = dart_sdk.math;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const sunflower = Object.create(null); 8 const sunflower = Object.create(null);
9 const circle = Object.create(null); 9 const circle = Object.create(null);
10 const painter = Object.create(null); 10 const painter = Object.create(null);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 dart.defineLazy(painter, { 116 dart.defineLazy(painter, {
117 get canvas() { 117 get canvas() {
118 return html.CanvasElement.as(painter.querySelector("#canvas")); 118 return html.CanvasElement.as(painter.querySelector("#canvas"));
119 } 119 }
120 }); 120 });
121 dart.defineLazy(painter, { 121 dart.defineLazy(painter, {
122 get context() { 122 get context() {
123 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d')); 123 return html.CanvasRenderingContext2D.as(painter.canvas[dartx.getContext](' 2d'));
124 } 124 }
125 }); 125 });
126 dart.trackLibraries("sunflower", {"sunflower.dart": sunflower, "circle.dart": circle, "painter.dart": painter});
126 // Exports: 127 // Exports:
127 return { 128 return {
128 sunflower: sunflower, 129 sunflower: sunflower,
129 circle: circle, 130 circle: circle,
130 painter: painter 131 painter: painter
131 }; 132 };
132 }); 133 });
133 134
134 //# sourceMappingURL=sunflower.js.map 135 //# sourceMappingURL=sunflower.js.map
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/script.js ('k') | pkg/dev_compiler/test/codegen_expected/varargs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698