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

Side by Side Diff: test/codegen/expect/js/js.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/expect/expect.js ('k') | test/codegen/expect/methods.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('js/js', null, /* Imports */[ 1 dart_library.library('js/js', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/js', 3 'dart/js',
4 'dart/core' 4 'dart/core'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, js, core) { 6 ], function(exports, dart, js, core) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 dart.export_(exports, js, ['allowInterop', 'allowInteropCaptureThis'], []); 9 dart.export_(exports, js, ['allowInterop', 'allowInteropCaptureThis'], []);
10 class JS extends core.Object { 10 class JS extends core.Object {
11 JS(name) { 11 JS(name) {
12 if (name === void 0) 12 if (name === void 0) name = null;
13 name = null;
14 this.name = name; 13 this.name = name;
15 } 14 }
16 } 15 }
17 dart.setSignature(JS, { 16 dart.setSignature(JS, {
18 constructors: () => ({JS: [JS, [], [core.String]]}) 17 constructors: () => ({JS: [JS, [], [core.String]]})
19 }); 18 });
20 class _Anonymous extends core.Object { 19 class _Anonymous extends core.Object {
21 _Anonymous() { 20 _Anonymous() {
22 } 21 }
23 } 22 }
24 dart.setSignature(_Anonymous, { 23 dart.setSignature(_Anonymous, {
25 constructors: () => ({_Anonymous: [_Anonymous, []]}) 24 constructors: () => ({_Anonymous: [_Anonymous, []]})
26 }); 25 });
27 const anonymous = dart.const(new _Anonymous()); 26 const anonymous = dart.const(new _Anonymous());
28 // Exports: 27 // Exports:
29 exports.JS = JS; 28 exports.JS = JS;
30 exports.anonymous = anonymous; 29 exports.anonymous = anonymous;
31 }); 30 });
OLDNEW
« no previous file with comments | « test/codegen/expect/expect/expect.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698