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

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

Issue 1524843002: JS: Format if statements with no else on a single line (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebased 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
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('closure', null, /* Imports */[ 1 dart_library.library('closure', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'dart/js' 4 'dart/js'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, core, js) { 6 ], function(exports, dart, core, js) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 /** @typedef {function({i: (?number|undefined)}=)} */ 9 /** @typedef {function({i: (?number|undefined)}=)} */
10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [ ], {i: core.int})); 10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [ ], {i: core.int}));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 */ 49 */
50 typed_method(foo, list, i, n, d, b, s, a, o, f) { 50 typed_method(foo, list, i, n, d, b, s, a, o, f) {
51 return ''; 51 return '';
52 } 52 }
53 /** 53 /**
54 * @param {?} a 54 * @param {?} a
55 * @param {?=} b 55 * @param {?=} b
56 * @param {?=} c 56 * @param {?=} c
57 */ 57 */
58 optional_params(a, b, c) { 58 optional_params(a, b, c) {
59 if (b === void 0) 59 if (b === void 0) b = null;
60 b = null; 60 if (c === void 0) c = null;
61 if (c === void 0)
62 c = null;
63 } 61 }
64 /** 62 /**
65 * @param {?} a 63 * @param {?} a
66 * @param {{b: (?|undefined), c: (?|undefined)}=} opts 64 * @param {{b: (?|undefined), c: (?|undefined)}=} opts
67 */ 65 */
68 static named_params(a, opts) { 66 static named_params(a, opts) {
69 let b = opts && 'b' in opts ? opts.b : null; 67 let b = opts && 'b' in opts ? opts.b : null;
70 let c = opts && 'c' in opts ? opts.c : null; 68 let c = opts && 'c' in opts ? opts.c : null;
71 } 69 }
72 nullary_method() {} 70 nullary_method() {}
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 exports.some_top_level_var = "abc"; 138 exports.some_top_level_var = "abc";
141 // Exports: 139 // Exports:
142 exports.Callback = Callback; 140 exports.Callback = Callback;
143 exports.Foo$ = Foo$; 141 exports.Foo$ = Foo$;
144 exports.Foo = Foo; 142 exports.Foo = Foo;
145 exports.Bar = Bar; 143 exports.Bar = Bar;
146 exports.Baz = Baz; 144 exports.Baz = Baz;
147 exports.main = main; 145 exports.main = main;
148 exports.some_top_level_constant = some_top_level_constant; 146 exports.some_top_level_constant = some_top_level_constant;
149 }); 147 });
OLDNEW
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698