OLD | NEW |
1 dart_library.library('closure', null, /* Imports */[ | 1 dart_library.library('closure', null, /* Imports */[ |
2 "dart/_runtime", | 2 "dart/_runtime", |
3 'dart/core', | 3 'dart/core', |
4 'dart/js' | 4 'dart/js' |
5 ], /* Lazy imports */[ | 5 ], /* Lazy imports */[ |
6 ], function(exports, dart, core, js) { | 6 ], function(exports, dart, core, js) { |
7 'use strict'; | 7 'use strict'; |
8 let dartx = dart.dartx; | 8 let dartx = dart.dartx; |
9 /** @typedef {function({i: (?number|undefined)}=)} */ | 9 /** @typedef {function({i: (?number|undefined)}=)} */ |
10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [
], {i: core.int})); | 10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [
], {i: core.int})); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 optional_params(a, b, c) { | 58 optional_params(a, b, c) { |
59 if (b === void 0) | 59 if (b === void 0) |
60 b = null; | 60 b = null; |
61 if (c === void 0) | 61 if (c === void 0) |
62 c = null; | 62 c = null; |
63 } | 63 } |
64 /** | 64 /** |
65 * @param {?} a | 65 * @param {?} a |
66 * @param {{b: (?|undefined), c: (?|undefined)}=} opts | 66 * @param {{b: (?|undefined), c: (?|undefined)}=} opts |
67 */ | 67 */ |
68 static named_params(a, {b = null, c = null} = {}) {} | 68 static named_params(a, opts) { |
| 69 let b = opts && 'b' in opts ? opts.b : null; |
| 70 let c = opts && 'c' in opts ? opts.c : null; |
| 71 } |
69 nullary_method() {} | 72 nullary_method() {} |
70 /** | 73 /** |
71 * @param {function(?, ?=):?number} f | 74 * @param {function(?, ?=):?number} f |
72 * @param {function(?, {y: (string|undefined), z: (?|undefined)}=):?} g | 75 * @param {function(?, {y: (string|undefined), z: (?|undefined)}=):?} g |
73 * @param {Callback} cb | 76 * @param {Callback} cb |
74 */ | 77 */ |
75 function_params(f, g, cb) { | 78 function_params(f, g, cb) { |
76 dart.as(f, dart.functionType(core.int, [dart.dynamic], [dart.dynamic])); | 79 dart.as(f, dart.functionType(core.int, [dart.dynamic], [dart.dynamic])); |
77 dart.as(g, dart.functionType(dart.dynamic, [dart.dynamic], {y: core.Stri
ng, z: dart.dynamic})); | 80 dart.as(g, dart.functionType(dart.dynamic, [dart.dynamic], {y: core.Stri
ng, z: dart.dynamic})); |
78 cb({i: this.i}); | 81 cb({i: this.i}); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 exports.some_top_level_var = "abc"; | 140 exports.some_top_level_var = "abc"; |
138 // Exports: | 141 // Exports: |
139 exports.Callback = Callback; | 142 exports.Callback = Callback; |
140 exports.Foo$ = Foo$; | 143 exports.Foo$ = Foo$; |
141 exports.Foo = Foo; | 144 exports.Foo = Foo; |
142 exports.Bar = Bar; | 145 exports.Bar = Bar; |
143 exports.Baz = Baz; | 146 exports.Baz = Baz; |
144 exports.main = main; | 147 exports.main = main; |
145 exports.some_top_level_constant = some_top_level_constant; | 148 exports.some_top_level_constant = some_top_level_constant; |
146 }); | 149 }); |
OLD | NEW |