| OLD | NEW |
| (Empty) |
| 1 var methods; | |
| 2 (function(exports) { | |
| 3 'use strict'; | |
| 4 class A extends dart.Object { | |
| 5 A() { | |
| 6 this._c = 3; | |
| 7 } | |
| 8 x() { | |
| 9 return 42; | |
| 10 } | |
| 11 y(a) { | |
| 12 return a; | |
| 13 } | |
| 14 z(b) { | |
| 15 if (b === void 0) | |
| 16 b = null; | |
| 17 return dart.notNull(b); | |
| 18 } | |
| 19 zz(b) { | |
| 20 if (b === void 0) | |
| 21 b = 0; | |
| 22 return b; | |
| 23 } | |
| 24 w(a, opt$) { | |
| 25 let b = opt$.b === void 0 ? null : opt$.b; | |
| 26 return dart.notNull(a + dart.notNull(b)); | |
| 27 } | |
| 28 ww(a, opt$) { | |
| 29 let b = opt$.b === void 0 ? 0 : opt$.b; | |
| 30 return a + b; | |
| 31 } | |
| 32 get a() { | |
| 33 return this.x(); | |
| 34 } | |
| 35 set b(b) {} | |
| 36 get c() { | |
| 37 return this._c; | |
| 38 } | |
| 39 set c(c) { | |
| 40 this._c = c; | |
| 41 } | |
| 42 } | |
| 43 class Bar extends dart.Object { | |
| 44 call(x) { | |
| 45 return core.print(`hello from ${x}`); | |
| 46 } | |
| 47 } | |
| 48 class Foo extends dart.Object { | |
| 49 Foo() { | |
| 50 this.bar = new Bar(); | |
| 51 } | |
| 52 } | |
| 53 // Function test: () → dynamic | |
| 54 function test() { | |
| 55 let f = new Foo(); | |
| 56 dart.dinvoke(f, 'bar', "Bar's call method!"); | |
| 57 } | |
| 58 // Exports: | |
| 59 exports.A = A; | |
| 60 exports.Bar = Bar; | |
| 61 exports.Foo = Foo; | |
| 62 exports.test = test; | |
| 63 })(methods || (methods = {})); | |
| OLD | NEW |