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

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

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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/collection/wrappers.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('constructors', null, /* Imports */[ 1 dart_library.library('constructors', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 class A extends core.Object {} 8 class A extends core.Object {}
9 class B extends core.Object { 9 class B extends core.Object {
10 B() { 10 B() {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class G extends core.Object { 62 class G extends core.Object {
63 G(p1) { 63 G(p1) {
64 if (p1 === void 0) 64 if (p1 === void 0)
65 p1 = null; 65 p1 = null;
66 } 66 }
67 } 67 }
68 dart.setSignature(G, { 68 dart.setSignature(G, {
69 constructors: () => ({G: [G, [], [core.String]]}) 69 constructors: () => ({G: [G, [], [core.String]]})
70 }); 70 });
71 class H extends core.Object { 71 class H extends core.Object {
72 H(opts) { 72 H({p1 = null} = {}) {
73 let p1 = opts && 'p1' in opts ? opts.p1 : null;
74 } 73 }
75 } 74 }
76 dart.setSignature(H, { 75 dart.setSignature(H, {
77 constructors: () => ({H: [H, [], {p1: core.String}]}) 76 constructors: () => ({H: [H, [], {p1: core.String}]})
78 }); 77 });
79 class I extends core.Object { 78 class I extends core.Object {
80 I() { 79 I() {
81 this.name = 'default'; 80 this.name = 'default';
82 } 81 }
83 named(name) { 82 named(name) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 exports.I = I; 209 exports.I = I;
211 exports.J = J; 210 exports.J = J;
212 exports.K = K; 211 exports.K = K;
213 exports.L = L; 212 exports.L = L;
214 exports.M = M; 213 exports.M = M;
215 exports.N = N; 214 exports.N = N;
216 exports.P = P; 215 exports.P = P;
217 exports.Q$ = Q$; 216 exports.Q$ = Q$;
218 exports.Q = Q; 217 exports.Q = Q;
219 }); 218 });
OLDNEW
« no previous file with comments | « test/codegen/expect/collection/wrappers.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698