| OLD | NEW |
| 1 dart_library.library('methods', null, /* Imports */[ | 1 dart_library.library('methods', 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 const _c = Symbol('_c'); | 8 const _c = Symbol('_c'); |
| 9 class A extends core.Object { | 9 class A extends core.Object { |
| 10 A() { | 10 A() { |
| 11 this[_c] = 3; | 11 this[_c] = 3; |
| 12 } | 12 } |
| 13 x() { | 13 x() { |
| 14 return 42; | 14 return 42; |
| 15 } | 15 } |
| 16 y(a) { | 16 y(a) { |
| 17 return a; | 17 return a; |
| 18 } | 18 } |
| 19 z(b) { | 19 z(b) { |
| 20 if (b === void 0) | 20 if (b === void 0) |
| 21 b = null; | 21 b = null; |
| 22 return dart.asInt(b); | 22 return dart.asInt(b); |
| 23 } | 23 } |
| 24 zz(b) { | 24 zz(b) { |
| 25 if (b === void 0) | 25 if (b === void 0) |
| 26 b = 0; | 26 b = 0; |
| 27 return b; | 27 return b; |
| 28 } | 28 } |
| 29 w(a, {b = null} = {}) { | 29 w(a, opts) { |
| 30 let b = opts && 'b' in opts ? opts.b : null; |
| 30 return dart.asInt(dart.notNull(a) + dart.notNull(b)); | 31 return dart.asInt(dart.notNull(a) + dart.notNull(b)); |
| 31 } | 32 } |
| 32 clashWithObjectProperty({constructor = null} = Object.create(null)) { | 33 clashWithObjectProperty(opts) { |
| 34 let constructor = opts && 'constructor' in opts ? opts.constructor : null; |
| 33 return constructor; | 35 return constructor; |
| 34 } | 36 } |
| 35 clashWithJsReservedName(opts) { | 37 clashWithJsReservedName(opts) { |
| 36 let func = opts && 'function' in opts ? opts.function : null; | 38 let func = opts && 'function' in opts ? opts.function : null; |
| 37 return func; | 39 return func; |
| 38 } | 40 } |
| 39 get a() { | 41 get a() { |
| 40 return this.x(); | 42 return this.x(); |
| 41 } | 43 } |
| 42 set b(b) {} | 44 set b(b) {} |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 let c = dart.bind("", dartx.padLeft); | 85 let c = dart.bind("", dartx.padLeft); |
| 84 let r = dart.bind(3.0, dartx.floor); | 86 let r = dart.bind(3.0, dartx.floor); |
| 85 } | 87 } |
| 86 dart.fn(test); | 88 dart.fn(test); |
| 87 // Exports: | 89 // Exports: |
| 88 exports.A = A; | 90 exports.A = A; |
| 89 exports.Bar = Bar; | 91 exports.Bar = Bar; |
| 90 exports.Foo = Foo; | 92 exports.Foo = Foo; |
| 91 exports.test = test; | 93 exports.test = test; |
| 92 }); | 94 }); |
| OLD | NEW |