OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/async_await_syntax_test_d09a_multi', null, /* Imp
orts */[ |
| 2 'dart_sdk' |
| 3 ], function load__async_await_syntax_test_d09a_multi(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const async = dart_sdk.async; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const async_await_syntax_test_d09a_multi = Object.create(null); |
| 10 let StreamOfint = () => (StreamOfint = dart.constFn(async.Stream$(core.int)))(
); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 let VoidToStreamOfint = () => (VoidToStreamOfint = dart.constFn(dart.definiteF
unctionType(StreamOfint(), [])))(); |
| 13 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 14 async_await_syntax_test_d09a_multi.yield = 0; |
| 15 async_await_syntax_test_d09a_multi.await = 0; |
| 16 dart.copyProperties(async_await_syntax_test_d09a_multi, { |
| 17 get st() { |
| 18 return async.Stream.fromIterable([]); |
| 19 } |
| 20 }); |
| 21 async_await_syntax_test_d09a_multi.B = class B extends core.Object {}; |
| 22 async_await_syntax_test_d09a_multi.C = class C extends async_await_syntax_test
_d09a_multi.B { |
| 23 new() { |
| 24 } |
| 25 }; |
| 26 dart.setSignature(async_await_syntax_test_d09a_multi.C, { |
| 27 constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test
_d09a_multi.C, [])}) |
| 28 }); |
| 29 async_await_syntax_test_d09a_multi.method1 = function() { |
| 30 }; |
| 31 dart.fn(async_await_syntax_test_d09a_multi.method1, VoidTodynamic()); |
| 32 async_await_syntax_test_d09a_multi.method2 = function() { |
| 33 let d09a = dart.fn(() => dart.asyncStar(function*(stream) { |
| 34 if (stream.add(0)) return; |
| 35 yield; |
| 36 }, core.int), VoidToStreamOfint()); |
| 37 d09a(); |
| 38 }; |
| 39 dart.fn(async_await_syntax_test_d09a_multi.method2, VoidTodynamic()); |
| 40 async_await_syntax_test_d09a_multi.main = function() { |
| 41 let a = null; |
| 42 let c = new async_await_syntax_test_d09a_multi.C(); |
| 43 async_await_syntax_test_d09a_multi.method1(); |
| 44 async_await_syntax_test_d09a_multi.method2(); |
| 45 }; |
| 46 dart.fn(async_await_syntax_test_d09a_multi.main, VoidTovoid()); |
| 47 // Exports: |
| 48 exports.async_await_syntax_test_d09a_multi = async_await_syntax_test_d09a_mult
i; |
| 49 }); |
OLD | NEW |