OLD | NEW |
1 var methods; | 1 var methods; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 let _c = Symbol('_c'); | 4 let _c = Symbol('_c'); |
5 class A extends core.Object { | 5 class A extends core.Object { |
6 A() { | 6 A() { |
7 this[_c] = 3; | 7 this[_c] = 3; |
8 } | 8 } |
9 x() { | 9 x() { |
10 return 42; | 10 return 42; |
11 } | 11 } |
12 y(a) { | 12 y(a) { |
13 return a; | 13 return a; |
14 } | 14 } |
15 z(b) { | 15 z(b) { |
16 if (b === void 0) | 16 if (b === void 0) |
17 b = null; | 17 b = null; |
18 return b; | 18 return b; |
19 } | 19 } |
20 zz(b) { | 20 zz(b) { |
21 if (b === void 0) | 21 if (b === void 0) |
22 b = 0; | 22 b = 0; |
23 return b; | 23 return b; |
24 } | 24 } |
25 w(a, opt$) { | 25 w(a, opts) { |
26 let b = opt$ && 'b' in opt$ ? opt$.b : null; | 26 let b = opts && 'b' in opts ? opts.b : null; |
27 return dart.notNull(a) + dart.notNull(b); | 27 return dart.notNull(a) + dart.notNull(b); |
28 } | 28 } |
29 ww(a, opt$) { | 29 ww(a, opts) { |
30 let b = opt$ && 'b' in opt$ ? opt$.b : 0; | 30 let b = opts && 'b' in opts ? opts.b : 0; |
31 return dart.notNull(a) + dart.notNull(b); | 31 return dart.notNull(a) + dart.notNull(b); |
32 } | 32 } |
33 get a() { | 33 get a() { |
34 return this.x(); | 34 return this.x(); |
35 } | 35 } |
36 set b(b) {} | 36 set b(b) {} |
37 get c() { | 37 get c() { |
38 return this[_c]; | 38 return this[_c]; |
39 } | 39 } |
40 set c(c) { | 40 set c(c) { |
(...skipping 14 matching lines...) Expand all Loading... |
55 function test() { | 55 function test() { |
56 let f = new Foo(); | 56 let f = new Foo(); |
57 dart.dinvoke(f, 'bar', "Bar's call method!"); | 57 dart.dinvoke(f, 'bar', "Bar's call method!"); |
58 } | 58 } |
59 // Exports: | 59 // Exports: |
60 exports.A = A; | 60 exports.A = A; |
61 exports.Bar = Bar; | 61 exports.Bar = Bar; |
62 exports.Foo = Foo; | 62 exports.Foo = Foo; |
63 exports.test = test; | 63 exports.test = test; |
64 })(methods || (methods = {})); | 64 })(methods || (methods = {})); |
OLD | NEW |