OLD | NEW |
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 Loading... |
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({p1 = null} = {}) { | 72 H(opts) { |
| 73 let p1 = opts && 'p1' in opts ? opts.p1 : null; |
73 } | 74 } |
74 } | 75 } |
75 dart.setSignature(H, { | 76 dart.setSignature(H, { |
76 constructors: () => ({H: [H, [], {p1: core.String}]}) | 77 constructors: () => ({H: [H, [], {p1: core.String}]}) |
77 }); | 78 }); |
78 class I extends core.Object { | 79 class I extends core.Object { |
79 I() { | 80 I() { |
80 this.name = 'default'; | 81 this.name = 'default'; |
81 } | 82 } |
82 named(name) { | 83 named(name) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 exports.I = I; | 210 exports.I = I; |
210 exports.J = J; | 211 exports.J = J; |
211 exports.K = K; | 212 exports.K = K; |
212 exports.L = L; | 213 exports.L = L; |
213 exports.M = M; | 214 exports.M = M; |
214 exports.N = N; | 215 exports.N = N; |
215 exports.P = P; | 216 exports.P = P; |
216 exports.Q$ = Q$; | 217 exports.Q$ = Q$; |
217 exports.Q = Q; | 218 exports.Q = Q; |
218 }); | 219 }); |
OLD | NEW |