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