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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 /** @final {string} */ | 110 /** @final {string} */ |
111 Foo.some_static_constant = "abc"; | 111 Foo.some_static_constant = "abc"; |
112 /** @final {string} */ | 112 /** @final {string} */ |
113 Foo.some_static_final = "abc"; | 113 Foo.some_static_final = "abc"; |
114 /** @type {string} */ | 114 /** @type {string} */ |
115 Foo.some_static_var = "abc"; | 115 Foo.some_static_var = "abc"; |
116 return Foo; | 116 return Foo; |
117 }); | 117 }); |
118 let Foo = Foo$(); | 118 let Foo = Foo$(); |
119 class Bar extends core.Object {} | 119 class Bar extends core.Object {} |
120 class Baz extends dart.mixin(Foo$(core.int), Bar) { | 120 const Baz$super = dart.mixin(Foo$(core.int), Bar); |
| 121 class Baz extends Baz$super { |
121 /** @param {?number} i */ | 122 /** @param {?number} i */ |
122 Baz(i) { | 123 Baz(i) { |
123 super.Foo(i, 123); | 124 super.Foo(i, 123); |
124 } | 125 } |
125 } | 126 } |
126 dart.setSignature(Baz, { | 127 dart.setSignature(Baz, { |
127 constructors: () => ({Baz: [Baz, [core.int]]}) | 128 constructors: () => ({Baz: [Baz, [core.int]]}) |
128 }); | 129 }); |
129 /** @param {?} args */ | 130 /** @param {?} args */ |
130 function main(args) { | 131 function main(args) { |
131 } | 132 } |
132 dart.fn(main, dart.void, [dart.dynamic]); | 133 dart.fn(main, dart.void, [dart.dynamic]); |
133 /** @final {string} */ | 134 /** @final {string} */ |
134 const some_top_level_constant = "abc"; | 135 const some_top_level_constant = "abc"; |
135 /** @final {string} */ | 136 /** @final {string} */ |
136 exports.some_top_level_final = "abc"; | 137 exports.some_top_level_final = "abc"; |
137 /** @type {string} */ | 138 /** @type {string} */ |
138 exports.some_top_level_var = "abc"; | 139 exports.some_top_level_var = "abc"; |
139 // Exports: | 140 // Exports: |
140 exports.Callback = Callback; | 141 exports.Callback = Callback; |
141 exports.Foo$ = Foo$; | 142 exports.Foo$ = Foo$; |
142 exports.Foo = Foo; | 143 exports.Foo = Foo; |
143 exports.Bar = Bar; | 144 exports.Bar = Bar; |
144 exports.Baz = Baz; | 145 exports.Baz = Baz; |
145 exports.main = main; | 146 exports.main = main; |
146 exports.some_top_level_constant = some_top_level_constant; | 147 exports.some_top_level_constant = some_top_level_constant; |
147 }); | 148 }); |
OLD | NEW |